Makefile.am 818 Bytes
Newer Older
1
SUBDIRS = . tests
2

3
4
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
5
AM_CPPFLAGS += $(BOOST_INCLUDES)
6

7
8
AM_CXXFLAGS = $(B10_CXXFLAGS)

9
10
AM_LDFLAGS = $(CLOCK_GETTIME_LDFLAGS)
AM_LDFLAGS += -lm
11
12
13
14
if USE_STATIC_LINK
AM_LDFLAGS += -static
endif

15
# We have to suppress warnings because we are compiling C code with CXX
16
17
# We have to do this to link with new C++ pieces of code
perfdhcp_CXXFLAGS = $(AM_CXXFLAGS)
18
19
20
21
22
23
24
if USE_CLANGPP
perfdhcp_CXXFLAGS += -Wno-deprecated-writable-strings
else
if USE_GXX
perfdhcp_CXXFLAGS += -Wno-write-strings
endif
endif
25

26
pkglibexec_PROGRAMS  = perfdhcp
27
perfdhcp_SOURCES  = perfdhcp.cc
28
perfdhcp_SOURCES += command_options.cc command_options.h
29
30

perfdhcp_LDADD = $(top_builddir)/src/lib/exceptions/libexceptions.la