Add SDL2_image bindings.
[guile-sdl2.git] / Makefile.am
1 # guile-sdl2 --- FFI bindings for SDL2
2 # Copyright © 2015 David Thompson <davet@gnu.org>
3 #
4 # This file is part of guile-sdl2.
5 #
6 # Guile-sdl2 is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 3 of the
9 # License, or (at your option) any later version.
10 #
11 # Guile-sdl2 is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with guile-sdl2. If not, see
18 # <http://www.gnu.org/licenses/>.
19
20 GOBJECTS = $(SOURCES:%.scm=%.go)
21
22 nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
23 nobase_go_DATA = $(GOBJECTS)
24
25 # Make sure source files are installed first, so that the mtime of
26 # installed compiled files is greater than that of installed source
27 # files. See
28 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
29 # for details.
30 guile_install_go_files = install-nobase_goDATA
31 $(guile_install_go_files): install-nobase_modDATA
32
33 CLEANFILES = $(GOBJECTS)
34 EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
35 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
36 SUFFIXES = .scm .go
37 .scm.go:
38 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
39
40 moddir=$(prefix)/share/guile/site/2.0
41 godir=$(libdir)/guile/2.0/ccache
42
43 SOURCES = \
44 sdl2.scm \
45 sdl2/config.scm \
46 sdl2/bindings.scm \
47 sdl2/surface.scm \
48 sdl2/render.scm \
49 sdl2/video.scm \
50 sdl2/events.scm
51
52 if WITH_LIBSDL2_IMAGE
53
54 SOURCES += \
55 sdl2/bindings/image.scm \
56 sdl2/image.scm
57
58 endif
59
60 EXTRA_DIST += \
61 pre-inst-env.in \
62 README \
63 guix.scm