]> git.jsancho.org Git - guile-irrlicht.git/blob - Makefile.am
1ad9622607d01d04e08592bb5e6e8b1505c67313
[guile-irrlicht.git] / Makefile.am
1 # guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
2 #
3 # Copyright (C) 2020 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 # C++ code
25
26 lib_LTLIBRARIES = libguile-irrlicht.la
27
28 libguile_irrlicht_la_SOURCES = \
29         src/animated-mesh.cpp \
30         src/animated-mesh-md2.cpp \
31         src/animated-mesh-scene-node.cpp \
32         src/box3d.cpp \
33         src/color.cpp \
34         src/cursor-control.cpp \
35         src/device.cpp \
36         src/dimension2d.cpp \
37         src/driver-types.cpp \
38         src/event-receiver.cpp \
39         src/file-archive.cpp \
40         src/file-system.cpp \
41         src/gui-element.cpp \
42         src/gui-environment.cpp \
43         src/gui-file-open-dialog.cpp \
44         src/gui-in-out-fader.cpp \
45         src/gui-listbox.cpp \
46         src/gui-scrollbar.cpp \
47         src/gui-skin.cpp \
48         src/gui-static-text.cpp \
49         src/gui-toolbar.cpp \
50         src/guile-irrlicht.cpp \
51         src/keycodes.cpp \
52         src/material.cpp \
53         src/material-flags.cpp \
54         src/material-types.cpp \
55         src/matrix4.cpp \
56         src/position2d.cpp \
57         src/primitive-types.cpp \
58         src/rect.cpp \
59         src/reference-counted.cpp \
60         src/scene-manager.cpp \
61         src/scene-node.cpp \
62         src/timer.cpp \
63         src/vector2d.cpp \
64         src/vector3d.cpp \
65         src/vertex3d.cpp \
66         src/video-driver.cpp \
67         src/wrapped.cpp
68
69 libguile_irrlicht_la_CPPFLAGS = @GUILE_CFLAGS@
70 libguile_irrlicht_la_LDFLAGS = -version-info 0:1 @GUILE_LIBS@
71
72 nobase_include_HEADERS = \
73         src/animated-mesh.h \
74         src/animated-mesh-md2.h \
75         src/animated-mesh-scene-node.h \
76         src/box3d.h \
77         src/color.h \
78         src/cursor-control.h \
79         src/device.h \
80         src/dimension2d.h \
81         src/driver-types.h \
82         src/event-receiver.h \
83         src/file-archive.h \
84         src/file-system.h \
85         src/gsubr.h \
86         src/gui-element.h \
87         src/gui-environment.h \
88         src/gui-file-open-dialog.h \
89         src/gui-in-out-fader.h \
90         src/guile-irrlicht.h \
91         src/gui-listbox.h \
92         src/gui-scrollbar.h \
93         src/gui-skin.h \
94         src/gui-static-text.h \
95         src/gui-toolbar.h \
96         src/keycodes.h \
97         src/material-flags.h \
98         src/material.h \
99         src/material-types.h \
100         src/matrix4.h \
101         src/position2d.h \
102         src/primitive-types.h \
103         src/rect.h \
104         src/reference-counted.h \
105         src/scene-manager.h \
106         src/scene-node.h \
107         src/timer.h \
108         src/vector2d.h \
109         src/vector3d.h \
110         src/vertex3d.h \
111         src/video-driver.h \
112         src/wrapped.h
113
114 nodist_noinst_SCRIPTS = pre-inst-env
115
116 # Guile code
117
118 GOBJECTS = $(SOURCES:%.scm=%.go)
119
120 nobase_mod_DATA = $(SOURCES)
121 nobase_go_DATA = $(GOBJECTS)
122
123 guile_install_go_files = install-nobase_goDATA
124 $(guile_install_go_files): install-nobase_modDATA
125
126 CLEANFILES = $(GOBJECTS)
127 EXTRA_DIST = $(SOURCES)
128 GUILE_COMPILE_FLAGS = -L .
129 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
130 SUFFIXES = .scm .go
131 .scm.go:
132         $(GUILE_TOOLS) compile $(GUILE_WARNINGS) $(GUILE_COMPILE_FLAGS) -o "$@" "$<"
133
134 moddir = @GUILE_SITE@
135 godir = @GUILE_SITE_CCACHE@
136
137 SOURCES = \
138         irrlicht.scm \
139         irrlicht/base.scm \
140         irrlicht/core.scm \
141         irrlicht/device.scm \
142         irrlicht/foreign.scm \
143         irrlicht/gui.scm \
144         irrlicht/io.scm \
145         irrlicht/irr.scm \
146         irrlicht/scene.scm \
147         irrlicht/video.scm
148
149 # Documentation
150
151 info_TEXINFOS = doc/irrlicht.texi
152
153 doc_guile_irrlicht_TEXINFOS = \
154         doc/fdl.texi \
155         doc/irrlicht.texi