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
337 B
25 lines
337 B
# You can put your build options here
|
|
-include config.mk
|
|
|
|
all: libjsmn.a
|
|
|
|
demo: libjsmn.a demo.o
|
|
$(CC) $(LDFLAGS) demo.o -L. -ljsmn -o $@
|
|
|
|
libjsmn.a: jsmn.o
|
|
$(AR) rc $@ $^
|
|
|
|
%.o: %.c jsmn.h
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
test: all demo
|
|
sh test.sh
|
|
|
|
clean:
|
|
rm -f jsmn.o demo.o
|
|
rm -f libjsmn.a
|
|
rm -f demo
|
|
|
|
.PHONY: all clean test demo
|
|
|