summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorSimon Howard2008-12-09 19:56:43 +0000
committerSimon Howard2008-12-09 19:56:43 +0000
commita0062502d183d5d526c1f801b1206234b664898b (patch)
tree723825bd213891b37dbf5cddd11a304b9c91cd55 /src/Makefile.am
parent3fd9acf6e0d664858162ac369ae8670f40edea11 (diff)
downloadchocolate-doom-a0062502d183d5d526c1f801b1206234b664898b.tar.gz
chocolate-doom-a0062502d183d5d526c1f801b1206234b664898b.tar.bz2
chocolate-doom-a0062502d183d5d526c1f801b1206234b664898b.zip
Add SDL_CFLAGS, SDL_LDFLAGS to default compile flags, and check for SDL
in configure before checking for libraries and headers, to fix Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1412
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e43cb7f0..63ddc98f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,7 @@ gamesdir = $(prefix)/games
games_PROGRAMS = chocolate-doom chocolate-server
-AM_CFLAGS = -I../textscreen -I../pcsound @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
+AM_CFLAGS = -I../textscreen -I../pcsound @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
DEDSERV_FILES=\
d_dedicated.c \
@@ -21,7 +21,7 @@ net_structrw.c net_structrw.h \
z_native.c z_zone.h
chocolate_server_SOURCES=$(DEDSERV_FILES)
-chocolate_server_LDADD = @LDFLAGS@ @SDL_LIBS@ @SDLNET_LIBS@
+chocolate_server_LDADD = @LDFLAGS@ @SDLNET_LIBS@
MAIN_SOURCE_FILES=\
am_map.c am_map.h \
@@ -169,7 +169,12 @@ else
chocolate_doom_SOURCES=$(SOURCE_FILES)
endif
-chocolate_doom_LDADD = ../textscreen/libtextscreen.a ../pcsound/libpcsound.a @LDFLAGS@ @SDL_LIBS@ @SDLMIXER_LIBS@ @SDLNET_LIBS@
+chocolate_doom_LDADD = \
+ ../textscreen/libtextscreen.a \
+ ../pcsound/libpcsound.a \
+ @LDFLAGS@ \
+ @SDLMIXER_LIBS@ \
+ @SDLNET_LIBS@
EXTRA_DIST = \
icon.c \