File: Makefile.am

package info (click to toggle)
vte 1%3A0.16.14-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,732 kB
  • ctags: 3,025
  • sloc: ansic: 38,280; sh: 9,402; xml: 2,349; makefile: 503; python: 194
file content (34 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download
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
EXTRA_DIST = vte.defs vte.override cat.py unrealize.py vte-demo.py

PYTHON_MODULES = vtemodule.la

if BUILD_PYTHON_MODULES
pythonsiteexecdir = $(pyexecdir)/gtk-2.0
pythonsiteexec_LTLIBRARIES = $(PYTHON_MODULES)

CLEANFILES = vte.c

# we do this to suport building with -Wl,-z,defs which errors on 
# vtemodule.so as we cannot include $(PYTHON_LIBS) due to bug 410986.
AM_LDFLAGS = $(PYTHON_LDFLAGS)

vtemodule_la_CFLAGS = $(VTE_CFLAGS) $(X_CFLAGS) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
vtemodule_la_SOURCES = vtemodule.c
vtemodule_la_LIBADD = $(top_builddir)/src/libvte.la $(LIBS) $(PYGTK_LIBS) $(VTE_LIBS) $(X_LIBS)
vtemodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initvte
nodist_vtemodule_la_SOURCES = vte.c

vte.c: vte.defs vte.override

.defs.c:
	(cd $(srcdir) \
	 && $(PYGTK_CODEGEN) \
            --register $(PYGTK_DEFSDIR)/pango-types.defs \
            --register $(PYGTK_DEFSDIR)/gdk-types.defs \
            --register $(PYGTK_DEFSDIR)/gtk-types.defs \
            --override $*.override \
            --prefix py$* $*.defs) > gen-$*.c \
        && cp gen-$*.c $*.c \
        && rm -f gen-$*.c

endif