summaryrefslogtreecommitdiffstats
path: root/src/contrib/dnstap/Makefile.am
blob: 186487f919b66971894cc30b25093949506ad046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
AM_CPPFLAGS = \
	-include $(top_builddir)/src/config.h \
	-I$(top_srcdir)/src

EXTRA_DIST =                            \
	dnstap.proto

if HAVE_DNSTAP

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

.proto.pb-c.c:
	$(AM_V_GEN)@PROTOC_C@ --c_out=. -I$(srcdir) $<

.proto.pb-c.h:
	$(AM_V_GEN)@PROTOC_C@ --c_out=. -I$(srcdir) $<

noinst_LTLIBRARIES = libdnstap.la

libdnstap_la_CPPFLAGS =			\
	$(AM_CPPFLAGS)			\
	$(CFLAG_VISIBILITY)

libdnstap_la_CFLAGS =			\
	$(DNSTAP_CFLAGS)

libdnstap_la_LDFLAGS =			\
	$(DNSTAP_LIBS)			\
	$(LDFLAG_EXCLUDE_LIBS)

libdnstap_la_SOURCES =			\
	convert.c			\
	convert.h			\
	dnstap.c			\
	dnstap.h			\
	message.c			\
	message.h			\
	reader.c			\
	reader.h			\
	writer.c			\
	writer.h

nodist_libdnstap_la_SOURCES =		\
	dnstap.pb-c.c			\
	dnstap.pb-c.h

BUILT_SOURCES = $(nodist_libdnstap_la_SOURCES)
CLEANFILES = $(nodist_libdnstap_la_SOURCES)

endif