Debian Codegraph @

src/modules/regex/Makefile

raw
1 # WARNING: do not run this directly, it should be run by the main Makefile
2
3 include ../../Makefile.defs
4 auto_gen=
5 NAME=regex.so
6
7 ifeq ($(CROSS_COMPILE),)
8 PCRE_BUILDER = $(shell command -v pcre2-config)
9 endif
10
11 ifeq ($(PCRE_BUILDER),)
12 PCREDEFS=-I$(LOCALBASE)/include
13 PCRELIBS=-L$(LOCALBASE)/lib -lpcre2-8
14 else
15 PCREDEFS = $(shell $(PCRE_BUILDER) --cflags)
16 PCRELIBS = $(shell $(PCRE_BUILDER) --libs8)
17 endif
18
19 DEFS+=$(PCREDEFS)
20 LIBS+=$(PCRELIBS)
21
22 include ../../Makefile.modules