Debian Codegraph @

src/modules/rabbitmq/Makefile

raw symbols SCIP
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=rabbitmq.so
6 LIBS=
7
8 ifeq ($(CROSS_COMPILE),)
9 RMQ_BUILDER=$(shell \
10 if pkg-config --exists librabbitmq && pkg-config --exists uuid; then \
11 echo 'pkg-config librabbitmq uuid'; \
12 fi)
13
14 ifeq ($(shell pkg-config --atleast-version=0.13.0 librabbitmq; echo $$?),0)
15 DEFS += -DRABBITMQ_DEPRECATION
16 endif
17 endif
18
19 ifneq ($(RMQ_BUILDER),)
20 DEFS += $(shell $(RMQ_BUILDER) --cflags)
21 LIBS += $(shell $(RMQ_BUILDER) --libs)
22 else
23 DEFS+=-I$(LOCALBASE)/include
24 LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -lrabbitmq -luuid
25 endif
26
27 include ../../Makefile.modules