+# guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+#
+# Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
+#
+# This file is part of guile-irrlicht.
+#
+# guile-irrlicht is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 3 of the
+# License, or (at your option) any later version.
+#
+# guile-irrlicht is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with guile-irrlicht. If not, see
+# <http://www.gnu.org/licenses/>.
+
+
+# C++ code
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libguile-irrlicht.la
libguile_irrlicht_la_SOURCES = \
+ src/animated-mesh.cpp \
+ src/animated-mesh-md2.cpp \
+ src/animated-mesh-scene-node.cpp \
+ src/box3d.cpp \
+ src/camera-scene-node.cpp \
+ src/color.cpp \
+ src/cursor-control.cpp \
+ src/device.cpp \
src/dimension2d.cpp \
- src/EDriverTypes.cpp \
- src/GuileIrrlicht.cpp \
- src/IrrlichtDevice.cpp \
- src/ISceneManager.cpp \
- src/IVideoDriver.cpp
+ src/driver-types.cpp \
+ src/event-receiver.cpp \
+ src/file-archive.cpp \
+ src/file-system.cpp \
+ src/gui.cpp \
+ src/gui-edit-box.cpp \
+ src/gui-element.cpp \
+ src/gui-environment.cpp \
+ src/gui-image.cpp \
+ src/gui-static-text.cpp \
+ src/guile-irrlicht.cpp \
+ src/keymap.cpp \
+ src/material.cpp \
+ src/material-flags.cpp \
+ src/material-types.cpp \
+ src/matrix4.cpp \
+ src/mesh.cpp \
+ src/mesh-scene-node.cpp \
+ src/position2d.cpp \
+ src/primitive-types.cpp \
+ src/rect.cpp \
+ src/reference-counted.cpp \
+ src/scene-manager.cpp \
+ src/scene-node.cpp \
+ src/scene-node-animator.cpp \
+ src/texture.cpp \
+ src/timer.cpp \
+ src/vector2d.cpp \
+ src/vector3d.cpp \
+ src/vertex3d.cpp \
+ src/video-driver.cpp \
+ src/wchar.cpp
libguile_irrlicht_la_CPPFLAGS = @GUILE_CFLAGS@
libguile_irrlicht_la_LDFLAGS = \
-version-info 0:1 \
@GUILE_LIBS@
+
+
+# Guile code
+GOBJECTS = $(SOURCES:%.scm=%.go)
+
+nobase_mod_DATA = $(SOURCES)
+nobase_go_DATA = $(GOBJECTS)
+
+guile_install_go_files = install-nobase_goDATA
+$(guile_install_go_files): install-nobase_modDATA
+
+CLEANFILES = $(GOBJECTS)
+EXTRA_DIST = $(SOURCES)
+GUILE_COMPILE_FLAGS = -L .
+GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+SUFFIXES = .scm .go
+.scm.go:
+ $(GUILE_TOOLS) compile $(GUILE_WARNINGS) $(GUILE_COMPILE_FLAGS) -o "$@" "$<"
+
+moddir = @GUILE_SITE@
+godir = @GUILE_SITE_CCACHE@
+
+SOURCES = irrlicht.scm