Debian Codegraph @

src/modules/cnxcc/Makefile

raw symbols SCIP
1 #
2 # cnxcc 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=cnxcc.so
10
11 ifeq ($(CROSS_COMPILE),)
12 HIREDIS_BUILDER = $(shell \
13 if pkg-config --exists hiredis; then \
14 echo 'pkg-config hiredis'; \
15 fi)
16 endif
17
18 ifeq ($(HIREDIS_BUILDER),)
19 HIREDISDEFS=-I$(LOCALBASE)/include
20 HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
21 else
22 HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags)
23 HIREDISLIBS = $(shell $(HIREDIS_BUILDER) --libs)
24
25 ifeq ($(HIREDISLIBS),-L -lhiredis)
26 HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags) /opt/local/include
27 HIREDISLIBS = -L/opt/local/lib -lhiredis
28 endif
29
30 endif
31
32 ifeq ($(CROSS_COMPILE),)
33 LEVENT_BUILDER = $(shell \
34 if pkg-config --exists libevent; then \
35 echo 'pkg-config libevent'; \
36 fi)
37 endif
38
39 ifeq ($(LEVENT_BUILDER),)
40 LEVENTDEFS=
41 LEVENTLIBS=-L$(LOCALBASE)/lib -levent
42 else
43 LEVENTDEFS = $(shell $(LEVENT_BUILDER) --cflags)
44 LEVENTLIBS = $(shell $(LEVENT_BUILDER) --libs)
45 endif
46
47 DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
48 LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49
50 include ../../Makefile.modules