Debian Codegraph @

src/modules/cplc/Makefile

raw
1 #
2 # WARNING: do not run this directly, it should be run by the main Makefile
3
4 include ../../Makefile.defs
5 auto_gen=
6 NAME=cplc.so
7
8 ifeq ($(CROSS_COMPILE),)
9 XML2CFG=$(shell which xml2-config)
10 ifeq ($(XML2CFG),)
11 XML2CFG=$(shell \
12 if pkg-config --exists libxml-2.0; then \
13 echo 'pkg-config libxml-2.0'; \
14 fi)
15 endif
16 endif
17
18 ifneq ($(XML2CFG),)
19 DEFS += $(shell $(XML2CFG) --cflags )
20 LIBS += $(shell $(XML2CFG) --libs)
21 else
22 DEFS +=-I$(LOCALBASE)/include/libxml2 \
23 -I$(LOCALBASE)/include # iconv.h
24 LIBS += -L$(LOCALBASE)/lib -lxml2
25 endif
26
27 include ../../Makefile.modules