]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/makefile
use old forking player when SDL_mixer is not available
[micropolis] / src / sim / makefile
index 8f4ad9b5db1e529cbb24636131b1f42d97ae0ba6..5a8a62268db0734033630bba3fc40327a10798a4 100644 (file)
@@ -5,11 +5,8 @@ TCLXHOME = ../tclx
 TCLLIBRARY = /usr/local/lib/tcl
 TKLIBRARY = /usr/local/lib/tk
 
-SDLINCLUDE =
-SDLLIBS = -lSDL -lSDL_mixer
-#SDLINCLUDE += $$(pkg-config --cflags sdl)
-#SDLLIBS += $$(pkg-config --libs sdl)
+SDLINCLUDE = $$(./sdl_helper cflags)
+SDLLIBS = $$(./sdl_helper libs)
 
 CC = gcc
 
@@ -19,7 +16,7 @@ OPTFLAGS = -O3
 #DEFINES = -DIS_LINUX -DCAM -DNET
 DEFINES = -DIS_LINUX -DNO_AIRCRASH
 
-CFLAGS = $(OPTFLAGS) $(DEFINES)
+CFLAGS += $(OPTFLAGS) $(DEFINES)
 
 #LDFLAGS = -Bstatic
 LDFLAGS=-L/usr/X11/lib -L/usr/X11R6/lib
Impressum, Datenschutz