blob: 28f59dcb97b8f565951b99e4585a6372a75a544d [file] [log] [blame]
# 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