You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
329 B
25 lines
329 B
# 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 $@
|
|
|
|
clean:
|
|
rm -f jsmn.o jsmn_test.o
|
|
rm -f jsmn_test
|
|
rm -f libjsmn.a
|
|
|
|
.PHONY: all clean test
|
|
|