Debian Codegraph @

src/modules/lcr/Makefile

raw
1 #
2 # Least Cost Routing Module
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=lcr.so
10
11 ifeq ($(CROSS_COMPILE),)
12 PCRE_BUILDER = $(shell command -v pcre2-config)
13 endif
14
15 ifeq ($(PCRE_BUILDER),)
16 PCREDEFS=-I$(LOCALBASE)/include
17 PCRELIBS=-L$(LOCALBASE)/lib -lpcre2-8
18 else
19 PCREDEFS = $(shell $(PCRE_BUILDER) --cflags)
20 PCRELIBS = $(shell $(PCRE_BUILDER) --libs8)
21 endif
22
23 DEFS+=$(PCREDEFS)
24 LIBS+=$(PCRELIBS)
25
26 include ../../Makefile.modules