Makefile.am 2.38 KB
Newer Older
1 2
AUTOMAKE_OPTIONS = subdir-objects

3
SUBDIRS = . io unittests tests python threads
4 5 6 7 8

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/exceptions -I$(top_builddir)/src/lib/exceptions
AM_CPPFLAGS += $(BOOST_INCLUDES)
9
AM_CXXFLAGS = $(KEA_CXXFLAGS)
10 11 12
# If we use the shared-memory support, corresponding Boost library may
# cause build failures especially if it's strict about warnings.  We've
# detected it in ./configure and set BOOST_MAPPED_FILE_CXXFLAG to be more
JINMEI Tatuya's avatar
JINMEI Tatuya committed
13
# lenient as necessary (specifically, when set it'd usually suppress -Werror).
14 15 16 17 18 19 20 21
# This is a module wide setting, and has a possible bad side effect of hiding
# issues in other files, but making it per-file seems to be too costly.
# So we begin with the wider setting. If the side effect turns out to be too
# harmful, we'll consider other measure, e.g, moving the related files into
# a subdirectory.
if USE_SHARED_MEMORY
AM_CXXFLAGS += $(BOOST_MAPPED_FILE_CXXFLAG)
endif
22

23 24 25 26 27 28 29 30 31
lib_LTLIBRARIES = libkea-util.la
libkea_util_la_SOURCES  = csv_file.h csv_file.cc
libkea_util_la_SOURCES += filename.h filename.cc
libkea_util_la_SOURCES += locks.h lru_list.h
libkea_util_la_SOURCES += strutil.h strutil.cc
libkea_util_la_SOURCES += buffer.h io_utilities.h
libkea_util_la_SOURCES += time_utilities.h time_utilities.cc
libkea_util_la_SOURCES += memory_segment.h
libkea_util_la_SOURCES += memory_segment_local.h memory_segment_local.cc
32
if USE_SHARED_MEMORY
33
libkea_util_la_SOURCES += memory_segment_mapped.h memory_segment_mapped.cc
34
endif
35
libkea_util_la_SOURCES += optional_value.h
36
libkea_util_la_SOURCES += range_utilities.h
37
libkea_util_la_SOURCES += signal_set.cc signal_set.h
38 39 40 41 42 43 44 45
libkea_util_la_SOURCES += encode/base16_from_binary.h
libkea_util_la_SOURCES += encode/base32hex.h encode/base64.h
libkea_util_la_SOURCES += encode/base32hex_from_binary.h
libkea_util_la_SOURCES += encode/base_n.cc encode/hex.h
libkea_util_la_SOURCES += encode/binary_from_base32hex.h
libkea_util_la_SOURCES += encode/binary_from_base16.h
libkea_util_la_SOURCES += random/qid_gen.h random/qid_gen.cc
libkea_util_la_SOURCES += random/random_number_generator.h
46

47
libkea_util_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
48
CLEANFILES = *.gcno *.gcda
49

50 51
libkea_util_includedir = $(includedir)/$(PACKAGE_NAME)/util
libkea_util_include_HEADERS = buffer.h io_utilities.h