summaryrefslogtreecommitdiffstats
path: root/contrib/contrib.mk
blob: c8be0246ecd53b79e367b58fc608afb11e806482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
contrib_SOURCES := \
	contrib/ccan/asprintf/asprintf.c \
	contrib/ccan/ilog/ilog.c \
	contrib/ccan/json/json.c \
	contrib/ucw/mempool.c \
	contrib/ucw/mempool-fmt.c \
	contrib/murmurhash3/murmurhash3.c \
	contrib/base32hex.c \
	contrib/base64.c
contrib_CFLAGS := -fPIC
contrib_TARGET := $(abspath contrib)/contrib$(AREXT)

# Use built-in LMDB if not found
ifneq ($(HAS_lmdb), yes)
contrib_SOURCES += contrib/lmdb/mdb.c \
                   contrib/lmdb/midl.c
contrib_CFLAGS  += -pthread
contrib_LIBS    += -pthread
lmdb_CFLAGS     += -I$(abspath contrib/lmdb)
endif

$(eval $(call make_static,contrib,contrib))