]> git.jsancho.org Git - guile-irrlicht.git/blob - Makefile.am
Quit regular expressions
[guile-irrlicht.git] / Makefile.am
1 # guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
2 #
3 # Copyright (C) 2021 Javier Sancho <jsf@jsancho.org>
4 #
5 # This file is part of guile-irrlicht.
6 #
7 # guile-irrlicht is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 3 of the
10 # License, or (at your option) any later version.
11 #
12 # guile-irrlicht is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with guile-irrlicht. If not, see
19 # <http://www.gnu.org/licenses/>.
20
21
22 ACLOCAL_AMFLAGS = -I m4
23
24 # Swig wrapper
25
26 lib_LTLIBRARIES = libguile-irrlicht.la
27
28 BUILT_SOURCES = $(builddir)/irrlicht_wrap.cxx
29 SWIG_FLAGS = -guile -scmstub -Linkage passive -proxy -emitslotaccessors
30 $(builddir)/irrlicht_wrap.cxx: irrlicht.i
31         $(SWIG) $(SWIG_FLAGS) $(IRRLICHT_CFLAGS)  -o $@ $<
32 libguile_irrlicht_la_SOURCES = $(builddir)/irrlicht_wrap.cxx irrlicht.i
33 libguile_irrlicht_la_CPPFLAGS = @GUILE_CFLAGS@
34 libguile_irrlicht_la_LDFLAGS = -version-info 0:1 @GUILE_LIBS@
35
36 # Guile code
37
38 GOBJECTS = $(SOURCES:%.scm=%.go)
39
40 nobase_mod_DATA = $(SOURCES)
41 nobase_go_DATA = $(GOBJECTS)
42
43 guile_install_go_files = install-nobase_goDATA
44 $(guile_install_go_files): install-nobase_modDATA
45
46 CLEANFILES = $(GOBJECTS)
47 EXTRA_DIST = $(SOURCES)
48 GUILE_COMPILE_FLAGS = -L .
49 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
50 SUFFIXES = .scm .go
51 .scm.go:
52         $(GUILE_TOOLS) compile $(GUILE_WARNINGS) $(GUILE_COMPILE_FLAGS) -o "$@" "$<"
53
54 moddir = @GUILE_SITE@
55 godir = @GUILE_SITE_CCACHE@
56
57 SOURCES = irrlicht.scm \
58           irrlicht-primitive.scm \
59           Swig/common.scm
60
61 nodist_noinst_SCRIPTS = pre-inst-env
62
63 # Documentation
64
65 # info_TEXINFOS = doc/irrlicht.texi
66
67 # doc_guile_irrlicht_TEXINFOS = \
68 #       doc/fdl.texi \
69 #       doc/irrlicht.texi