Files
nDPId/Makefile
Peter Finlayson ee10da0f1e delete jsmn_test.exe when doing make clean
When building the jsmn test suite on Windows via mingw, the output executable is called "jsmn_test.exe" instead of just "jsmn_test".
2013-12-23 12:29:33 +02:00

28 lines
386 B
Makefile

# You can put your build options here
-include config.mk
all: libjsmn.a
libjsmn.a: jsmn.o
$(AR) rc $@ $^
%.o: %.c jsmn.h
$(CC) -c $(CFLAGS) $< -o $@
test: jsmn_test
./jsmn_test
jsmn_test: jsmn_test.o
$(CC) -L. -ljsmn $< -o $@
jsmn_test.o: jsmn_test.c libjsmn.a
clean:
rm -f jsmn.o jsmn_test.o
rm -f jsmn_test
rm -f jsmn_test.exe
rm -f libjsmn.a
.PHONY: all clean test