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