Debian Codegraph @

src/modules/cdp/Makefile

raw
1 # cdp Makefile
2
3 include ../../Makefile.defs
4 auto_gen=
5 NAME=cdp.so
6
7 ifeq ($(CROSS_COMPILE),)
8 XML2CFG=$(shell which xml2-config)
9 ifeq ($(XML2CFG),)
10 XML2CFG=$(shell \
11 if pkg-config --exists libxml-2.0; then \
12 echo 'pkg-config libxml-2.0'; \
13 fi)
14 endif
15 endif
16
17 ifneq ($(XML2CFG),)
18 DEFS += $(shell $(XML2CFG) --cflags )
19 LIBS += $(shell $(XML2CFG) --libs)
20 else
21 INCLUDES +=-I$(LOCALBASE)/include/libxml2 \
22 -I$(LOCALBASE)/include
23 LIBS += -L$(LOCALBASE)/lib -lxml2
24 endif
25
26 ifneq ($(OS),darwin)
27 LIBS += -lrt
28 LIBS += -lpthread
29 LIBS += -lssl
30 LIBS += -lcrypto
31 endif
32
33 include ../../Makefile.modules
34