diff options
author | Simon Howard | 2005-09-20 20:55:32 +0000 |
---|---|---|
committer | Simon Howard | 2005-09-20 20:55:32 +0000 |
commit | 1c85056909aee7989dd4484d0fd49e543b61c676 (patch) | |
tree | 639f3a028981c207ca6c785e3df392402dbca95d | |
parent | 7dd596e004b68285e8c9991c19595d8839b372fb (diff) | |
download | chocolate-doom-1c85056909aee7989dd4484d0fd49e543b61c676.tar.gz chocolate-doom-1c85056909aee7989dd4484d0fd49e543b61c676.tar.bz2 chocolate-doom-1c85056909aee7989dd4484d0fd49e543b61c676.zip |
Conditionally build the resource file, dependent on whether windres exists
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 117
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | src/Makefile.am | 17 |
2 files changed, 13 insertions, 5 deletions
diff --git a/configure.in b/configure.in index cf33968c..d825fd3c 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 0ae274d5..83bc4e16 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 $@ |