|
Lines 1-37
Link Here
|
| 1 |
--- Makefile.orig Wed Mar 11 15:51:57 1998 |
1 |
--- Makefile.orig Tue Jun 20 21:19:26 2000 |
| 2 |
+++ Makefile Sun Sep 27 11:09:04 1998 |
2 |
+++ Makefile Tue Jun 20 21:19:30 2000 |
| 3 |
@@ -2,11 +2,11 @@ |
3 |
@@ -5,8 +5,8 @@ |
| 4 |
|
4 |
CC = gcc |
| 5 |
# what C compiler? It better be Ansi-C. Use gcc if you have it. |
|
|
| 6 |
# you may find that KnightCap is very slow if you don't use gcc |
| 7 |
-CC = gcc |
| 8 |
+#CC = gcc |
| 9 |
|
5 |
|
| 10 |
# What compiler switches do you want? These ones work well with gcc |
6 |
# What compiler switches do you want? These ones work well with gcc |
| 11 |
#OPT = -O2 -fshort-enums -Wall |
7 |
-#OPT = -O2 -fshort-enums -Wall |
| 12 |
-OPT = -g -fshort-enums -Wall |
8 |
-OPT = -g -fshort-enums -Wall |
| 13 |
+OPT = -O2 -fshort-enums -Wall -DPI=M_PI |
9 |
+#OPT = -O3 -fomit-frame-pointer -fshort-enums -Wall -DCPU=686 |
|
|
10 |
+# OPT = -g -fshort-enums -Wall |
| 14 |
|
11 |
|
| 15 |
# If you don't have gcc then perhaps try this instead. You only need |
12 |
# If you don't have gcc then perhaps try this instead. You only need |
| 16 |
# the null definition for inline if your C compiler doesn't know about |
13 |
# the null definition for inline if your C compiler doesn't know about |
| 17 |
@@ -21,13 +21,13 @@ |
14 |
@@ -27,25 +27,22 @@ |
| 18 |
# display (or you don't have OpenGL and Glut libraries) |
15 |
GLUT_LIBS = -L$(GLUT)/lib/glut -lglut |
| 19 |
# If you do have these libs then make sure the first three |
16 |
MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm |
| 20 |
# lines point at the right places |
17 |
XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi |
| 21 |
-MESA = /usr/local/Mesa-2.1 |
|
|
| 22 |
-GLUT = /usr/local/Mesa-2.1/glut-3.2 |
| 23 |
-X11 = /usr/X11R6 |
| 24 |
-GLUT_LIBS = -L$(GLUT)/lib/glut -lglut |
| 25 |
-MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm |
| 26 |
-XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi |
| 27 |
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 |
18 |
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 |
| 28 |
+GLUT_LIBS = -L$(X11BASE)/lib -lglut |
19 |
+DISPLAYFLAGS = -I/usr/X11R6/include -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 |
| 29 |
+MESA_LIBS = -L$(X11BASE)/lib -lMesaGLU -lMesaGL -lm |
|
|
| 30 |
+XLIBS = -L$(X11BASE)/lib -lXmu -lXt -lXext -lX11 -lXi |
| 31 |
+.if $(PORTOBJFORMAT) == "elf" |
| 32 |
+XLIBS+= -Wl,-rpath,$(X11BASE)/lib |
| 33 |
+.endif |
| 34 |
+DISPLAYFLAGS = -I$(X11BASE)/include -DRENDERED_DISPLAY=1 |
| 35 |
|
20 |
|
| 36 |
# comment out the following line if you don't want KnightCap's |
21 |
-# comment out the following line if you don't want KnightCap's |
| 37 |
# evaluation function learning turned on. |
22 |
-# evaluation function learning turned on. |
|
|
23 |
-LEARNFLAGS = -DLEARN_EVAL=1 |
| 24 |
|
| 25 |
# you shouldn't need to edit anything below this line. Unless |
| 26 |
# something goes wrong. |
| 27 |
|
| 28 |
INCLUDE = $(DISPLAYFLAGS) |
| 29 |
-CFLAGS = $(OPT) $(INCLUDE) $(LEARNFLAGS) |
| 30 |
+CFLAGS = $(OPT) $(INCLUDE) #-DLEARN_EVAL=1 |
| 31 |
|
| 32 |
-LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) |
| 33 |
+LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) -lm |
| 34 |
|
| 35 |
TARGET = KnightCap |
| 36 |
|
| 37 |
OBJS = knightcap.o trackball.o move.o util.o generate.o eval.o movement.o \ |
| 38 |
ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o \ |
| 39 |
- testsuite.o brain.o td.o tactics.o |
| 40 |
+ testsuite.o brain.o td.o tactics.o epd.o epdglue.o |
| 41 |
|
| 42 |
$(TARGET): $(OBJS) |
| 43 |
-mv $@ $@.old |