1# 2# jansson module makefile 3# 4# 5# WARNING: do not run this directly, it should be run by the master Makefile 6 7include ../../Makefile.defs 8auto_gen= 9NAME=jansson.so 10 11ifeq ($(CROSS_COMPILE),) 12JNS_BUILDER=$(shell \ 13 if pkg-config --exists jansson; then \ 14 echo 'pkg-config jansson'; \ 15 fi) 16endif 17 18ifneq ($(JNS_BUILDER),) 19 DEFS += $(shell $(JNS_BUILDER) --cflags) 20 LIBS += $(shell $(JNS_BUILDER) --libs) 21else 22 DEFS+=-I$(LOCALBASE)/include 23 LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -ljansson 24endif 25 26SERLIBPATH=../../lib 27include ../../Makefile.modules 28