freebsd-skq/contrib/ntp/libjsmn/Makefile
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00: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