jansson/Makefile
Sean Middleditch 39601c183a add tests
2010-01-12 01:10:20 -08:00

14 lines
273 B
Makefile

JANSSON_CFLAGS := $(shell pkg-config --cflags jansson)
JANSSON_LIBS := $(shell pkg-config --libs jansson)
all: test
test-bin: test.cc janssonxx.h Makefile
$(CXX) -o $@ -g -O0 -Wall $(JANSSON_CFLAGS) $< $(JANSSON_LIBS)
test: test-bin
./test-bin
clean:
rm -f test-bin