Makefile revision 275970
1275970Scy# You can put your build options here 2275970Scy-include config.mk 3275970Scy 4275970Scyall: libjsmn.a 5275970Scy 6275970Scylibjsmn.a: jsmn.o 7275970Scy $(AR) rc $@ $^ 8275970Scy 9275970Scy%.o: %.c jsmn.h 10275970Scy $(CC) -c $(CFLAGS) $< -o $@ 11275970Scy 12275970Scytest: jsmn_test 13275970Scy ./jsmn_test 14275970Scy 15275970Scyjsmn_test: jsmn_test.o 16275970Scy $(CC) -L. -ljsmn $< -o $@ 17275970Scy 18275970Scyjsmn_test.o: jsmn_test.c libjsmn.a 19275970Scy 20275970Scyclean: 21275970Scy rm -f jsmn.o jsmn_test.o 22275970Scy rm -f jsmn_test 23275970Scy rm -f jsmn_test.exe 24275970Scy rm -f libjsmn.a 25275970Scy 26275970Scy.PHONY: all clean test 27275970Scy 28