Makefile.am 2.71 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
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
lib_LTLIBRARIES = libb10-pydnspp.la
libb10_pydnspp_la_SOURCES = pydnspp_common.cc pydnspp_common.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
28
29
libb10_pydnspp_la_SOURCES += rrset_collection_python.cc
libb10_pydnspp_la_SOURCES += rrset_collection_python.h
30
libb10_pydnspp_la_SOURCES += zone_checker_python.cc zone_checker_python.h
31
32
33
34

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

36

37
38
39

pyexec_LTLIBRARIES = pydnspp.la
pydnspp_la_SOURCES = pydnspp.cc
Jelte Jansen's avatar
Jelte Jansen committed
40
pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
41
42
43
# 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
44
pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
45

46
EXTRA_DIST = tsigerror_python_inc.cc
47
EXTRA_DIST += message_python_inc.cc
48
EXTRA_DIST += nsec3hash_python_inc.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
49
EXTRA_DIST += rrset_collection_python_inc.cc
50
EXTRA_DIST += zone_checker_python_inc.cc
51
52
53

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