Skip to content

Commit

Permalink
Makefile.am: Generate the dnstap.pb-c.c and dnstap.pb-c.h files
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Edmonds committed Nov 4, 2014
1 parent 7b16001 commit 47b8150
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin_PROGRAMS =
BUILT_SOURCES =
EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
Expand All @@ -7,6 +8,18 @@ AM_CPPFLAGS = -include $(top_builddir)/config.h
AM_CFLAGS = ${my_CFLAGS}
AM_LDFLAGS =

SUFFIXES = .proto .pb-c.c .pb-c.h

.proto.pb-c.c:
$(AM_V_GEN)@PROTOC_C@ "--c_out=`pwd`" -I$(top_srcdir) $<

.proto.pb-c.h:
$(AM_V_GEN)@PROTOC_C@ "--c_out=`pwd`" -I$(top_srcdir) $<

PROTOBUF_SOURCES = dnstap.pb/dnstap.pb-c.c dnstap.pb/dnstap.pb-c.h
BUILT_SOURCES += ${PROTOBUF_SOURCES}
CLEANFILES += ${PROTOBUF_SOURCES}

bin_PROGRAMS += dnstap-ldns
dnstap_ldns_SOURCES = \
dnstap-ldns.c

0 comments on commit 47b8150

Please sign in to comment.