ref: ec03448333ca4c1d996dcb2b9c9ac01522a271bd
parent: cbc795a34e42b43c02357aba14623e2014685920
author: Simon Howard <fraggle@gmail.com>
date: Wed Jun 10 20:32:17 EDT 2009
Fix wince include. Use top_builddir instead of .. where appropriate. Subversion-branch: /branches/raven-branch Subversion-revision: 1591
--- a/configure.in
+++ b/configure.in
@@ -59,7 +59,7 @@
case "$host" in
*mingw32ce*|*cegcc*|*wince*)
- CFLAGS="-I../wince $CFLAGS"
+ CFLAGS="-I\$(top_builddir)/wince $CFLAGS"
WINDOWS_CE=true
;;
*)
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,7 +9,9 @@
chocolate-server \
chocolate-setup
-AM_CFLAGS = -I../textscreen -I../pcsound @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
+AM_CFLAGS = -I$(top_builddir)/textscreen \
+ -I$(top_builddir)/pcsound \
+ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
# Common source files used by absolutely everything:
@@ -114,15 +116,16 @@
$(FEATURE_WAD_MERGE_SOURCE_FILES) \
$(FEATURE_SOUND_SOURCE_FILES)
-EXTRA_LIBS = \
- ../wince/libc_wince.a \
- ../textscreen/libtextscreen.a \
- ../pcsound/libpcsound.a \
- @LDFLAGS@ \
- @SDL_LIBS@ \
- @SDLMIXER_LIBS@ \
- @SDLNET_LIBS@
+EXTRA_LIBS = \
+ $(top_builddir)/wince/libc_wince.a \
+ $(top_builddir)/textscreen/libtextscreen.a \
+ $(top_builddir)/pcsound/libpcsound.a \
+ @LDFLAGS@ \
+ @SDL_LIBS@ \
+ @SDLMIXER_LIBS@ \
+ @SDLNET_LIBS@
+
if HAVE_WINDRES
chocolate_doom_SOURCES=$(SOURCE_FILES) resource.rc
else
@@ -158,8 +161,8 @@
z_native.c z_zone.h
chocolate_setup_SOURCES=$(SETUP_FILES) $(COMMON_SOURCE_FILES)
-chocolate_setup_LDADD = setup/libsetup.a \
- ../textscreen/libtextscreen.a \
+chocolate_setup_LDADD = setup/libsetup.a \
+ $(top_builddir)/textscreen/libtextscreen.a \
@LDFLAGS@ @SDL_LIBS@ @SDLNET_LIBS@
EXTRA_DIST = \
@@ -173,8 +176,8 @@
if HAVE_PYTHON
-icon.c : ../data/doom.ico
- ../data/convert-icon $^ $@
+icon.c : $(top_builddir)/data/doom.ico
+ $(top_builddir)/data/convert-icon $^ $@
endif
--- a/src/heretic/Makefile.am
+++ b/src/heretic/Makefile.am
@@ -1,5 +1,7 @@
-AM_CFLAGS=-I.. -I../../textscreen @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
+AM_CFLAGS=-I.. \
+ -I$(top_builddir)/textscreen \
+ @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
noinst_LIBRARIES=libheretic.a
--- a/src/setup/Makefile.am
+++ b/src/setup/Makefile.am
@@ -1,7 +1,9 @@
gamesdir = $(prefix)/games
-AM_CFLAGS = @SDL_CFLAGS@ -I../../textscreen -I.. -DINSTALL_DIR="\"$(gamesdir)\""
+AM_CFLAGS = @SDL_CFLAGS@ \
+ -I$(top_builddir)/textscreen -I.. \
+ -DINSTALL_DIR="\"$(gamesdir)\""
noinst_LIBRARIES = libsetup.a
--- a/textscreen/Makefile.am
+++ b/textscreen/Makefile.am
@@ -1,5 +1,5 @@
-AM_CFLAGS = -I../src
+AM_CFLAGS = -I$(top_builddir)/src
CTAGS_ARGS=-I TXT_UNCAST_ARG+
--- a/textscreen/examples/Makefile.am
+++ b/textscreen/examples/Makefile.am
@@ -1,5 +1,5 @@
-AM_CFLAGS = -I.. -I../../src
+AM_CFLAGS = -I.. -I$(top_builddir)/src
noinst_PROGRAMS=guitest calculator