2000-07-07 18:48:31 +00:00
|
|
|
--- Makefile.orig Tue Jun 20 21:19:26 2000
|
|
|
|
+++ Makefile Tue Jun 20 21:19:30 2000
|
|
|
|
@@ -5,8 +5,8 @@
|
|
|
|
CC = gcc
|
1998-05-15 12:14:23 +00:00
|
|
|
|
|
|
|
# What compiler switches do you want? These ones work well with gcc
|
2000-07-07 18:48:31 +00:00
|
|
|
-#OPT = -O2 -fshort-enums -Wall
|
1998-05-15 12:14:23 +00:00
|
|
|
-OPT = -g -fshort-enums -Wall
|
2000-07-07 18:48:31 +00:00
|
|
|
+#OPT = -O3 -fomit-frame-pointer -fshort-enums -Wall -DCPU=686
|
|
|
|
+# OPT = -g -fshort-enums -Wall
|
1998-05-15 12:14:23 +00:00
|
|
|
|
|
|
|
# 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
|
2000-07-07 18:48:31 +00:00
|
|
|
@@ -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
|
1998-05-15 12:14:23 +00:00
|
|
|
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
|
2000-07-07 18:48:31 +00:00
|
|
|
+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
|