Debian Codegraph @

src/modules/db_mongodb/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=db_mongodb.so
7
8 ifeq ($(CROSS_COMPILE),)
9 MONGODBC_BUILDER=$(shell \
10 if pkg-config --exists libmongoc-1.0; then \
11 echo 'pkg-config libmongoc-1.0'; \
12 elif pkg-config --exists mongoc2; then \
13 echo 'pkg-config mongoc2'; \
14 fi)
15 endif
16
17 ifneq ($(MONGODBC_BUILDER),)
18 DEFS += $(shell $(MONGODBC_BUILDER) --cflags)
19 LIBS += $(shell $(MONGODBC_BUILDER) --libs)
20 ifneq ($(findstring libmongoc-1.0,$(MONGODBC_BUILDER)),)
21 DEFS += -DHAVE_LIBMONGOC1
22 endif
23 else
24 DEFS += -I$(LOCALBASE)/include
25 LIBS= -L$(LOCALBASE)/lib -lmongoc
26 endif
27
28 include ../../Makefile.modules