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