1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/phalanx/files/patch-aa
Steve Price 6d2420d129 Initial import of phalanx version 21.
An xboard-compatible chess playing program.

PR:		11600
Submitted by:	Andrey Zakhvatov <andy@icc.surw.chel.su>
1999-06-06 17:40:06 +00:00

34 lines
1011 B
Plaintext

--- makefile Sat Jan 30 00:26:13 1999
+++ /home/andy/tmp/wrk/makefile Sun May 2 16:46:44 1999
@@ -1,9 +1,10 @@
-CC = gcc
+#CC = gcc
####### choose the line that makes the binary faster on your machine
# CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
-CFLAGS = -O -fomit-frame-pointer
+#CFLAGS = -O -fomit-frame-pointer
+CFLAGS+= -I${LOCALBASE}/include
####### debug/tuning options for developers
# CFLAGS = -O -Wall -g3 -static
@@ -20,7 +21,7 @@
### -DLEARN_DIR=\"/var/local/lib\"
### -DQCAPSONLY
-DEFINES = -DGNUFUN
+DEFINES = -DGNUFUN -DPBOOK_DIR=\"${PREFIX}/share/phalanx\" -DSBOOK_DIR=\"${PREFIX}/share/phalanx\"
LDFLAGS =
OBJ = .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o \
@@ -28,7 +29,7 @@
.o/levels.o .o/book.o .o/killers.o .o/endgame.o .o/learn.o
phalanx: .o $(OBJ)
- $(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx
+ $(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx -L${LOCALBASE}/lib -lgnugetopt
strip phalanx
.o/%.o: makefile %.c