84fc2b2d9211c04b3bb5cf34af161bc9cf48a625
[platform/upstream/gobject-introspection.git] / Makefile-giscanner.am
1 ## Process this file with automake to produce Makefile.in
2
3 BUILT_SOURCES +=                \
4         scannerparser.c         \
5         scannerparser.h         \
6         scannerlexer.c          \
7         scannerlexer.h
8
9 AM_YFLAGS = -d -t
10
11 # Why do I have to do this automake?
12 scannerlexer.h: scannerlexer.c
13
14 noinst_LTLIBRARIES += libgiscanner.la
15
16 libgiscanner_la_SOURCES = \
17         giscanner/sourcescanner.c                               \
18         giscanner/sourcescanner.h                               \
19         giscanner/scannerlexer.l                                \
20         giscanner/scannerparser.y                               \
21         giscanner/grealpath.h
22 libgiscanner_la_CPPFLAGS = -I$(top_srcdir)/girepository -I$(top_srcdir)/giscanner
23 libgiscanner_la_LIBADD = $(GOBJECT_LIBS)
24 libgiscanner_la_CFLAGS = $(GOBJECT_CFLAGS)
25
26 # Python module
27 pkgpyexecdir = $(pkglibdir)/giscanner
28 pkgpyexec_LTLIBRARIES = _giscanner.la
29 pkgpyexec_PYTHON =                      \
30         giscanner/__init__.py           \
31         giscanner/annotationmain.py     \
32         giscanner/annotationparser.py   \
33         giscanner/ast.py                \
34         giscanner/cachestore.py         \
35         giscanner/codegen.py            \
36         giscanner/docbookdescription.py \
37         giscanner/docbookwriter.py      \
38         giscanner/docmain.py    \
39         giscanner/dumper.py             \
40         giscanner/introspectablepass.py \
41         giscanner/girparser.py          \
42         giscanner/girwriter.py          \
43         giscanner/gdumpparser.py        \
44         giscanner/libtoolimporter.py    \
45         giscanner/odict.py              \
46         giscanner/mallardwriter.py      \
47         giscanner/maintransformer.py    \
48         giscanner/message.py            \
49         giscanner/shlibs.py             \
50         giscanner/scannermain.py        \
51         giscanner/sourcescanner.py      \
52         giscanner/testcodegen.py        \
53         giscanner/transformer.py        \
54         giscanner/utils.py              \
55         giscanner/xmlwriter.py
56
57 _giscanner_la_CFLAGS = \
58         $(PYTHON_INCLUDES) \
59         $(GOBJECT_CFLAGS) \
60         -I$(top_srcdir)/giscanner
61 _giscanner_la_LIBADD = libgiscanner.la $(GOBJECT_LIBS) $(PYTHON_LIBS)
62
63 _giscanner_la_LDFLAGS = \
64         -module -avoid-version -export-symbols-regex init_giscanner
65
66 if OS_WIN32
67 _giscanner_la_LDFLAGS += \
68         -no-undefined \
69         -shrext ".pyd"
70 endif
71
72 _giscanner_la_SOURCES = giscanner/giscannermodule.c