examples: Add game controller test.
[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)
fdecd79e 39godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
98dc87a0
DT
40
41SOURCES = \
42 chickadee/config.scm \
7977df50 43 chickadee/utils.scm \
75c5cdef 44 chickadee/game-loop.scm \
045a5ac7 45 chickadee/json.scm \
8ac63165 46 chickadee/heap.scm \
cdee6cb4 47 chickadee/array-list.scm \
756f4d75 48 chickadee/queue.scm \
98dc87a0
DT
49 chickadee/math.scm \
50 chickadee/math/vector.scm \
b544b3c7 51 chickadee/math/bezier.scm \
98dc87a0 52 chickadee/math/matrix.scm \
19cb171a 53 chickadee/math/quaternion.scm \
74669be9 54 chickadee/math/rect.scm \
7c5135bf 55 chickadee/math/grid.scm \
dd8cf461 56 chickadee/math/easings.scm \
bbd1bd13 57 chickadee/math/path-finding.scm \
7520b6c0 58 chickadee/render/color.scm \
98dc87a0
DT
59 chickadee/render/gl.scm \
60 chickadee/render/gpu.scm \
61 chickadee/render/blend.scm \
62 chickadee/render/texture.scm \
63 chickadee/render/shader.scm \
d2826f74 64 chickadee/render/buffer.scm \
3227d839 65 chickadee/render/viewport.scm \
d89629e4 66 chickadee/render/framebuffer.scm \
98dc87a0
DT
67 chickadee/render/shapes.scm \
68 chickadee/render/sprite.scm \
233d13ca 69 chickadee/render/font.scm \
9c99fc7d 70 chickadee/render/tiled.scm \
fdf3b1f6
DT
71 chickadee/render/scene.scm \
72 chickadee/render/asset.scm \
5dbd832c 73 chickadee/render/particles.scm \
98dc87a0 74 chickadee/render.scm \
6a182194 75 chickadee/scripting/agenda.scm \
88534f74 76 chickadee/scripting/script.scm \
6a182194
DT
77 chickadee/scripting/channel.scm \
78 chickadee/scripting.scm \
75c5cdef 79 chickadee.scm
98dc87a0 80
07d5887a 81EXTRA_DIST += \
6ca3008c 82 COPYING \
07d5887a
DT
83 examples/sprite.scm \
84 examples/lines.scm \
85 examples/text.scm \
86 examples/nine-patch.scm \
86a3254c 87 examples/particles.scm \
6ba2755d 88 examples/tiled.scm \
7c5135bf 89 examples/grid.scm \
4607a0bc 90 examples/game-controller.scm \
07d5887a
DT
91 examples/images/AUTHORS \
92 examples/images/chickadee.png \
4607a0bc 93 examples/images/controller-buttons.png \
07d5887a 94 examples/images/dialog-box.png \
86a3254c 95 examples/images/explosion.png \
6ba2755d 96 examples/images/tiles.png \
6ba2755d 97 examples/maps/example.tmx
07d5887a 98
fe89f847 99dist_pkgdata_DATA = \
2eb458ca 100 data/AUTHORS
fe89f847
DT
101
102fontsdir = $(pkgdatadir)/fonts
103dist_fonts_DATA = \
104 data/fonts/good-neighbors.fnt \
105 data/fonts/good-neighbors.png
106
fdf3b1f6
DT
107shadersdir = $(pkgdatadir)/shaders
108dist_shaders_DATA = \
109 data/shaders/pbr/pbr-vert.glsl \
110 data/shaders/pbr/pbr-frag.glsl
111
98dc87a0
DT
112info_TEXINFOS = doc/chickadee.texi
113
114chickadee_TEXINFOS = \
115 doc/fdl.texi \
ee2cc0b4 116 doc/api.texi \
98dc87a0 117 doc/chickadee.texi
8a8dd25c 118
42424864
DT
119AM_MAKEINFOHTMLFLAGS = --css-ref=https://dthompson.us/css/dthompson.css \
120 --css-include=doc/manual.css
121
5303ba35 122dvi-local: # Don't build dvi docs
a2c960ad
DT
123
124publish: distcheck
125 gpg --sign --armor --yes chickadee-$(VERSION).tar.gz && \
126 scp chickadee-$(VERSION).tar.gz chickadee-$(VERSION).tar.gz.asc \
127 blog@dthompson.us:/var/www/files/chickadee/