Commit b5851775 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Ondřej Surý

dnstap.proto: move from contrib into module

... and generate files instead of including them.
parent b682370e
......@@ -60,4 +60,5 @@ libkres.amalg.c
/doc/kresd.8
/libkres.pc
/modules/version/version.lua
/modules/dnstap/dnstap.pb-c.*
/tags
......@@ -18,8 +18,4 @@ 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))
This diff is collapsed.
This diff is collapsed.
......@@ -34,7 +34,7 @@
#include "lib/module.h"
#include "lib/layer.h"
#include "lib/resolve.h"
#include "contrib/dnstap/dnstap.pb-c.h"
#include "modules/dnstap/dnstap.pb-c.h"
#include <ccan/json/json.h>
#include <fstrm.h>
#include "contrib/cleanup.h"
......
dnstap_CFLAGS := -fvisibility=hidden -fPIC
dnstap_SOURCES := modules/dnstap/dnstap.c
dnstap_SOURCES := modules/dnstap/dnstap.c modules/dnstap/dnstap.pb-c.c
dnstap_DEPEND := $(libkres)
dnstap_LIBS := $(contrib_TARGET) $(libkres_TARGET) $(libkres_LIBS) $(libprotobuf-c_LIBS) $(libfstrm_LIBS)
$(call make_c_module,dnstap)
modules/dnstap/dnstap.pb-c.c: modules/dnstap/dnstap.proto
protoc-c $< --c_out=.
dnstap-clean-extra:
@$(call quiet,RM,modules/dnstap/dnstap.pb-c.*) modules/dnstap/dnstap.pb-c.*
dnstap-clean: dnstap-clean-extra
.PHONY: dnstap-clean-extra
Markdown is supported
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