~ubuntu-branches/ubuntu/trusty/gobject-introspection/trusty

« back to all changes in this revision

Viewing changes to giscanner/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-03-22 00:32:36 UTC
  • mfrom: (1.4.1 upstream) (3.3.33 multiarch)
  • Revision ID: james.westby@ubuntu.com-20110322003236-4spdgfk1vai6xay1
Tags: 0.10.4-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## Process this file with automake to produce Makefile.in
2
 
 
3
 
INCLUDES = -I$(top_srcdir)/girepository
4
 
BUILT_SOURCES =                 \
5
 
        scannerparser.c         \
6
 
        scannerparser.h         \
7
 
        scannerlexer.c          \
8
 
        scannerlexer.h
9
 
 
10
 
CLEANFILES =            \
11
 
        scannerparser.c         \
12
 
        scannerparser.h         \
13
 
        scannerlexer.c          \
14
 
        scannerlexer.h
15
 
AM_YFLAGS = -d -t
16
 
 
17
 
# Why do I have to do this automake?
18
 
scannerlexer.h: scannerlexer.c
19
 
 
20
 
noinst_LTLIBRARIES = libgiscanner.la
21
 
 
22
 
libgiscanner_la_SOURCES = \
23
 
        sourcescanner.c                         \
24
 
        sourcescanner.h                         \
25
 
        scannerlexer.l                          \
26
 
        scannerparser.y                         \
27
 
        grealpath.h
28
 
libgiscanner_la_LIBADD = $(GOBJECT_LIBS)
29
 
libgiscanner_la_CFLAGS = $(GOBJECT_CFLAGS)
30
 
 
31
 
# Python module
32
 
pkgpyexecdir = $(pkglibdir)/giscanner
33
 
pkgpyexec_LTLIBRARIES = _giscanner.la
34
 
pkgpyexec_PYTHON =              \
35
 
        __init__.py             \
36
 
        annotationparser.py     \
37
 
        ast.py                  \
38
 
        cachestore.py           \
39
 
        config.py               \
40
 
        dumper.py               \
41
 
        girparser.py            \
42
 
        girwriter.py            \
43
 
        glibast.py              \
44
 
        glibtransformer.py      \
45
 
        libtoolimporter.py      \
46
 
        minixpath.py            \
47
 
        odict.py                \
48
 
        shlibs.py               \
49
 
        scannermain.py          \
50
 
        sourcescanner.py        \
51
 
        transformer.py          \
52
 
        utils.py                \
53
 
        xmlwriter.py
54
 
 
55
 
_giscanner_la_CFLAGS = \
56
 
        $(PYTHON_INCLUDES) \
57
 
        $(GOBJECT_CFLAGS) \
58
 
        -I$(top_srcdir)/giscanner
59
 
_giscanner_la_LIBADD = libgiscanner.la $(GOBJECT_LIBS)
60
 
 
61
 
_giscanner_la_LDFLAGS = \
62
 
        -module -avoid-version -export-symbols-regex init_giscanner
63
 
 
64
 
if OS_WIN32
65
 
# Yuck. Probably there is a way to get this from Python, but I don't
66
 
# know how. Use -Wl to avoid libtool crack.
67
 
_giscanner_la_LDFLAGS += -Wl,$(pyexecdir)/../../libs/libpython25.a -no-undefined
68
 
endif
69
 
 
70
 
_giscanner_la_SOURCES = giscannermodule.c
71
 
 
72
 
if OS_WIN32
73
 
BUILT_SOURCES += _giscanner.pyd
74
 
CLEANFILES += _giscanner.pyd
75
 
 
76
 
_giscanner.pyd: _giscanner.la
77
 
        cp .libs/_giscanner.dll $@
78
 
 
79
 
install-exec-hook:
80
 
        mv $(pkgpyexecdir)/_giscanner.dll $(pkgpyexecdir)/_giscanner.pyd
81
 
        rm $(pkgpyexecdir)/_giscanner.dll.a
82
 
        rm $(pkgpyexecdir)/_giscanner.la
83
 
endif