Makefile.am 2.14 KB
Newer Older
1
SUBDIRS = . tests
2

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

7
lib_LTLIBRARIES = libpydnspp.la
8
libpydnspp_la_SOURCES = pydnspp_common.cc pydnspp_common.h pydnspp_towire.h
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
libpydnspp_la_SOURCES += name_python.cc name_python.h
libpydnspp_la_SOURCES += rrset_python.cc rrset_python.h
libpydnspp_la_SOURCES += rrclass_python.cc rrclass_python.h
libpydnspp_la_SOURCES += rrtype_python.cc rrtype_python.h
libpydnspp_la_SOURCES += rrttl_python.cc rrttl_python.h
libpydnspp_la_SOURCES += rdata_python.cc rdata_python.h
libpydnspp_la_SOURCES += messagerenderer_python.cc messagerenderer_python.h
libpydnspp_la_SOURCES += rcode_python.cc rcode_python.h
libpydnspp_la_SOURCES += opcode_python.cc opcode_python.h
libpydnspp_la_SOURCES += question_python.cc question_python.h
libpydnspp_la_SOURCES += tsigkey_python.cc tsigkey_python.h
libpydnspp_la_SOURCES += tsigerror_python.cc tsigerror_python.h
libpydnspp_la_SOURCES += tsig_rdata_python.cc tsig_rdata_python.h
libpydnspp_la_SOURCES += tsigrecord_python.cc tsigrecord_python.h
libpydnspp_la_SOURCES += tsig_python.cc tsig_python.h
libpydnspp_la_SOURCES += edns_python.cc edns_python.h
libpydnspp_la_SOURCES += message_python.cc message_python.h

libpydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
libpydnspp_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
libpydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)

31

32
33
34

pyexec_LTLIBRARIES = pydnspp.la
pydnspp_la_SOURCES = pydnspp.cc
Jelte Jansen's avatar
Jelte Jansen committed
35
pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
36
37
38
# Note: PYTHON_CXXFLAGS may have some -Wno... workaround, which must be
# placed after -Wextra defined in AM_CXXFLAGS
pydnspp_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
Jelte Jansen's avatar
Jelte Jansen committed
39
pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
40

41
EXTRA_DIST = tsigerror_python_inc.cc
42
43
44

# Python prefers .so, while some OSes (specifically MacOS) use a different
# suffix for dynamic objects.  -module is necessary to work this around.
Jelte Jansen's avatar
Jelte Jansen committed
45
46
47
pydnspp_la_LDFLAGS += -module
pydnspp_la_LIBADD = $(top_builddir)/src/lib/dns/libdns++.la
pydnspp_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
48
pydnspp_la_LIBADD += libpydnspp.la
Jelte Jansen's avatar
Jelte Jansen committed
49
pydnspp_la_LIBADD += $(PYTHON_LIB)