833d438fb64180bf824db4632fb92a25447011c0
[kamailio] / src / modules / slack / Makefile
1 #
2 # Slack 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=slack.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 ($(CURL_BUILDER),)
21         CURLDEFS += $(shell $(CURL_BUILDER) --cflags)
22         CURLLIBS += $(shell $(CURL_BUILDER) --libs)
23 else
24         CURLDEFS+=-I$(LOCALBASE)/include -I$(SYSBASE)/include
25         CURLLIBS+=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -lcurl
26 endif
27
28 DEFS+=$(CURLDEFS)
29 LIBS=$(CURLLIBS)
30
31 include ../../Makefile.modules