Debian Codegraph @

src/modules/auth_web3/Makefile

raw symbols SCIP
1 #
2 # auth_web3 module makefile
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=auth_web3.so
10
11 # Include additional source files
12 EXTRA_SRCS=keccak256.c
13
14 ifeq ($(CROSS_COMPILE),)
15 CURL_BUILDER=$(shell \
16 if pkg-config --exists libcurl; then \
17 echo 'pkg-config libcurl'; \
18 else \
19 which curl-config; \
20 fi)
21 endif
22
23 ifneq ($(CURL_BUILDER),)
24 DEFS += $(shell $(CURL_BUILDER) --cflags )
25 LIBS += $(shell $(CURL_BUILDER) --libs)
26 else
27 DEFS+=-I$(LOCALBASE)/include
28 LIBS+=-L$(LOCALBASE)/lib -lcurl
29 endif
30
31 include ../../Makefile.modules