Makefile revision 275970
1# You can put your build options here
2-include config.mk
3
4all: libjsmn.a 
5
6libjsmn.a: jsmn.o
7	$(AR) rc $@ $^
8
9%.o: %.c jsmn.h
10	$(CC) -c $(CFLAGS) $< -o $@
11
12test: jsmn_test
13	./jsmn_test
14
15jsmn_test: jsmn_test.o
16	$(CC) -L. -ljsmn $< -o $@
17
18jsmn_test.o: jsmn_test.c libjsmn.a
19
20clean:
21	rm -f jsmn.o jsmn_test.o
22	rm -f jsmn_test
23	rm -f jsmn_test.exe
24	rm -f libjsmn.a
25
26.PHONY: all clean test
27
28