Debian Codegraph @

src/modules/slack/Makefile

raw
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 DEFS += $(shell $(CURL_BUILDER) --cflags )
22 LIBS += $(shell $(CURL_BUILDER) --libs)
23 else
24 DEFS+=-I$(LOCALBASE)/include
25 LIBS+=-L$(LOCALBASE)/lib -lcurl
26 endif
27
28 include ../../Makefile.modules