1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/games/KnightCap/files/patch-aa

44 lines
1.5 KiB
Plaintext
Raw Normal View History

--- Makefile.orig Tue Jun 20 21:19:26 2000
+++ Makefile Tue Jun 20 21:19:30 2000
@@ -5,8 +5,8 @@
CC = gcc
# What compiler switches do you want? These ones work well with gcc
-#OPT = -O2 -fshort-enums -Wall
-OPT = -g -fshort-enums -Wall
+#OPT = -O3 -fomit-frame-pointer -fshort-enums -Wall -DCPU=686
+# OPT = -g -fshort-enums -Wall
# If you don't have gcc then perhaps try this instead. You only need
# the null definition for inline if your C compiler doesn't know about
@@ -27,25 +27,22 @@
GLUT_LIBS = -L$(GLUT)/lib/glut -lglut
MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm
XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
+DISPLAYFLAGS = -I/usr/X11R6/include -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
-# comment out the following line if you don't want KnightCap's
-# evaluation function learning turned on.
-LEARNFLAGS = -DLEARN_EVAL=1
# you shouldn't need to edit anything below this line. Unless
# something goes wrong.
INCLUDE = $(DISPLAYFLAGS)
-CFLAGS = $(OPT) $(INCLUDE) $(LEARNFLAGS)
+CFLAGS = $(OPT) $(INCLUDE) #-DLEARN_EVAL=1
-LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS)
+LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) -lm
TARGET = KnightCap
OBJS = knightcap.o trackball.o move.o util.o generate.o eval.o movement.o \
ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o \
- testsuite.o brain.o td.o tactics.o
+ testsuite.o brain.o td.o tactics.o epd.o epdglue.o
$(TARGET): $(OBJS)
-mv $@ $@.old