Makefile.am 1.72 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

Jelte Jansen's avatar
Jelte Jansen committed
7
pyexec_LTLIBRARIES = pydnspp.la
8
9
10
pydnspp_la_SOURCES = pydnspp.cc pydnspp_common.cc pydnspp_towire.h
pydnspp_la_SOURCES += name_python.cc name_python.h
pydnspp_la_SOURCES += messagerenderer_python.cc messagerenderer_python.h
11
pydnspp_la_SOURCES += rcode_python.cc rcode_python.h
12
pydnspp_la_SOURCES += tsigkey_python.cc tsigkey_python.h
13
pydnspp_la_SOURCES += tsigerror_python.cc tsigerror_python.h
14
15
16
pydnspp_la_SOURCES += tsig_rdata_python.cc tsig_rdata_python.h
pydnspp_la_SOURCES += tsigrecord_python.cc tsigrecord_python.h
pydnspp_la_SOURCES += tsig_python.cc tsig_python.h
17

Jelte Jansen's avatar
Jelte Jansen committed
18
pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
19
20
21
# 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
22
pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
23

Jelte Jansen's avatar
Jelte Jansen committed
24
25
# directly included from source files, so these don't have their own
# rules
Jelte Jansen's avatar
Jelte Jansen committed
26
EXTRA_DIST = pydnspp_common.h
JINMEI Tatuya's avatar
JINMEI Tatuya committed
27
EXTRA_DIST += edns_python.cc
Jelte Jansen's avatar
Jelte Jansen committed
28
29
EXTRA_DIST += message_python.cc
EXTRA_DIST += rrclass_python.cc
30
EXTRA_DIST += opcode_python.cc
Jelte Jansen's avatar
Jelte Jansen committed
31
32
33
34
35
EXTRA_DIST += rrset_python.cc
EXTRA_DIST += question_python.cc
EXTRA_DIST += rrttl_python.cc
EXTRA_DIST += rdata_python.cc
EXTRA_DIST += rrtype_python.cc
36
EXTRA_DIST += tsigerror_python_inc.cc
37
38
39

# 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
40
41
42
43
pydnspp_la_LDFLAGS += -module
pydnspp_la_LIBADD = $(top_builddir)/src/lib/dns/libdns++.la
pydnspp_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
pydnspp_la_LIBADD += $(PYTHON_LIB)