openbsd-ports/games/life/patches/patch-Makefile
jasper 2e819e4bc4 - remove unreachable HOMEPAGE
- regen patches while here
- bump PKGNAME
2007-07-18 08:47:06 +00:00

28 lines
689 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2007/07/18 08:47:06 jasper Exp $
--- Makefile.orig Sun Apr 13 13:02:01 2003
+++ Makefile Wed Jul 18 10:45:00 2007
@@ -1,8 +1,8 @@
# YAM, Yet Another Makefile
TARGET = life
-CC = g++
-CFLAGS = -Wall -O3 -g `sdl-config --cflags`
+#CC = g++
+CXXFLAGS+= -Wall `sdl-config --cflags`
LIBS = `sdl-config --libs`
OBJ = main.o Field.o Video.o Surface.o
@@ -10,10 +10,10 @@ OBJ = main.o Field.o Video.o Surface.o
all: $(TARGET)
$(TARGET): $(OBJ)
- $(CC) $(CFLAGS) $(OBJ) $(LIBS) -o $(TARGET)
+ $(CXX) $(CXXFLAGS) $(OBJ) $(LIBS) -o $(TARGET)
%.o: %.cc
- $(CC) -c $(CFLAGS) $?
+ $(CXX) -c $(CXXFLAGS) $?
clean:
rm -f $(OBJ) $(TARGET)