mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-15 13:14:27 +08:00
64 lines
1,015 B
Makefile
64 lines
1,015 B
Makefile
|
|
||
|
include_HEADERS = jansson.h
|
||
|
nodist_include_HEADERS = jansson_config.h
|
||
|
|
||
|
LIB_A = libjansson.a
|
||
|
libjansson_la_SOURCES = \
|
||
|
dump.c \
|
||
|
error.c \
|
||
|
hashtable.c \
|
||
|
hashtable.h \
|
||
|
hashtable_seed.c \
|
||
|
jansson_private.h \
|
||
|
load.c \
|
||
|
lookup3.h \
|
||
|
memory.c \
|
||
|
pack_unpack.c \
|
||
|
strbuffer.c \
|
||
|
strbuffer.h \
|
||
|
strconv.c \
|
||
|
utf.c \
|
||
|
utf.h \
|
||
|
value.c
|
||
|
libjansson_la_LDFLAGS = \
|
||
|
-no-undefined \
|
||
|
-export-symbols-regex '^json_' \
|
||
|
-version-info 15:0:11
|
||
|
|
||
|
|
||
|
CFILES = $(filter %.c, $(libjansson_la_SOURCES))
|
||
|
CMDOBJS = $(CFILES:%.c=%.o)
|
||
|
CLEAN = $(CMDOBJS)
|
||
|
|
||
|
CC= gcc
|
||
|
CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function
|
||
|
LDFLAGS= $(SYSLDFLAGS) $(libjansson_la_LDFLAGS)
|
||
|
LIBS= -lm $(SYSLIBS) $(MYLIBS)
|
||
|
DEFAULT_INCLUDES = -I.
|
||
|
DEFS = -DHAVE_STDINT_H
|
||
|
|
||
|
AR= ar rcs
|
||
|
RANLIB= ranlib
|
||
|
RM= rm -f
|
||
|
TST= echo
|
||
|
|
||
|
SYSLDFLAGS=
|
||
|
SYSLIBS=
|
||
|
|
||
|
MYLIBS=
|
||
|
MYOBJS=
|
||
|
|
||
|
all: $(CMDOBJS)
|
||
|
$(AR) $(LIB_A) $(CMDOBJS)
|
||
|
$(RANLIB) $(LIB_A)
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(CLEAN)
|
||
|
$(RM) $(LIB_A)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|