Debian Codegraph @

src/modules/presence/Makefile

raw
1 #
2 # WARNING: do not run this directly, it should be run by the main Makefile
3
4 include ../../Makefile.defs
5 auto_gen=
6 NAME=presence.so
7
8 ifeq ($(CROSS_COMPILE),)
9 XML2CFG=$(shell which xml2-config)
10 ifeq ($(XML2CFG),)
11 XML2CFG=$(shell \
12 if pkg-config --exists libxml-2.0; then \
13 echo 'pkg-config libxml-2.0'; \
14 fi)
15 endif
16 ifeq ($(OS), darwin)
17 ICU_BUILDER = $(shell \
18 if pkg-config --exists icu-uc; then \
19 echo 'pkg-config icu-uc'; \
20 fi)
21 endif
22 endif
23
24 ifneq ($(XML2CFG),)
25 DEFS += $(shell $(XML2CFG) --cflags )
26 LIBS += $(shell $(XML2CFG) --libs)
27 else
28 DEFS+=-I$(LOCALBASE)/include/libxml2 \
29 -I$(LOCALBASE)/include
30 LIBS+=-L$(LOCALBASE)/lib -lxml2
31 endif
32
33 ifneq ($(ICU_BUILDER),)
34 DEFS += $(shell $(ICU_BUILDER) --cflags )
35 LIBS += $(shell $(ICU_BUILDER) --libs)
36 endif
37
38 include ../../Makefile.modules