4 pkgincludedir = $(includedir)/pygtk-$(PLATFORM_VERSION)
5 pkginclude_HEADERS = pygobject.h
7 pkgpyexecdir = $(pyexecdir)
9 # gobject python scripts
10 pygobjectdir = $(pkgpyexecdir)/gobject
15 pygobject_LTLIBRARIES = _gobject.la
17 common_ldflags = -module -avoid-version
19 common_ldflags += -no-undefined
22 _gobject_la_CFLAGS = \
23 -I$(top_srcdir)/glib \
30 if ENABLE_INTROSPECTION
31 _gobject_la_CFLAGS += $(GI_CFLAGS)
34 _gobject_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_gobject|PyInit__gobject"
35 _gobject_la_LIBADD = \
38 $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la
39 _gobject_la_SOURCES = \
60 _gobject_la_SOURCES += ffi-marshaller.c ffi-marshaller.h
64 _gobject_la_CFLAGS += -DPLATFORM_WIN32
68 all: $(pygobject_LTLIBRARIES:.la=.so)
69 check-local: $(pygobject_LTLIBRARIES:.la=.so)
71 rm -f $(pygobject_LTLIBRARIES:.la=.so)
73 $(LN_S) .libs/$@ $@ || true
75 -include $(top_srcdir)/git.mk