Debian Codegraph @

src/modules/acc_json/Makefile

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