c260705a23
respect CXXFLAGS, pass PREFIX instead of LOCALBASE and also set group and modes in plist noticed by & looks ok to steven@
31 lines
902 B
Plaintext
31 lines
902 B
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2007/07/07 10:40:48 simon Exp $
|
|
--- Makefile.orig Sun Jun 10 16:16:22 2007
|
|
+++ Makefile Thu Jul 5 22:13:26 2007
|
|
@@ -18,20 +18,18 @@
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
-# directory where the games are installed (/usr, /usr/local, ... or something)
|
|
-ifndef PREFIX
|
|
-PREFIX=/usr
|
|
-endif
|
|
-
|
|
PROGRAM = vodovod
|
|
OBJECTS = game.o map.o resource.o main.o allmenus.o njamfont.o sutils.o menu.o hiscore.o effects.o config.o keys.o
|
|
-CC = g++
|
|
|
|
# If you hate warnings under Cygwin use these flags instead
|
|
# MY_CFLAGS = -I/usr/local/include/SDL -Dmain=SDL_main -DWIN32 -Uunix -mno-cygwin
|
|
-MY_CFLAGS = `sdl-config --cflags`
|
|
+MY_CFLAGS = `sdl-config --cflags` ${CCFLAGS} \
|
|
+ -DDATADIR=\"${DATADIR}\" \
|
|
+ -DHIGHSCOREDIR=\"${HIGHSCOREDIR}\"
|
|
|
|
-%.o: %.cpp
|
|
+.SUFFIXES: .o .cpp
|
|
+
|
|
+.cpp.o:
|
|
$(CC) -c $(MY_CFLAGS) $< -o $@
|
|
|
|
all: $(PROGRAM)
|