Makefile.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. SUBDIRS = . io unittests tests pyunittests python threads
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
  4. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/exceptions -I$(top_builddir)/src/lib/exceptions
  5. AM_CPPFLAGS += $(BOOST_INCLUDES)
  6. AM_CXXFLAGS = $(B10_CXXFLAGS)
  7. # If we use the shared-memory support, corresponding Boost library may
  8. # cause build failures especially if it's strict about warnings. We've
  9. # detected it in ./configure and set BOOST_MAPPED_FILE_CXXFLAG to be more
  10. # lenient as necessary (specifically, when set it'd usually suppress -Werror).
  11. # This is a module wide setting, and has a possible bad side effect of hiding
  12. # issues in other files, but making it per-file seems to be too costly.
  13. # So we begin with the wider setting. If the side effect turns out to be too
  14. # harmful, we'll consider other measure, e.g, moving the related files into
  15. # a subdirectory.
  16. if USE_SHARED_MEMORY
  17. AM_CXXFLAGS += $(BOOST_MAPPED_FILE_CXXFLAG)
  18. endif
  19. lib_LTLIBRARIES = libkea-util.la
  20. libkea_util_la_SOURCES = csv_file.h csv_file.cc
  21. libkea_util_la_SOURCES += filename.h filename.cc
  22. libkea_util_la_SOURCES += locks.h lru_list.h
  23. libkea_util_la_SOURCES += strutil.h strutil.cc
  24. libkea_util_la_SOURCES += buffer.h io_utilities.h
  25. libkea_util_la_SOURCES += time_utilities.h time_utilities.cc
  26. libkea_util_la_SOURCES += memory_segment.h
  27. libkea_util_la_SOURCES += memory_segment_local.h memory_segment_local.cc
  28. if USE_SHARED_MEMORY
  29. libkea_util_la_SOURCES += memory_segment_mapped.h memory_segment_mapped.cc
  30. endif
  31. libkea_util_la_SOURCES += range_utilities.h
  32. libkea_util_la_SOURCES += signal_set.cc signal_set.h
  33. libkea_util_la_SOURCES += hash/sha1.h hash/sha1.cc
  34. libkea_util_la_SOURCES += encode/base16_from_binary.h
  35. libkea_util_la_SOURCES += encode/base32hex.h encode/base64.h
  36. libkea_util_la_SOURCES += encode/base32hex_from_binary.h
  37. libkea_util_la_SOURCES += encode/base_n.cc encode/hex.h
  38. libkea_util_la_SOURCES += encode/binary_from_base32hex.h
  39. libkea_util_la_SOURCES += encode/binary_from_base16.h
  40. libkea_util_la_SOURCES += random/qid_gen.h random/qid_gen.cc
  41. libkea_util_la_SOURCES += random/random_number_generator.h
  42. EXTRA_DIST = python/pycppwrapper_util.h
  43. libkea_util_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  44. CLEANFILES = *.gcno *.gcda
  45. libkea_util_includedir = $(includedir)/$(PACKAGE_NAME)/util
  46. libkea_util_include_HEADERS = buffer.h io_utilities.h