math: grid: A couple more optimizations.
[chickadee.git] / Makefile.am
CommitLineData
98dc87a0
DT
1## Chickadee Game Toolkit
2## Copyright © 2016 David Thompson <davet@gnu.org>
3##
4## Chickadee is free software: you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published
6## by the Free Software Foundation, either version 3 of the License,
7## or (at your option) any later version.
8##
9## Chickadee is distributed in the hope that it will be useful, but
10## WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12## General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program. If not, see
16## <http://www.gnu.org/licenses/>.
17
18GOBJECTS = $(SOURCES:%.scm=%.go)
19
20nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
21nobase_go_DATA = $(GOBJECTS)
22
23# Make sure source files are installed first, so that the mtime of
24# installed compiled files is greater than that of installed source
25# files. See
26# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
27# for details.
28guile_install_go_files = install-nobase_goDATA
29$(guile_install_go_files): install-nobase_modDATA
30
31CLEANFILES = $(GOBJECTS)
32EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
33GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
34SUFFIXES = .scm .go
35.scm.go:
36 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
37
38moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
39godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
40
41SOURCES = \
42 chickadee/config.scm \
7977df50 43 chickadee/utils.scm \
045a5ac7 44 chickadee/json.scm \
8ac63165 45 chickadee/heap.scm \
cdee6cb4 46 chickadee/array-list.scm \
756f4d75 47 chickadee/queue.scm \
98dc87a0
DT
48 chickadee/math.scm \
49 chickadee/math/vector.scm \
b544b3c7 50 chickadee/math/bezier.scm \
98dc87a0 51 chickadee/math/matrix.scm \
19cb171a 52 chickadee/math/quaternion.scm \
74669be9 53 chickadee/math/rect.scm \
7c5135bf 54 chickadee/math/grid.scm \
dd8cf461 55 chickadee/math/easings.scm \
bbd1bd13 56 chickadee/math/path-finding.scm \
7520b6c0 57 chickadee/render/color.scm \
98dc87a0
DT
58 chickadee/render/gl.scm \
59 chickadee/render/gpu.scm \
60 chickadee/render/blend.scm \
61 chickadee/render/texture.scm \
62 chickadee/render/shader.scm \
d2826f74 63 chickadee/render/buffer.scm \
3227d839 64 chickadee/render/viewport.scm \
d89629e4 65 chickadee/render/framebuffer.scm \
98dc87a0
DT
66 chickadee/render/shapes.scm \
67 chickadee/render/sprite.scm \
233d13ca 68 chickadee/render/font.scm \
9c99fc7d 69 chickadee/render/tiled.scm \
fdf3b1f6
DT
70 chickadee/render/scene.scm \
71 chickadee/render/asset.scm \
98dc87a0 72 chickadee/render.scm \
6a182194 73 chickadee/scripting/agenda.scm \
88534f74 74 chickadee/scripting/script.scm \
6a182194
DT
75 chickadee/scripting/channel.scm \
76 chickadee/scripting.scm \
517d1297
DT
77 chickadee.scm \
78 chickadee/sdl.scm
98dc87a0 79
07d5887a 80EXTRA_DIST += \
6ca3008c 81 COPYING \
07d5887a
DT
82 examples/sprite.scm \
83 examples/lines.scm \
84 examples/text.scm \
85 examples/nine-patch.scm \
6ba2755d 86 examples/tiled.scm \
7c5135bf 87 examples/grid.scm \
07d5887a
DT
88 examples/images/AUTHORS \
89 examples/images/chickadee.png \
90 examples/images/dialog-box.png \
6ba2755d 91 examples/images/tiles.png \
07d5887a
DT
92 examples/fonts/AUTHORS \
93 examples/fonts/good_neighbors_starling.png \
6ba2755d
DT
94 examples/fonts/good_neighbors_starling.xml \
95 examples/maps/example.tmx
07d5887a 96
fdf3b1f6
DT
97shadersdir = $(pkgdatadir)/shaders
98dist_shaders_DATA = \
99 data/shaders/pbr/pbr-vert.glsl \
100 data/shaders/pbr/pbr-frag.glsl
101
98dc87a0
DT
102info_TEXINFOS = doc/chickadee.texi
103
104chickadee_TEXINFOS = \
105 doc/fdl.texi \
ee2cc0b4 106 doc/api.texi \
98dc87a0 107 doc/chickadee.texi
8a8dd25c 108
42424864
DT
109AM_MAKEINFOHTMLFLAGS = --css-ref=https://dthompson.us/css/dthompson.css \
110 --css-include=doc/manual.css
111
8a8dd25c 112dvi: # Don't build dvi docs
a2c960ad
DT
113
114publish: distcheck
115 gpg --sign --armor --yes chickadee-$(VERSION).tar.gz && \
116 scp chickadee-$(VERSION).tar.gz chickadee-$(VERSION).tar.gz.asc \
117 blog@dthompson.us:/var/www/files/chickadee/