]> git.zerfleddert.de Git - proxmark3-svn/blob - client/tinycbor/Makefile
Fix gcc10 compiler warnings
[proxmark3-svn] / client / tinycbor / Makefile
1
2 LIB_A = tinycbor.a
3 tinycbor_SOURCES = \
4 cborencoder.c \
5 cborencoder_close_container_checked.c \
6 cborerrorstrings.c \
7 cborparser.c \
8 cborparser_dup_string.c \
9 cborpretty.c \
10 cbortojson.c \
11 cborvalidation.c \
12
13 CFILES = $(filter %.c, $(tinycbor_SOURCES))
14 CMDOBJS = $(CFILES:%.c=%.o)
15 CLEAN = $(CMDOBJS)
16
17 CC= gcc
18 CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function
19 LIBS= $(SYSLIBS) $(MYLIBS)
20 DEFAULT_INCLUDES = -I. -I..
21 DEFS = -DHAVE_STDINT_H
22
23 AR= ar rcs
24 RANLIB= ranlib
25 RM= rm -f
26 TST= echo
27
28 SYSLDFLAGS=
29 SYSLIBS=
30
31 MYLIBS=
32 MYOBJS=
33
34 all: $(CMDOBJS)
35 $(AR) $(LIB_A) $(CMDOBJS)
36 $(RANLIB) $(LIB_A)
37
38 clean:
39 $(RM) $(CLEAN)
40 $(RM) $(LIB_A)
41
42 %.o: %.c
43 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
44
45 .PHONY: all clean
46
Impressum, Datenschutz