summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-01-13 23:18:04 +0100
committerStefano Karapetsas <[email protected]>2012-01-13 23:18:04 +0100
commitca0a8f4d6cc24707bc07c3013bff321e2f0c24fd (patch)
tree4c4d47f249603be3cb816b1456a9dc71c0b48999 /src/Makefile.am
downloadpython-caja-ca0a8f4d6cc24707bc07c3013bff321e2f0c24fd.tar.bz2
python-caja-ca0a8f4d6cc24707bc07c3013bff321e2f0c24fd.tar.xz
initial import from Mate-Extra repo
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..998069f
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,48 @@
+INCLUDES = \
+ -DG_LOG_DOMAIN=\"Caja-Python\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DLIBDIR=\"$(libdir)\" \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ $(DISABLE_DEPRECATED_CFLAGS) \
+ $(CAJA_PYTHON_CFLAGS) \
+ -DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \
+ -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \
+ $(PYTHON_INCLUDES)
+
+caja_extensiondir=$(CAJA_EXTENSION_DIR)
+
+caja_extension_LTLIBRARIES = libcaja-python.la
+
+libcaja_python_la_SOURCES = \
+ caja-python.c \
+ caja-python.h \
+ caja-python-object.c \
+ caja-python-object.h
+
+libcaja_python_la_LDFLAGS = -module -avoid-version
+libcaja_python_la_LIBADD = $(CAJA_PYTHON_LIBS) $(PYTHON_LIBS)
+
+pyexec_LTLIBRARIES = caja.la
+pyexecdir = $(CAJA_LIBDIR)/caja-python
+
+caja_la_LDFLAGS = -module -avoid-version -export-symbols-regex initcaja
+caja_la_LIBADD = $(CAJA_PYTHON_LIBS)
+caja_la_SOURCES = cajamodule.c
+nodist_caja_la_SOURCES = caja.c
+caja.c: caja.defs caja.override
+CLEANFILES = caja.c
+EXTRA_DIST = caja.override caja.defs
+
+.defs.c:
+ (cd $(srcdir)\
+ && $(PYGTK_CODEGEN) \
+ --register $(PYGTK_DEFSDIR)/pango-types.defs \
+ --register $(PYGTK_DEFSDIR)/gdk-types.defs \
+ --register $(PYGTK_DEFSDIR)/gtk-types.defs \
+ --register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
+ --register $(PYGOBJECT_DEFSDIR)/unix-types.defs \
+ --override $*.override \
+ --prefix py$* $*.defs) > gen-$*.c \
+ && cp gen-$*.c $*.c \
+ && rm -f gen-$*.c