summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 998069fa6cc5d1cf4bea0c30b282c31bdb0a8772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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