Makefile.am 1.25 KB
Newer Older
1
SUBDIRS = . tests
JINMEI Tatuya's avatar
JINMEI Tatuya committed
2

3
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
5
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
6
AM_CPPFLAGS += $(BOOST_INCLUDES)
Jeremy C. Reed's avatar
Jeremy C. Reed committed
7

8
# Define rule to build logging source files from message file
9 10 11
config_messages.h config_messages.cc: s-messages

s-messages: config_messages.mes
12
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/config/config_messages.mes
13
	touch $@
14

15
BUILT_SOURCES = config_messages.h config_messages.cc
16

17 18 19 20
lib_LTLIBRARIES = libkea-cfgclient.la
libkea_cfgclient_la_SOURCES = config_data.h config_data.cc
libkea_cfgclient_la_SOURCES += module_spec.h module_spec.cc
libkea_cfgclient_la_SOURCES += config_log.h config_log.cc
21

22 23
libkea_cfgclient_la_LIBADD = $(top_builddir)/src/lib/cc/libkea-cc.la
libkea_cfgclient_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
24
libkea_cfgclient_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
25

26
libkea_cfgclient_la_LDFLAGS = -no-undefined -version-info 1:0:1
27

28
nodist_libkea_cfgclient_la_SOURCES  = config_messages.h config_messages.cc
29 30

# The message file should be in the distribution.
31
EXTRA_DIST = config_messages.mes
Jeremy C. Reed's avatar
Jeremy C. Reed committed
32

33
CLEANFILES = *.gcno *.gcda config_messages.h config_messages.cc s-messages