summaryrefslogtreecommitdiffstats
path: root/src/lib/xfr/Makefile.am
blob: 75e7a4f577a828f6201d0e4631ea36199147cec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SUBDIRS = . 

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
AM_CPPFLAGS += -I$(top_srcdir)/ext -Wno-strict-aliasing

if GCC_WERROR_OK
AM_CPPFLAGS += -Werror
endif

CLEANFILES = *.gcno *.gcda

lib_LTLIBRARIES = libxfr.la
libxfr_la_SOURCES = xfrout_client.h xfrout_client.cc 
libxfr_la_SOURCES += fd_share.h fd_share.cc

pyexec_LTLIBRARIES = libxfr_python.la
libxfr_python_la_SOURCES = fdshare_python.cc
libxfr_python_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
libxfr_python_la_LDFLAGS = $(PYTHON_LDFLAGS)
# (still need boost for asio)
libxfr_python_la_LDFLAGS += $(BOOST_LDFLAGS) $(PYTHON_LDFLAGS)
libxfr_python_la_LDFLAGS += -module

libxfr_python_la_LIBADD = $(top_builddir)/src/lib/xfr/libxfr.la
libxfr_python_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
libxfr_python_la_LIBADD += $(BOOST_SYSTEM_LIB) $(PYTHON_LIB)
libxfr_python_la_LIBADD += $(PYTHON_LIB)

#if HAVE_BOOST_PYTHON
#pyexec_LTLIBRARIES += bind10_xfr.la
#bind10_xfr_la_SOURCES = python_xfr.cc fd_share.cc fd_share.h
#bind10_xfr_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
#if GCC_WERROR_OK
# XXX: Boost.Python triggers strict aliasing violation, so if we use -Werror
# we need to suppress the warnings.
#bind10_xfr_la_CPPFLAGS += -fno-strict-aliasing
#endif
#bind10_xfr_la_LDFLAGS = $(BOOST_LDFLAGS) $(PYTHON_LDFLAGS)
# Python prefers .so, while some OSes (specifically MacOS) use a different
# suffix for dynamic objects.  -module is necessary to work this around.
#bind10_xfr_la_LDFLAGS += -module
#bind10_xfr_la_LIBADD = $(BOOST_PYTHON_LIB) $(PYTHON_LIB)
#endif