1 # guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
3 # Copyright (C) 2021 Javier Sancho <jsf@jsancho.org>
5 # This file is part of guile-irrlicht.
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.
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.
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/>.
22 ACLOCAL_AMFLAGS = -I m4
26 lib_LTLIBRARIES = libguile-irrlicht.la
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@
38 GOBJECTS = $(SOURCES:%.scm=%.go)
40 nobase_mod_DATA = $(SOURCES)
41 nobase_go_DATA = $(GOBJECTS)
43 guile_install_go_files = install-nobase_goDATA
44 $(guile_install_go_files): install-nobase_modDATA
46 CLEANFILES = $(GOBJECTS)
47 EXTRA_DIST = $(SOURCES)
48 GUILE_COMPILE_FLAGS = -L .
49 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
52 $(GUILE_TOOLS) compile $(GUILE_WARNINGS) $(GUILE_COMPILE_FLAGS) -o "$@" "$<"
55 godir = @GUILE_SITE_CCACHE@
57 SOURCES = irrlicht.scm \
58 irrlicht-primitive.scm \
61 nodist_noinst_SCRIPTS = pre-inst-env
65 # info_TEXINFOS = doc/irrlicht.texi
67 # doc_guile_irrlicht_TEXINFOS = \