Makefile.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES)
  4. AM_CXXFLAGS = $(B10_CXXFLAGS)
  5. lib_LTLIBRARIES = libb10-pydnspp.la
  6. libb10_pydnspp_la_SOURCES = pydnspp_common.cc pydnspp_common.h pydnspp_towire.h
  7. libb10_pydnspp_la_SOURCES += name_python.cc name_python.h
  8. libb10_pydnspp_la_SOURCES += nsec3hash_python.cc nsec3hash_python.h
  9. libb10_pydnspp_la_SOURCES += rrset_python.cc rrset_python.h
  10. libb10_pydnspp_la_SOURCES += rrclass_python.cc rrclass_python.h
  11. libb10_pydnspp_la_SOURCES += rrtype_python.cc rrtype_python.h
  12. libb10_pydnspp_la_SOURCES += rrttl_python.cc rrttl_python.h
  13. libb10_pydnspp_la_SOURCES += rdata_python.cc rdata_python.h
  14. libb10_pydnspp_la_SOURCES += serial_python.cc serial_python.h
  15. libb10_pydnspp_la_SOURCES += messagerenderer_python.cc messagerenderer_python.h
  16. libb10_pydnspp_la_SOURCES += rcode_python.cc rcode_python.h
  17. libb10_pydnspp_la_SOURCES += opcode_python.cc opcode_python.h
  18. libb10_pydnspp_la_SOURCES += question_python.cc question_python.h
  19. libb10_pydnspp_la_SOURCES += tsigkey_python.cc tsigkey_python.h
  20. libb10_pydnspp_la_SOURCES += tsigerror_python.cc tsigerror_python.h
  21. libb10_pydnspp_la_SOURCES += tsig_rdata_python.cc tsig_rdata_python.h
  22. libb10_pydnspp_la_SOURCES += tsigrecord_python.cc tsigrecord_python.h
  23. libb10_pydnspp_la_SOURCES += tsig_python.cc tsig_python.h
  24. libb10_pydnspp_la_SOURCES += edns_python.cc edns_python.h
  25. libb10_pydnspp_la_SOURCES += message_python.cc message_python.h
  26. libb10_pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
  27. libb10_pydnspp_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
  28. libb10_pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
  29. pyexec_LTLIBRARIES = pydnspp.la
  30. pydnspp_la_SOURCES = pydnspp.cc
  31. pydnspp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
  32. # Note: PYTHON_CXXFLAGS may have some -Wno... workaround, which must be
  33. # placed after -Wextra defined in AM_CXXFLAGS
  34. pydnspp_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
  35. pydnspp_la_LDFLAGS = $(PYTHON_LDFLAGS)
  36. EXTRA_DIST = tsigerror_python_inc.cc
  37. EXTRA_DIST += message_python_inc.cc
  38. EXTRA_DIST += nsec3hash_python_inc.cc
  39. # Python prefers .so, while some OSes (specifically MacOS) use a different
  40. # suffix for dynamic objects. -module is necessary to work this around.
  41. pydnspp_la_LDFLAGS += -module -avoid-version
  42. pydnspp_la_LIBADD = $(top_builddir)/src/lib/dns/libb10-dns++.la
  43. pydnspp_la_LIBADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
  44. pydnspp_la_LIBADD += libb10-pydnspp.la
  45. pydnspp_la_LIBADD += $(PYTHON_LIB)