openbsd-ports/games/life/patches/patch-Makefile
pvalchev abebde5f0d Initial import of life-1.0
A clone of the popular artificial life program from the 70's.

Maintainer: Jolan Luff <jolan@cryptonomicon.org>
2003-04-23 05:13:21 +00:00

28 lines
694 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2003/04/23 05:13:21 pvalchev Exp $
--- Makefile.orig Sun Apr 13 06:02:01 2003
+++ Makefile Mon Apr 21 14:54:10 2003
@@ -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.
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)