|
@@ -4,9 +4,19 @@ NAME=cdp.so
|
|
|
|
|
|
DEFS+=-DSER_MOD_INTERFACE
|
|
DEFS+=-DSER_MOD_INTERFACE
|
|
|
|
|
|
|
|
+ifeq ($(CROSS_COMPILE),)
|
|
|
|
+XML2CFG=$(shell which xml2-config)
|
|
|
|
+endif
|
|
|
|
|
|
-DEFS += -I/usr/include/libxml2
|
|
|
|
-LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt
|
|
|
|
|
|
+ifneq ($(XML2CFG),)
|
|
|
|
+ DEFS += $(shell $(XML2CFG) --cflags )
|
|
|
|
+ LIBS += $(shell $(XML2CFG) --libs)
|
|
|
|
+ LIBS += -lrt
|
|
|
|
+else
|
|
|
|
+ INCLUDES +=-I$(LOCALBASE)/include/libxml2 \
|
|
|
|
+ -I$(LOCALBASE)/include
|
|
|
|
+ LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt
|
|
|
|
+endif
|
|
|
|
|
|
include ../../Makefile.modules
|
|
include ../../Makefile.modules
|
|
|
|
|