surface: Add binding for SDL_ConvertSurfaceFormat.
[guile-sdl2.git] / Makefile.am
CommitLineData
9ce20c40
DT
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
20GOBJECTS = $(SOURCES:%.scm=%.go)
21
22nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
23nobase_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.
30guile_install_go_files = install-nobase_goDATA
31$(guile_install_go_files): install-nobase_modDATA
32
33CLEANFILES = $(GOBJECTS)
34EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
35GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
36SUFFIXES = .scm .go
37.scm.go:
38 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
39
40moddir=$(prefix)/share/guile/site/2.0
41godir=$(libdir)/guile/2.0/ccache
42
43SOURCES = \
44 sdl2.scm \
45 sdl2/config.scm \
46 sdl2/bindings.scm \
8a3a26bb 47 sdl2/surface.scm \
d4824b20 48 sdl2/render.scm \
2751b1a7
DT
49 sdl2/video.scm \
50 sdl2/events.scm
9ce20c40 51
cc099b06
DT
52if WITH_LIBSDL2_IMAGE
53
54SOURCES += \
55 sdl2/bindings/image.scm \
56 sdl2/image.scm
57
58endif
59
9400aa25
DT
60if WITH_LIBSDL2_TTF
61
62SOURCES += \
63 sdl2/bindings/ttf.scm \
64 sdl2/ttf.scm
65
66endif
67
2e70a730
DT
68if WITH_LIBSDL2_MIXER
69
70SOURCES += \
71 sdl2/bindings/mixer.scm \
72 sdl2/mixer.scm
73
74endif
75
9ce20c40
DT
76EXTRA_DIST += \
77 pre-inst-env.in \
78 README \
79 guix.scm