Skip to content
Snippets Groups Projects
Commit bfe5d23a authored by Vicky Shrestha's avatar Vicky Shrestha Committed by Ondřej Surý
Browse files

fixing makefile to compile protobuf if dnstap is enabled

parent 1d83e1d0
Branches
Tags
2 merge requests!254Knot Resolver 1.2.5,!213add dnstap module
......@@ -74,7 +74,7 @@ endif
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
......
......@@ -6,8 +6,7 @@ contrib_SOURCES := \
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)
......@@ -19,4 +18,8 @@ contrib_CFLAGS += -pthread
contrib_LIBS += -pthread
endif
ifeq ($(ENABLE_DNSTAP), yes)
contrib_SOURCES += contrib/dnstap/dnstap.pb-c.c
endif
$(eval $(call make_static,contrib,contrib))
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment