contrib.mk 547 Bytes
Newer Older
1 2 3 4 5 6
contrib_SOURCES := \
	contrib/ccan/asprintf/asprintf.c \
	contrib/ccan/ilog/ilog.c \
	contrib/ccan/isaac/isaac.c \
	contrib/ccan/json/json.c \
	contrib/ucw/mempool.c \
7 8
	contrib/murmurhash3/murmurhash3.c \
	contrib/base32hex.c
9 10
contrib_CFLAGS := -fPIC
contrib_TARGET := $(abspath contrib)/contrib$(AREXT)
11 12 13 14 15 16 17 18 19 20

# 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
endif

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