pkgsrc/games/colchess/patches/patch-aa
2000-10-24 20:08:13 +00:00

16 lines
734 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2000/10/24 20:08:13 jlam Exp $
--- Makefile.orig Sun Aug 6 19:17:39 2000
+++ Makefile
@@ -1,7 +1,8 @@
-CFLAGS=-I . -Wall -O3
+CFLAGS+=-I . -Wall -DPREFIX=\"${PREFIX}\"
-chess: chess.o moves.o comp.o tactics.o checks.o misc.o mprocs.o eval.o
- gcc -o chess chess.o comp.o tactics.o moves.o checks.o misc.o mprocs.o eval.o -lm
+all: colchess
+colchess: chess.o moves.o comp.o tactics.o checks.o misc.o mprocs.o eval.o
+ $(CC) -o colchess chess.o comp.o tactics.o moves.o checks.o misc.o mprocs.o eval.o -lm
chess.o: chess.h chess.c moves.h misc.h comp.h checks.h mprocs.h eval.h
moves.o: moves.c moves.h chess.h checks.h
comp.o: comp.c comp.h tactics.h checks.h chess.h moves.h misc.h eval.h mprocs.h