]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/tinycbor/Makefile
Update README.md
[proxmark3-svn] / client / tinycbor / Makefile
... / ...
CommitLineData
1
2LIB_A = tinycbor.a
3tinycbor_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
13CFILES = $(filter %.c, $(tinycbor_SOURCES))
14CMDOBJS = $(CFILES:%.c=%.o)
15CLEAN = $(CMDOBJS)
16
17CC= gcc
18CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function
19LIBS= $(SYSLIBS) $(MYLIBS)
20DEFAULT_INCLUDES = -I. -I..
21DEFS = -DHAVE_STDINT_H
22
23AR= ar rcs
24RANLIB= ranlib
25RM= rm -f
26TST= echo
27
28SYSLDFLAGS=
29SYSLIBS=
30
31MYLIBS=
32MYOBJS=
33
34all: $(CMDOBJS)
35 $(AR) $(LIB_A) $(CMDOBJS)
36 $(RANLIB) $(LIB_A)
37
38clean:
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