[chocolate-doom] 03/29: Conditionally build the resource file, dependent on whether windres exists
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:06:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.0.4
in repository chocolate-doom.
commit 1c85056909aee7989dd4484d0fd49e543b61c676
Author: Simon Howard <fraggle at gmail.com>
Date: Tue Sep 20 20:55:32 2005 +0000
Conditionally build the resource file, dependent on whether windres exists
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 117
---
configure.in | 1 +
src/Makefile.am | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/configure.in b/configure.in
index cf33968..d825fd3 100644
--- a/configure.in
+++ b/configure.in
@@ -28,6 +28,7 @@ AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[
],echo "*** Compiling without SDL_net installed probably won't work"
,$SDL_LIBS $SDLNET_LIBS)
+AM_CONDITIONAL(HAVE_WINDRES, which windres > /dev/null)
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME,AC_PACKAGE_VERSION)
diff --git a/src/Makefile.am b/src/Makefile.am
index 0ae274d..83bc4e1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,9 +2,12 @@
bindir = $(prefix)/bin
CFLAGS = @CFLAGS@ @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@ -Wall
-chocolate_doom_LDADD = @LDFLAGS@ @SDL_LIBS@ @SDLMIXER_LIBS@ @SDLNET_LIBS@
+chocolate_doom_LDADD = @LDFLAGS@ \
+ @SDL_LIBS@ \
+ @SDLMIXER_LIBS@ \
+ @SDLNET_LIBS@
-chocolate_doom_SOURCES=\
+SOURCE_FILES=\
am_map.c d_think.h i_video.c p_floor.c p_tick.c r_things.h \
am_map.h d_ticcmd.h i_video.h p_inter.c p_tick.h sounds.c \
d_englsh.h f_finale.c m_argv.c p_inter.h p_user.c sounds.h \
@@ -25,11 +28,15 @@ doomtype.h info.h m_swap.c p_sight.c r_segs.h w_wad.h \
d_player.h i_sound.c m_swap.h p_spec.c r_sky.c z_zone.c \
dstrings.c i_sound.h p_ceilng.c p_spec.h r_sky.h z_zone.h \
dstrings.h i_system.c p_doors.c p_switch.c r_state.h mmus2mid.c \
-d_textur.h i_system.h p_enemy.c p_telept.c r_things.c mmus2mid.h \
-chocolate-doom-res.rc
+d_textur.h i_system.h p_enemy.c p_telept.c r_things.c mmus2mid.h
-bin_PROGRAMS = chocolate-doom
+if HAVE_WINDRES
+chocolate_doom_SOURCES=$(SOURCE_FILES) chocolate-doom-res.rc
+else
+chocolate_doom_SOURCES=$(SOURCE_FILES)
+endif
+bin_PROGRAMS = chocolate-doom
.rc.o:
windres $^ -o $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list