| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
include ../../Makefile.defs |
| 8 |
auto_gen= |
| 9 |
NAME=lost.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 |
CURL_BUILDER=$(shell \ |
| 20 |
if pkg-config --exists libcurl; then \ |
| 21 |
echo 'pkg-config libcurl'; \ |
| 22 |
else \ |
| 23 |
which curl-config; \ |
| 24 |
fi) |
| 25 |
endif |
| 26 |
|
| 27 |
ifneq ($(XML2CFG),) |
| 28 |
DEFS += $(shell $(XML2CFG) --cflags ) |
| 29 |
LIBS += $(shell $(XML2CFG) --libs) |
| 30 |
else |
| 31 |
DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include |
| 32 |
LIBS+=-L$(LOCALBASE)/lib -lxml2 |
| 33 |
endif |
| 34 |
|
| 35 |
ifneq ($(CURL_BUILDER),) |
| 36 |
DEFS += $(shell $(CURL_BUILDER) --cflags ) |
| 37 |
LIBS += $(shell $(CURL_BUILDER) --libs) |
| 38 |
else |
| 39 |
DEFS+=-I$(LOCALBASE)/include |
| 40 |
LIBS+=-L$(LOCALBASE)/lib -lcurl |
| 41 |
endif |
| 42 |
|
| 43 |
include ../../Makefile.modules |