endif
# check for fstrm and protobuf for dnstap
-ifeq ($(HAS_libfstrm)&$(HAS_libprotobuf-c),yes&yes)
+ifeq ($(HAS_libfstrm)|$(HAS_libprotobuf-c),yes|yes)
BUILD_CFLAGS += -DENABLE_DNSTAP
ENABLE_DNSTAP := yes
endif
contrib/ucw/mempool.c \
contrib/murmurhash3/murmurhash3.c \
contrib/base32hex.c \
- contrib/base64.c \
- contrib/dnstap/dnstap.pb-c.c
+ contrib/base64.c
contrib_CFLAGS := -fPIC
contrib_TARGET := $(abspath contrib)/contrib$(AREXT)
contrib_LIBS += -pthread
endif
+ifeq ($(ENABLE_DNSTAP), yes)
+contrib_SOURCES += contrib/dnstap/dnstap.pb-c.c
+endif
+
$(eval $(call make_static,contrib,contrib))