4 pkgincludedir = $(includedir)/pygobject-$(PLATFORM_VERSION)
5 pkginclude_HEADERS = pygobject.h
16 # Windows requires Python modules to be explicitly linked to libpython.
17 # Extension modules are shared libaries (.dll), but need to be
18 # called .pyd for Python to load it as an extension module.
22 extension_ldflags += \
27 pygobjectdir = $(pyexecdir)/gi/_gobject
35 pygobject_LTLIBRARIES = _gobject.la
37 _gobject_la_SOURCES = \
56 _gobject_la_CFLAGS = \
57 $(extension_cppflags) \
58 -I$(top_srcdir)/gi/_glib \
64 _gobject_la_LIBADD = \
68 $(top_builddir)/gi/_glib/libpyglib-gi-2.0-@PYTHON_BASENAME@.la
69 _gobject_la_LDFLAGS = \
70 $(extension_ldflags) \
71 -export-symbols-regex "_gobject|PyInit__gobject"
73 # if we build in a separate tree, we need to symlink the *.py files from the
74 # source tree; Python does not accept the extensions and modules in different
77 for f in $(pygobject_PYTHON); do \
78 [ -e $(builddir)/$$f ] || $(LN_S) $(srcdir)/$$f $(builddir)/$$f; \
82 all: $(pygobject_LTLIBRARIES:.la=.so) build_pylinks
83 check-local: $(pygobject_LTLIBRARIES:.la=.so) build_pylinks
85 rm -f $(pygobject_LTLIBRARIES:.la=.so)
87 $(LN_S) -f .libs/$@ $@