Update to 2.28 for TINF-96
[profile/ivi/pygobject2.git] / gobject / Makefile.am
index aff1609..7208329 100644 (file)
@@ -4,7 +4,7 @@ PLATFORM_VERSION = 2.0
 pkgincludedir = $(includedir)/pygtk-$(PLATFORM_VERSION)
 pkginclude_HEADERS = pygobject.h
 
-pkgpyexecdir = $(pyexecdir)/gtk-2.0
+pkgpyexecdir = $(pyexecdir)
 
 # gobject python scripts
 pygobjectdir = $(pkgpyexecdir)/gobject
@@ -21,10 +21,16 @@ endif
 
 _gobject_la_CFLAGS = \
        -I$(top_srcdir)/glib \
+       -I$(top_srcdir)/gi \
        $(PYTHON_INCLUDES) \
        $(FFI_CFLAGS) \
        $(GLIB_CFLAGS) \
         -DPY_SSIZE_T_CLEAN
+
+if ENABLE_INTROSPECTION
+_gobject_la_CFLAGS += $(GI_CFLAGS)
+endif
+
 _gobject_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_gobject|PyInit__gobject"
 _gobject_la_LIBADD = \
        $(GLIB_LIBS) \
@@ -48,8 +54,7 @@ _gobject_la_SOURCES =           \
         pygpointer.c            \
         pygpointer.h            \
         pygtype.c               \
-        pygtype.h              \
-       pygi-external.h
+        pygtype.h
 
 if HAVE_LIBFFI
 _gobject_la_SOURCES += ffi-marshaller.c ffi-marshaller.h
@@ -61,7 +66,10 @@ endif
 
 
 all: $(pygobject_LTLIBRARIES:.la=.so)
+check-local: $(pygobject_LTLIBRARIES:.la=.so)
 clean-local:
        rm -f $(pygobject_LTLIBRARIES:.la=.so)
 .la.so:
        $(LN_S) .libs/$@ $@ || true
+
+-include $(top_srcdir)/git.mk