17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainennoinst_LTLIBRARIES = libdns.la
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainen
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenAM_CPPFLAGS = \
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainen -I$(top_srcdir)/src/lib
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainen
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainenlibdns_la_SOURCES = \
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi dns-lookup.c \
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi dns-util.c
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainen
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainenheaders = \
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi dns-lookup.h \
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi dns-util.h
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainen
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomitest_programs = \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi test-dns-util
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuominoinst_PROGRAMS = $(test_programs)
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomitest_libs = \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi libdns.la \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi ../lib-test/libtest.la \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi ../lib/liblib.la
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomitest_dns_util_SOURCE = test-dns-util.c
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomitest_dns_util_LDADD = $(test_libs)
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomitest_dns_util_CFLAGS = $(AM_CPPFLAGS) \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi -I$(top_srcdir)/src/lib-test
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi for bin in $(test_programs); do \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi if test "$$bin" = "test-program-client-local"; then \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi if ! env NOVALGRIND=yes $(RUN_TEST) ./$$bin; then exit 1; fi; \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi else \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi fi \
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi done
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
a7f58d28d4ccceaf03e2032ec8e855e1ba965bfeAki Tuomi
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_libdir=$(pkgincludedir)
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_lib_HEADERS = $(headers)