Debian Codegraph @

src/modules/rls/Makefile

raw
1 #
2 # rls: Resource List Server
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=rls.so
10
11 ifeq ($(CROSS_COMPILE),)
12 XML2CFG=$(shell which xml2-config)
13 ifeq ($(XML2CFG),)
14 XML2CFG=$(shell \
15 if pkg-config --exists libxml-2.0; then \
16 echo 'pkg-config libxml-2.0'; \
17 fi)
18 endif
19 ifeq ($(OS), darwin)
20 ICU_BUILDER = $(shell \
21 if pkg-config --exists icu-uc; then \
22 echo 'pkg-config icu-uc'; \
23 fi)
24 endif
25 endif
26
27 ifneq ($(XML2CFG),)
28 DEFS += $(shell $(XML2CFG) --cflags )
29 LIBS += $(shell $(XML2CFG) --libs)
30 else
31 DEFS+=-I$(LOCALBASE)/include/libxml2 \
32 -I$(LOCALBASE)/include
33 LIBS+=-L$(LOCALBASE)/lib -lxml2
34 endif
35
36 ifneq ($(ICU_BUILDER),)
37 DEFS += $(shell $(ICU_BUILDER) --cflags )
38 LIBS += $(shell $(ICU_BUILDER) --libs)
39 endif
40
41 include ../../Makefile.modules