Makefile.am 1.05 KB
Newer Older
1 2 3 4 5 6
SUBDIRS = .

AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CXXFLAGS = $(B10_CXXFLAGS)

7
AM_LDFLAGS = $(CLOCK_GETTIME_LDFLAGS)
8
if USE_STATIC_LINK
9
AM_LDFLAGS += -static
10 11 12 13 14 15 16 17 18
endif

CLEANFILES = *.gcno *.gcda

TESTS =
if HAVE_GTEST
TESTS += run_unittests
run_unittests_SOURCES  = run_unittests.cc
run_unittests_SOURCES += command_options_unittest.cc
19
run_unittests_SOURCES += perf_pkt6_unittest.cc
20
run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/command_options.cc
21
run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/perf_pkt6.cc
22 23 24 25 26 27 28

run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS  = $(AM_LDFLAGS)  $(GTEST_LDFLAGS)

run_unittests_LDADD  = $(GTEST_LDADD)
run_unittests_LDADD += $(top_builddir)/src/lib/util/libutil.la
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
29
run_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libdhcp++.la
30 31 32 33
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
endif

noinst_PROGRAMS = $(TESTS)