1999-06-22 16:28:10 +00:00
|
|
|
--- Makefile.orig Tue May 18 09:23:36 1999
|
|
|
|
+++ Makefile Sat Jun 19 16:31:54 1999
|
|
|
|
@@ -23,7 +23,7 @@
|
|
|
|
# SGI {SGI Workstation running Irix (SYSV/R4) Unix}
|
|
|
|
# SUN {Sun SparcStation running Solaris (SYSV/R4) Unix}
|
|
|
|
# SUN_BSD {Sun SparcStation running SunOS (BSD) Unix}
|
|
|
|
-# FreeBSD {80X86 architecture running FreeBSD (unix)}
|
|
|
|
+# FreeBSD {80X86/Alpha architecture running FreeBSD (unix)}
|
|
|
|
#
|
|
|
|
# The next options are optimizations inside Crafty that you will have
|
|
|
|
# test to see if they help. on some machines, these will slow things
|
|
|
|
@@ -69,13 +69,15 @@
|
1998-09-19 20:23:07 +00:00
|
|
|
# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
|
|
|
|
# asm = X86.o
|
|
|
|
|
|
|
|
-# FreeBSD (gcc 2.6.3)
|
|
|
|
-#target = FreeBSD
|
1999-01-03 00:04:23 +00:00
|
|
|
+# FreeBSD (gcc 2.7.2.1)
|
|
|
|
+target = FreeBSD
|
|
|
|
#CC = gcc
|
1998-10-10 03:54:36 +00:00
|
|
|
-#CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
|
|
|
|
-#LDFLAGS =
|
1998-09-19 20:23:07 +00:00
|
|
|
-#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
|
|
|
|
-# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
|
1999-01-03 00:04:23 +00:00
|
|
|
+#CFLAGS = -pipe -O -Wall
|
1998-10-10 03:54:36 +00:00
|
|
|
+LDFLAGS =
|
1999-06-22 16:28:10 +00:00
|
|
|
+opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS
|
|
|
|
+.if ${MACHINE_ARCH} == "i386"
|
|
|
|
+opt += -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
|
|
|
|
+.endif
|
1998-09-19 20:23:07 +00:00
|
|
|
|
|
|
|
# FreeBSD (pgcc)
|
|
|
|
#target = FreeBSD
|
1999-06-22 16:28:10 +00:00
|
|
|
@@ -95,18 +97,23 @@
|
1998-09-19 20:23:07 +00:00
|
|
|
|
1999-05-30 21:13:52 +00:00
|
|
|
# LINUX (pgcc)
|
1998-09-19 20:23:07 +00:00
|
|
|
# Note: You have to uncomment exactly ONE of the `asm' lines below.
|
|
|
|
-target = LINUX
|
|
|
|
-CC = gcc
|
1999-05-30 21:13:52 +00:00
|
|
|
-CFLAGS = -Wall -pipe -D_REENTRANT -mpentium -O
|
1998-09-19 20:23:07 +00:00
|
|
|
-LDFLAGS = -lpthread
|
|
|
|
-opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
|
1999-05-30 21:13:52 +00:00
|
|
|
- -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT
|
1998-09-19 20:23:07 +00:00
|
|
|
+#target = LINUX
|
|
|
|
+#CC = gcc
|
1999-05-30 21:13:52 +00:00
|
|
|
+#CFLAGS = -Wall -pipe -D_REENTRANT -mpentium -O
|
1998-09-19 20:23:07 +00:00
|
|
|
+#LDFLAGS = -lpthread
|
|
|
|
+#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
|
1999-05-30 21:13:52 +00:00
|
|
|
+# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT
|
1998-09-19 20:23:07 +00:00
|
|
|
|
|
|
|
# Uncomment the FIRST `asm' line for a.out systems.
|
|
|
|
# Uncomment the SECOND `asm' line for ELF systems.
|
|
|
|
#
|
|
|
|
-#asm = X86-aout.o
|
1999-06-22 16:28:10 +00:00
|
|
|
+.if ${MACHINE_ARCH} == "i386"
|
1998-09-19 20:23:07 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
+asm = X86-aout.o
|
|
|
|
+.else
|
|
|
|
asm = X86-elf.o
|
1999-06-22 16:28:10 +00:00
|
|
|
+.endif
|
1998-09-19 20:23:07 +00:00
|
|
|
+.endif
|
1999-05-30 21:13:52 +00:00
|
|
|
|
|
|
|
# LINUX (gcc)
|
|
|
|
# Note: You have to uncomment exactly ONE of the `asm' lines below.
|
1999-06-22 16:28:10 +00:00
|
|
|
@@ -162,7 +169,7 @@
|
1999-01-03 00:04:23 +00:00
|
|
|
|
|
|
|
# Do not change anything below this line!
|
|
|
|
|
|
|
|
-opts = $(opt) -D$(target)
|
|
|
|
+CFLAGS += $(opt) -D$(target)
|
|
|
|
|
|
|
|
objects = searchr.o search.o thread.o searchmp.o repeat.o next.o nexte.o \
|
|
|
|
nextr.o history.o quiesce.o evaluate.o movgen.o make.o unmake.o \
|
1999-06-22 16:28:10 +00:00
|
|
|
@@ -189,7 +196,7 @@
|
1999-06-19 18:00:17 +00:00
|
|
|
|
|
|
|
egtb.o: egtb.cpp
|
|
|
|
@echo $(CC) -c $(CFLAGS) egtb.cpp
|
|
|
|
- @$(CC) -c -pipe -D_REENTRANT -mpentium -O $(opts) egtb.cpp
|
|
|
|
+ @$(CC) -c -pipe -D_REENTRANT -O $(opts) egtb.cpp
|
|
|
|
clean:
|
|
|
|
-rm -f *.o crafty X86-elf.X X86-aout.S
|
|
|
|
|