| 1 |
4MAINTAINERCLEANFILES = $(srcdir)/Makefile.in |
| 2 |
|
| 3 |
CLEANFILES = test*.log test*.trs \ |
| 4 |
test1.out test2.out test3.out test3.dnstap test4.out test4.dnstap \ |
| 5 |
test5.out test5.sock *.gcda *.gcno *.gcov |
| 6 |
|
| 7 |
AM_CFLAGS = -I$(top_srcdir)/src \ |
| 8 |
$(tinyframe_CFLAGS) \ |
| 9 |
$(protobuf_c_CFLAGS) |
| 10 |
|
| 11 |
check_PROGRAMS = reader_read reader_push writer_write writer_pop \ |
| 12 |
reader_unixsock writer_unixsock test_dnstap test_encoder test_decoder \ |
| 13 |
test_reader test_writer |
| 14 |
TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh test6.sh |
| 15 |
EXTRA_DIST = create_dnstap.c print_dnstap.c $(TESTS) test.dnstap \ |
| 16 |
test1.gold test2.gold test3.gold test4.gold test5.gold |
| 17 |
|
| 18 |
reader_read_SOURCES = reader_read.c |
| 19 |
reader_read_LDADD = ../libdnswire.la |
| 20 |
reader_read_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 21 |
|
| 22 |
reader_push_SOURCES = reader_push.c |
| 23 |
reader_push_LDADD = ../libdnswire.la |
| 24 |
reader_push_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 25 |
|
| 26 |
writer_write_SOURCES = writer_write.c |
| 27 |
writer_write_LDADD = ../libdnswire.la |
| 28 |
writer_write_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 29 |
|
| 30 |
writer_pop_SOURCES = writer_pop.c |
| 31 |
writer_pop_LDADD = ../libdnswire.la |
| 32 |
writer_pop_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 33 |
|
| 34 |
reader_unixsock_SOURCES = reader_unixsock.c |
| 35 |
reader_unixsock_LDADD = ../libdnswire.la |
| 36 |
reader_unixsock_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 37 |
|
| 38 |
writer_unixsock_SOURCES = writer_unixsock.c |
| 39 |
writer_unixsock_LDADD = ../libdnswire.la |
| 40 |
writer_unixsock_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 41 |
|
| 42 |
test_dnstap_SOURCES = test_dnstap.c |
| 43 |
test_dnstap_LDADD = ../libdnswire.la |
| 44 |
test_dnstap_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 45 |
|
| 46 |
test_encoder_SOURCES = test_encoder.c |
| 47 |
test_encoder_LDADD = ../libdnswire.la |
| 48 |
test_encoder_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 49 |
|
| 50 |
test_decoder_SOURCES = test_decoder.c |
| 51 |
test_decoder_LDADD = ../libdnswire.la |
| 52 |
test_decoder_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 53 |
|
| 54 |
test_reader_SOURCES = test_reader.c |
| 55 |
test_reader_LDADD = ../libdnswire.la |
| 56 |
test_reader_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 57 |
|
| 58 |
test_writer_SOURCES = test_writer.c |
| 59 |
test_writer_LDADD = ../libdnswire.la |
| 60 |
test_writer_LDFLAGS = $(protobuf_c_LIBS) $(tinyframe_LIBS) -static |
| 61 |
|
| 62 |
if ENABLE_GCOV |
| 63 |
gcov-local: |
| 64 |
for src in $(reader_read_SOURCES) $(reader_push_SOURCES) \ |
| 65 |
$(writer_write_SOURCES) $(writer_pop_SOURCES) $(reader_unixsock_SOURCES) \ |
| 66 |
$(writer_unixsock_SOURCES) $(test_dnstap_SOURCES) $(test_encoder_SOURCES) \ |
| 67 |
$(test_decoder_SOURCES) $(test_reader_SOURCES) $(test_writer_SOURCES); do \ |
| 68 |
gcov -l -r -s "$(srcdir)" "$$src"; \ |
| 69 |
done |
| 70 |
endif |