mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 14:09:06 +08:00
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@2 327403b1-1117-474d-bef2-5cb71233fd97
41 lines
759 B
Makefile
41 lines
759 B
Makefile
# $Id: Makefile,v 1.4 2004/07/22 01:37:44 mclark Exp $
|
|
|
|
CFLAGS += -g -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
|
LDFLAGS +=
|
|
LDLIBS +=
|
|
|
|
LIB_OBJS = debug.o \
|
|
linkhash.o \
|
|
printbuf.o \
|
|
arraylist.o \
|
|
json_object.o \
|
|
json_tokener.o
|
|
|
|
LIB_HDRS = debug.h \
|
|
linkhash.h \
|
|
printbuf.h \
|
|
arraylist.h \
|
|
json_object.h \
|
|
json_tokener.h
|
|
|
|
TESTS = test1 test2
|
|
|
|
all: tests
|
|
|
|
tests: $(TESTS)
|
|
test1: test1.o $(LIB_OBJS)
|
|
test2: test2.o $(LIB_OBJS)
|
|
|
|
clean:
|
|
rm -f *.o *~ $(TESTS)
|
|
|
|
cex.o: cex.c cex.h
|
|
debug.o: debug.c debug.h
|
|
linkhash.o: linkhash.c linkhash.h
|
|
arraylist.o: arraylist.c arraylist.h
|
|
json_object.o: json_object.c $(LIB_HDRS)
|
|
json_tokener.o: json_tokener.c $(LIB_HDRS)
|
|
test1.o: test1.c $(LIB_HDRS)
|
|
test2.o: test2.c $(LIB_HDRS)
|
|
|