Debian Codegraph @

src/modules/auth_arnacon/Makefile

raw
1 #
2 # Arnacon Authentication Module Makefile
3 #
4
5 include ../../Makefile.defs
6 auto_gen=
7 NAME=auth_arnacon.so
8 LIBS=
9
10 DEFS+=-DKAMAILIO_MOD -DDISABLE_NAGLE
11
12 # Link with curl and secp256k1
13 ifeq ($(CROSS_COMPILE),)
14 CURL_BUILDER=$(shell \
15 if pkg-config --exists libcurl; then \
16 echo 'pkg-config libcurl'; \
17 else \
18 which curl-config; \
19 fi)
20 endif
21
22 ifneq ($(CURL_BUILDER),)
23 DEFS+= $(shell $(CURL_BUILDER) --cflags )
24 LIBS+= $(shell $(CURL_BUILDER) --libs)
25 else
26 DEFS+= -I$(LOCALBASE)/include
27 LIBS+= -L$(LOCALBASE)/lib -lcurl
28 endif
29
30 LIBS+= -lsecp256k1
31
32 include ../../Makefile.modules