summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/python/Makefile.am
blob: 96542397a636444f5ec59bb8068d3e843cc1a44c (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
SUBDIRS = . tests

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

lib_LTLIBRARIES = libb10-pydnspp.la
libb10_pydnspp_la_SOURCES = pydnspp_common.cc pydnspp_common.h
libb10_pydnspp_la_SOURCES += pydnspp_config.h pydnspp_towire.h
libb10_pydnspp_la_SOURCES += name_python.cc name_python.h
libb10_pydnspp_la_SOURCES += nsec3hash_python.cc nsec3hash_python.h
libb10_pydnspp_la_SOURCES += rrset_python.cc rrset_python.h
libb10_pydnspp_la_SOURCES += rrclass_python.cc rrclass_python.h
libb10_pydnspp_la_SOURCES += rrtype_python.cc rrtype_python.h
libb10_pydnspp_la_SOURCES += rrttl_python.cc rrttl_python.h
libb10_pydnspp_la_SOURCES += rdata_python.cc rdata_python.h
libb10_pydnspp_la_SOURCES += serial_python.cc serial_python.h
libb10_pydnspp_la_SOURCES += messagerenderer_python.cc messagerenderer_python.h
libb10_pydnspp_la_SOURCES += rcode_python.cc rcode_python.h
libb10_pydnspp_la_SOURCES += opcode_python.cc opcode_python.h
libb10_pydnspp_la_SOURCES += question_python.cc question_python.h
libb10_pydnspp_la_SOURCES += tsigkey_python.cc tsigkey_python.h
libb10_pydnspp_la_SOURCES += tsigerror_python.cc tsigerror_python.h
libb10_pydnspp_la_SOURCES += tsig_rdata_python.cc tsig_rdata_python.h
libb10_pydnspp_la_SOURCES += tsigrecord_python.cc tsigrecord_python.h
libb10_pydnspp_la_SOURCES += tsig_python.cc tsig_python.h
libb10_pydnspp_la_SOURCES += edns_python.cc edns_python.h
libb10_pydnspp_la_SOURCES += message_python.cc message_python.h
libb10_pydnspp_la_SOURCES += rrset_collection_python.cc
libb10_pydnspp_la_SOURCES += rrset_collection_python.h
libb10_pydnspp_la_SOURCES += zone_checker_python.cc zone_checker_python.h

libb10_pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
libb10_pydnspp_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
libb10_pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)



pyexec_LTLIBRARIES = pydnspp.la
pydnspp_la_SOURCES = pydnspp.cc
pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
# 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)
pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)

EXTRA_DIST = tsigerror_python_inc.cc
EXTRA_DIST += message_python_inc.cc
EXTRA_DIST += nsec3hash_python_inc.cc
EXTRA_DIST += rrset_collection_python_inc.cc
EXTRA_DIST += zone_checker_python_inc.cc

# Python prefers .so, while some OSes (specifically MacOS) use a different
# suffix for dynamic objects.  -module is necessary to work this around.
pydnspp_la_LDFLAGS += -module -avoid-version
pydnspp_la_LIBADD = $(top_builddir)/src/lib/dns/libb10-dns++.la
pydnspp_la_LIBADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
pydnspp_la_LIBADD += libb10-pydnspp.la
pydnspp_la_LIBADD += $(PYTHON_LIB)