Home | History | Annotate | Download | only in jsmn
      1 # You can put your build options here
      2 -include config.mk
      3 
      4 all: libjsmn.a
      5 
      6 libjsmn.a: jsmn.o
      7 	$(AR) rc $@ $^
      8 
      9 %.o: %.c jsmn.h
     10 	$(CC) -c $(CFLAGS) $< -o $@
     11 
     12 test: jsmn_test
     13 	./jsmn_test
     14 
     15 jsmn_test: jsmn_test.o
     16 	$(CC) -L. -ljsmn $< -o $@
     17 
     18 jsmn_test.o: jsmn_test.c libjsmn.a
     19 
     20 clean:
     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