blob: 07a49dd068cce2bba3c0c365f86760d3d399f60e (
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
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
BUILT_SOURCES =
CLEANFILES = *.gcda *.gcno *.gcov
EXTRA_DIST =
SUBDIRS = test
AM_CFLAGS = $(tinyframe_CFLAGS) \
$(protobuf_c_CFLAGS)
lib_LTLIBRARIES = libdnswire.la
libdnswire_la_SOURCES = decoder.c dnstap.c dnswire.c encoder.c reader.c \
writer.c trace.c
nodist_libdnswire_la_SOURCES = dnstap.pb-c.c
BUILT_SOURCES += dnswire/dnstap.pb-c.h
nobase_include_HEADERS = dnswire/decoder.h dnswire/dnstap.h \
dnswire/dnswire.h dnswire/encoder.h dnswire/reader.h dnswire/writer.h
nobase_nodist_include_HEADERS = dnswire/version.h dnswire/dnstap.pb-c.h \
dnswire/dnstap-macros.h dnswire/trace.h
libdnswire_la_LDFLAGS = -version-info $(DNSWIRE_LIBRARY_VERSION) \
$(protobuf_c_LIBS) \
$(tinyframe_LIBS)
CLEANFILES += $(nodist_libdnswire_la_SOURCES)
EXTRA_DIST += dnstap.pb/dnstap.proto dnstap.pb/LICENSE dnstap.pb/README.md
dnswire/dnstap.pb-c.h: dnstap.pb-c.c
mkdir -p dnswire/
cp dnstap.pb-c.h dnswire/
dnstap.pb-c.c: dnstap.pb/dnstap.proto
$(AM_V_GEN)@PROTOC_C@ "--c_out=." -I$(srcdir)/dnstap.pb "$(srcdir)/dnstap.pb/dnstap.proto"
BUILT_SOURCES += dnswire/dnstap-macros.h
EXTRA_DIST += gen-macros.sh dnstap.fields
dnswire/dnstap-macros.h: dnstap.fields gen-macros.sh
$(AM_V_GEN)"$(srcdir)/gen-macros.sh" "$(srcdir)/dnstap.fields" >dnswire/dnstap-macros.h
CLEANFILES += $(BUILT_SOURCES)
if ENABLE_GCOV
gcov-local:
for src in $(libdnswire_la_SOURCES); do \
gcov -l -r -s "$(srcdir)" "$$src"; \
done
endif
|