Makefile.am 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. SUBDIRS = . tests benchmarks
  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 auth.spec spec_config.h
  15. CLEANFILES += auth_messages.h auth_messages.cc
  16. man_MANS = b10-auth.8
  17. EXTRA_DIST = $(man_MANS) b10-auth.xml
  18. if ENABLE_MAN
  19. b10-auth.8: b10-auth.xml
  20. xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml
  21. endif
  22. auth.spec: auth.spec.pre
  23. $(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" auth.spec.pre >$@
  24. spec_config.h: spec_config.h.pre
  25. $(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@
  26. auth_messages.h auth_messages.cc: auth_messages.mes
  27. $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/auth/auth_messages.mes
  28. BUILT_SOURCES = spec_config.h auth_messages.h auth_messages.cc
  29. pkglibexec_PROGRAMS = b10-auth
  30. b10_auth_SOURCES = query.cc query.h
  31. b10_auth_SOURCES += auth_srv.cc auth_srv.h
  32. b10_auth_SOURCES += auth_log.cc auth_log.h
  33. b10_auth_SOURCES += auth_config.cc auth_config.h
  34. b10_auth_SOURCES += command.cc command.h
  35. b10_auth_SOURCES += common.h common.cc
  36. b10_auth_SOURCES += statistics.cc statistics.h
  37. b10_auth_SOURCES += datasrc_configurator.h
  38. b10_auth_SOURCES += main.cc
  39. # This is a temporary workaround for #1206, where the InMemoryClient has been
  40. # moved to an ldopened library. We could add that library to LDADD, but that
  41. # is nonportable. This should've been moot after #1207, but there is still
  42. # one dependency; the in-memory-specific zone loader call is still in
  43. # auth.
  44. b10_auth_SOURCES += ${top_srcdir}/src/lib/datasrc/memory_datasrc.cc
  45. nodist_b10_auth_SOURCES = auth_messages.h auth_messages.cc
  46. EXTRA_DIST += auth_messages.mes
  47. b10_auth_LDADD = $(top_builddir)/src/lib/datasrc/libdatasrc.la
  48. b10_auth_LDADD += $(top_builddir)/src/lib/dns/libdns++.la
  49. b10_auth_LDADD += $(top_builddir)/src/lib/util/libutil.la
  50. b10_auth_LDADD += $(top_builddir)/src/lib/util/io/libutil_io.la
  51. b10_auth_LDADD += $(top_builddir)/src/lib/config/libcfgclient.la
  52. b10_auth_LDADD += $(top_builddir)/src/lib/cc/libcc.la
  53. b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
  54. b10_auth_LDADD += $(top_builddir)/src/lib/asiodns/libasiodns.la
  55. b10_auth_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la
  56. b10_auth_LDADD += $(top_builddir)/src/lib/log/liblog.la
  57. b10_auth_LDADD += $(top_builddir)/src/lib/xfr/libxfr.la
  58. b10_auth_LDADD += $(top_builddir)/src/lib/server_common/libserver_common.la
  59. b10_auth_LDADD += $(top_builddir)/src/lib/statistics/libstatistics.la
  60. b10_auth_LDADD += $(SQLITE_LIBS)
  61. # TODO: config.h.in is wrong because doesn't honor pkgdatadir
  62. # and can't use @datadir@ because doesn't expand default ${prefix}
  63. b10_authdir = $(pkgdatadir)
  64. b10_auth_DATA = auth.spec