summaryrefslogtreecommitdiffstats
path: root/games/KnightCap/files/patch-aa
blob: 2f21a4447a1c5c4a6936c34ed115dcc62879a356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- 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
OpenPOWER on IntegriCloud