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

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

Jelte Jansen's avatar
Jelte Jansen committed
6
7
8
9
pyexec_LTLIBRARIES = pydnspp.la
pydnspp_la_SOURCES = pydnspp.cc pydnspp_common.cc
pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
10

Jelte Jansen's avatar
Jelte Jansen committed
11
12
# directly included from source files, so these don't have their own
# rules
Jelte Jansen's avatar
Jelte Jansen committed
13
EXTRA_DIST = pydnspp_common.h
JINMEI Tatuya's avatar
JINMEI Tatuya committed
14
EXTRA_DIST += edns_python.cc
Jelte Jansen's avatar
Jelte Jansen committed
15
16
17
18
EXTRA_DIST += messagerenderer_python.cc
EXTRA_DIST += message_python.cc
EXTRA_DIST += rrclass_python.cc
EXTRA_DIST += name_python.cc
19
EXTRA_DIST += opcode_python.cc
20
EXTRA_DIST += rcode_python.cc
Jelte Jansen's avatar
Jelte Jansen committed
21
22
23
24
25
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
26
EXTRA_DIST += tsigkey_python.cc
27
28
29

# 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
30
31
32
33
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)