14 lines
273 B
Makefile
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
|