Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES) $(MULTITHREADING_FLAG)
  4. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
  5. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
  6. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
  7. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/nsas -I$(top_builddir)/src/lib/nsas
  8. AM_CPPFLAGS += $(SQLITE_CFLAGS)
  9. AM_CXXFLAGS = $(B10_CXXFLAGS)
  10. # Some versions of GCC warn about some versions of Boost regarding missing
  11. # initializer for members in its posix_time.
  12. # https://svn.boost.org/trac/boost/ticket/3477
  13. # But older GCC compilers don't have the flag.
  14. AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
  15. # clang++ complains about unused function parameters in some boost header
  16. # files.
  17. if USE_CLANGPP
  18. AM_CXXFLAGS += -Wno-unused-parameter
  19. endif
  20. # Define rule to build logging source files from message file
  21. nsasdef.h nsasdef.cc: nsasdef.mes
  22. $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/nsas/nsasdef.mes
  23. # What is being built.
  24. lib_LTLIBRARIES = libnsas.la
  25. # Tell Automake that the nsasdef.{cc,h} source files are created in the build
  26. # process, so it must create these before doing anything else. Although they
  27. # are a dependency of the library (so will be created from the message file
  28. # anyway), there is no guarantee as to exactly _when_ in the build they will be
  29. # created. As the .h file is included in other sources file (so must be
  30. # present when they are compiled), the safest option is to create it first.
  31. BUILT_SOURCES = nsasdef.h nsasdef.cc
  32. # Library sources. The generated files will not be in the distribution.
  33. libnsas_la_SOURCES = address_entry.h address_entry.cc
  34. libnsas_la_SOURCES += asiolink.h
  35. libnsas_la_SOURCES += hash.cc hash.h
  36. libnsas_la_SOURCES += hash_deleter.h
  37. libnsas_la_SOURCES += hash_key.cc hash_key.h
  38. libnsas_la_SOURCES += hash_table.h
  39. libnsas_la_SOURCES += nameserver_address_store.cc nameserver_address_store.h
  40. libnsas_la_SOURCES += nameserver_address.h nameserver_address.cc
  41. libnsas_la_SOURCES += nameserver_entry.cc nameserver_entry.h
  42. libnsas_la_SOURCES += nsas_entry_compare.h
  43. libnsas_la_SOURCES += nsas_entry.h nsas_types.h
  44. libnsas_la_SOURCES += nsas_log.cc nsas_log.h
  45. libnsas_la_SOURCES += zone_entry.cc zone_entry.h
  46. libnsas_la_SOURCES += fetchable.h
  47. libnsas_la_SOURCES += address_request_callback.h
  48. libnsas_la_SOURCES += glue_hints.h glue_hints.cc
  49. nodist_libnsas_la_SOURCES = nsasdef.h nsasdef.cc
  50. # The message file should be in the distribution.
  51. EXTRA_DIST = nsasdef.mes
  52. # Make sure that the generated files are got rid of in a clean operation
  53. CLEANFILES = *.gcno *.gcda nsasdef.h nsasdef.cc