forked from Lainports/freebsd-ports
SDL Asylum is a C port of the computer game Asylum, which was written by Andy Southgate in 1994 for the Acorn Archimedes and is now public domain. "Young Sigmund has a few problems. To help him resolve his mental instability you must enter the surreal world of his inner mind and shut down the malfunctioning brain cells which are causing him these problems." -- Instructions file from original game WWW: http://sdl-asylum.sourceforge.net/
32 lines
1 KiB
Text
32 lines
1 KiB
Text
--- Makefile.orig 2009-02-20 21:46:51 UTC
|
|
+++ Makefile
|
|
@@ -2,14 +2,15 @@ HOST=generic
|
|
#HOST=mingw
|
|
#HOST=haiku
|
|
|
|
-CC=g++
|
|
+CXX?=g++
|
|
RM=rm
|
|
-CFLAGS= -O3
|
|
-COPTS= $(CFLAGS) -funsigned-char \
|
|
+CXXFLAGS?= -O3
|
|
+CXXFLAGS+= `sdl-config --cflags`
|
|
+COPTS= $(CXXFLAGS) -funsigned-char \
|
|
-DRESOURCEPATH=\"$(INSTALLRESOURCEPATH)\" \
|
|
-DSCOREPATH=\"$(INSTALLHISCORES)\"
|
|
-LIBS= -lm -lSDL -lSDL_mixer -lGL -lGLU
|
|
-SRCS= alien.c asylum.c bullet.c file.c keyboard.c maze.c menus.c player.c projectile.c sound.c vdu.c
|
|
+LIBS= -lm `sdl-config --libs` -lSDL_mixer -lGL -lGLU
|
|
+SRCS= alien.cpp asylum.cpp bullet.cpp file.cpp keyboard.cpp maze.cpp menus.cpp player.cpp projectile.cpp sound.cpp vdu.cpp
|
|
|
|
RESOURCES=data/Resources data/Ego data/Psyche data/Id data/Voices
|
|
|
|
@@ -95,7 +96,7 @@ oggs:
|
|
build: asylum$(EXE)
|
|
|
|
asylum$(EXE): $(SRCS) $(OS_SOURCE) asylum.h Makefile
|
|
- $(CC) $(COPTS) $(LDFLAGS) -o asylum$(EXE) $(SRCS) $(OS_SOURCE) $(LIBS)
|
|
+ $(CXX) $(COPTS) $(LDFLAGS) -o asylum$(EXE) $(SRCS) $(OS_SOURCE) $(LIBS)
|
|
|
|
clean:
|
|
$(RM) asylum$(EXE)
|