Merge fixes from branch 'xorn'
[geda-gaf.git] / xorn / src / cpython / storage / Makefile.am
blob25f570547cca730260ccdf56f38b3fc12b3a3641
1 # Copyright (C) 2013-2020 Roland Lutz
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 AM_CPPFLAGS = $(PYTHON_CFLAGS) -I$(top_srcdir)/include
18 AM_CFLAGS = -Wall -W -Wno-unused-parameter -fno-strict-aliasing \
19             $(Wno_cast_function_type_IF_SUPPORTED)
21 AM_V_M4 = $(am__v_M4_@AM_V@)
22 am__v_M4_ = $(am__v_M4_@AM_DEFAULT_V@)
23 am__v_M4_0 = @echo "  M4      " $@;
24 am__v_M4_1 =
26 m4sources = \
27         data_arc.m4 \
28         data_box.m4 \
29         data_circle.m4 \
30         data_component.m4 \
31         data_line.m4 \
32         data_net.m4 \
33         data_path.m4 \
34         data_picture.m4 \
35         data_text.m4 \
36         data_lineattr.m4 \
37         data_fillattr.m4
39 m4output = \
40         data.h \
41         data_arc.c \
42         data_box.c \
43         data_circle.c \
44         data_component.c \
45         data_line.c \
46         data_net.c \
47         data_path.c \
48         data_picture.c \
49         data_text.c \
50         data_lineattr.c \
51         data_fillattr.c
53 data.h: include_h.m4 $(m4sources)
54         $(AM_V_M4)cd "$(srcdir)" && m4 -P include_h.m4 $(m4sources) > data.h
56 .m4.c:
57         $(AM_V_M4)m4 -P $(srcdir)/include_c.m4 $< > $@
59 data_arc.c: include_c.m4
60 data_box.c: include_c.m4
61 data_circle.c: include_c.m4
62 data_component.c: include_c.m4
63 data_line.c: include_c.m4
64 data_net.c: include_c.m4
65 data_path.c: include_c.m4
66 data_picture.c: include_c.m4
67 data_text.c: include_c.m4
68 data_lineattr.c: include_c.m4
69 data_fillattr.c: include_c.m4
71 EXTRA_DIST = include_h.m4 include_c.m4 $(m4output)
73 BUILT_SOURCES = data.h
75 pkgpyexec_LTLIBRARIES = storagemodule.la
76 storagemodule_la_SOURCES = \
77         $(m4sources) \
78         module.c \
79         module.h \
80         object.c \
81         revision.c \
82         selection.c
83 storagemodule_la_LIBADD = ../../storage/libxornstorage.la
84 storagemodule_la_LDFLAGS = -module -avoid-version \
85                            -export-symbols-regex '^initstorage$$'