]>
Commit | Line | Data |
---|---|---|
556826b5 OM |
1 | |
2 | include_HEADERS = jansson.h | |
3 | nodist_include_HEADERS = jansson_config.h | |
4 | ||
5 | LIB_A = libjansson.a | |
6 | libjansson_la_SOURCES = \ | |
7 | dump.c \ | |
8 | error.c \ | |
9 | hashtable.c \ | |
10 | hashtable.h \ | |
11 | hashtable_seed.c \ | |
12 | jansson_private.h \ | |
13 | load.c \ | |
14 | lookup3.h \ | |
15 | memory.c \ | |
16 | pack_unpack.c \ | |
17 | strbuffer.c \ | |
18 | strbuffer.h \ | |
19 | strconv.c \ | |
20 | utf.c \ | |
21 | utf.h \ | |
22 | value.c | |
23 | libjansson_la_LDFLAGS = \ | |
24 | -no-undefined \ | |
25 | -export-symbols-regex '^json_' \ | |
26 | -version-info 15:0:11 | |
27 | ||
28 | ||
29 | CFILES = $(filter %.c, $(libjansson_la_SOURCES)) | |
30 | CMDOBJS = $(CFILES:%.c=%.o) | |
31 | CLEAN = $(CMDOBJS) | |
32 | ||
33 | CC= gcc | |
34 | CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function | |
35 | LDFLAGS= $(SYSLDFLAGS) $(libjansson_la_LDFLAGS) | |
36 | LIBS= -lm $(SYSLIBS) $(MYLIBS) | |
37 | DEFAULT_INCLUDES = -I. | |
38 | DEFS = -DHAVE_STDINT_H | |
39 | ||
40 | AR= ar rcs | |
41 | RANLIB= ranlib | |
42 | RM= rm -f | |
43 | TST= echo | |
44 | ||
45 | SYSLDFLAGS= | |
46 | SYSLIBS= | |
47 | ||
48 | MYLIBS= | |
49 | MYOBJS= | |
50 | ||
51 | all: $(CMDOBJS) | |
52 | $(AR) $(LIB_A) $(CMDOBJS) | |
53 | $(RANLIB) $(LIB_A) | |
54 | ||
55 | clean: | |
56 | $(RM) $(CLEAN) | |
57 | $(RM) $(LIB_A) | |
58 | ||
59 | %.o: %.c | |
60 | $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS) | |
61 | ||
62 | .PHONY: all clean | |
63 |