Makefile.am 2.34 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
libpydnspp_la_SOURCES += name_python.cc name_python.h
10
libpydnspp_la_SOURCES += nsec3hash_python.cc nsec3hash_python.h
11
12
13
14
15
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
16
libpydnspp_la_SOURCES += serial_python.cc serial_python.h
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)

33

34
35
36

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

43
EXTRA_DIST = tsigerror_python_inc.cc
44
EXTRA_DIST += message_python_inc.cc
45
EXTRA_DIST += nsec3hash_python_inc.cc
46
47
48

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