Makefile.am 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
  4. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
  5. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc
  6. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiolink
  7. AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiolink
  8. AM_CPPFLAGS += $(BOOST_INCLUDES)
  9. AM_CXXFLAGS = $(B10_CXXFLAGS)
  10. if USE_STATIC_LINK
  11. AM_LDFLAGS = -static
  12. endif
  13. pkglibexecdir = $(libexecdir)/@PACKAGE@
  14. CLEANFILES = *.gcno *.gcda resolver.spec spec_config.h
  15. man_MANS = b10-resolver.8
  16. EXTRA_DIST = $(man_MANS) b10-resolver.xml
  17. if ENABLE_MAN
  18. b10-resolver.8: b10-resolver.xml
  19. xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-resolver.xml
  20. endif
  21. resolver.spec: resolver.spec.pre
  22. $(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" resolver.spec.pre >$@
  23. spec_config.h: spec_config.h.pre
  24. $(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@
  25. BUILT_SOURCES = spec_config.h
  26. pkglibexec_PROGRAMS = b10-resolver
  27. b10_resolver_SOURCES = resolver.cc resolver.h
  28. b10_resolver_SOURCES += response_scrubber.cc response_scrubber.h
  29. b10_resolver_SOURCES += $(top_builddir)/src/bin/auth/change_user.h
  30. b10_resolver_SOURCES += $(top_builddir)/src/bin/auth/common.h
  31. b10_resolver_SOURCES += main.cc
  32. b10_resolver_LDADD = $(top_builddir)/src/lib/dns/libdns++.la
  33. b10_resolver_LDADD += $(top_builddir)/src/lib/config/libcfgclient.la
  34. b10_resolver_LDADD += $(top_builddir)/src/lib/cc/libcc.la
  35. b10_resolver_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
  36. b10_resolver_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la
  37. b10_resolver_LDADD += $(top_builddir)/src/lib/xfr/libxfr.la
  38. b10_resolver_LDADD += $(top_builddir)/src/lib/log/liblog.la
  39. b10_resolver_LDADD += $(top_builddir)/src/lib/server_common/libserver_common.la
  40. b10_resolver_LDADD += $(top_builddir)/src/lib/cache/libcache.la
  41. b10_resolver_LDADD += $(top_builddir)/src/lib/nsas/libnsas.la
  42. b10_resolver_LDADD += $(top_builddir)/src/bin/auth/change_user.o
  43. b10_resolver_LDFLAGS = -pthread
  44. # TODO: config.h.in is wrong because doesn't honor pkgdatadir
  45. # and can't use @datadir@ because doesn't expand default ${prefix}
  46. b10_resolverdir = $(pkgdatadir)
  47. b10_resolver_DATA = resolver.spec