diff options
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r-- | examples/Makefile.am | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am new file mode 100644 index 0000000..06dd2a7 --- /dev/null +++ b/examples/Makefile.am @@ -0,0 +1,48 @@ +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in + +CLEANFILES = + +AM_CFLAGS = -I$(top_srcdir)/src \ + $(tinyframe_CFLAGS) \ + $(protobuf_c_CFLAGS) + +AM_LDFLAGS = $(protobuf_c_LIBS) \ + $(tinyframe_LIBS) -static + +EXTRA_DIST = print_dnstap.c create_dnstap.c + +if BUILD_EXAMPLES + +noinst_PROGRAMS = reader writer sender receiver reader_sender + +reader_SOURCES = reader.c +reader_LDADD = ../src/libdnswire.la + +writer_SOURCES = writer.c +writer_LDADD = ../src/libdnswire.la + +sender_SOURCES = sender.c +sender_LDADD = ../src/libdnswire.la + +receiver_SOURCES = receiver.c +receiver_LDADD = ../src/libdnswire.la + +reader_sender_SOURCES = reader_sender.c +reader_sender_LDADD = ../src/libdnswire.la + +if HAVE_LIBUV + +AM_CFLAGS += -I$(uv_CFLAGS) +AM_LDFLAGS += $(uv_LIBS) + +noinst_PROGRAMS += daemon_sender_uv client_receiver_uv + +daemon_sender_uv_SOURCES = daemon_sender_uv.c +daemon_sender_uv_LDADD = ../src/libdnswire.la + +client_receiver_uv_SOURCES = client_receiver_uv.c +client_receiver_uv_LDADD = ../src/libdnswire.la + +endif + +endif |