| 1 |
# |
| 2 |
# XCAP client for Kamailio |
| 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=xcap_client.so |
| 10 |
|
| 11 |
ifeq ($(CROSS_COMPILE),) |
| 12 |
CURL_BUILDER=$(shell \ |
| 13 |
if pkg-config --exists libcurl; then \ |
| 14 |
echo 'pkg-config libcurl'; \ |
| 15 |
else \ |
| 16 |
which curl-config; \ |
| 17 |
fi) |
| 18 |
endif |
| 19 |
|
| 20 |
ifneq ($(CURLCFG),) |
| 21 |
DEFS += $(shell $(CURLCFG) --cflags) |
| 22 |
LIBS += $(shell $(CURLCFG) --libs) |
| 23 |
else |
| 24 |
DEFS+=-I$(LOCALBASE)/include |
| 25 |
LIBS+=-L$(LOCALBASE)/lib -lcurl |
| 26 |
endif |
| 27 |
|
| 28 |
include ../../Makefile.modules |