head 1.8; access; symbols pkgsrc-2022Q3:1.7.0.120 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.118 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.116 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.114 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.112 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.110 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.108 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.106 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.104 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.100 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.80 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.102 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.98 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.96 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.94 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.92 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.90 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.88 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.86 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.84 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.82 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.78 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.76 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.74 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.72 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.70 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.68 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.66 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.64 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.62 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.60 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.58 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.56 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.54 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.52 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.50 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.48 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.46 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.44 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.42 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.40 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.38 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.36 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.34 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.32 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.30 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.28 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.26 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.24 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.22 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.20 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.18 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.16 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.14 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.12 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.10 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.8 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.6 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.4 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.2 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 netbsd-1-6:1.5.0.8 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.5 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2022.12.25.09.00.36; author wiz; state dead; branches; next 1.7; commitid YBK7GI8H1FFwYU6E; 1.7 date 2008.05.25.15.56.02; author joerg; state Exp; branches; next 1.6; 1.6 date 2002.09.11.10.52.10; author jlam; state dead; branches; next 1.5; 1.5 date 2001.03.09.19.55.58; author jlam; state Exp; branches; next 1.4; 1.4 date 2001.02.08.17.23.47; author jlam; state Exp; branches; next 1.3; 1.3 date 2001.01.15.07.00.03; author jlam; state Exp; branches; next 1.2; 1.2 date 2000.11.10.17.34.11; author jlam; state dead; branches; next 1.1; 1.1 date 2000.10.15.02.06.27; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.10.15.02.06.27; author jlam; state Exp; branches; next ; desc @@ 1.8 log @crafty*: remove sources from 2008; homepage says 'Crafty has been retired for some time' It still built, but dumped core when building its books. @ text @$NetBSD: patch-aa,v 1.7 2008/05/25 15:56:02 joerg Exp $ --- Makefile.orig 2008-04-20 19:11:58.000000000 +0200 +++ Makefile @@@@ -428,7 +428,7 @@@@ crafty-make: crafty.o: *.c *.h crafty: $(objects) egtb.o - $(CC) $(LDFLAGS) -o crafty $(objects) egtb.o -lm $(LIBS) + $(CXX) $(LDFLAGS) -o crafty $(objects) egtb.o -lm $(LIBS) egtb.o: egtb.cpp $(CXX) -c $(CXFLAGS) $(opts) egtb.cpp @ 1.7 log @Update to crafty 22.1. Always use the NetBSD rules, we can fixup issues if they happen. Don't install the ECO classification as opening book, it is essentially useful. No detailed ChangeLog, but this fixes some crashes with invalid games, brings SMP support and increases to the strength of crafty. @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Update games/crafty to 18.15. Changes from version 18.13 include: 18.14 Minor bug in ResignOrDraw() code caused Crafty to not offer draws although it would accept them when appropriate. Rook vs Minor is now evaluated as "neither side can win" an oversight in the EvaluateWinner() code. minor bug in ResignOrDraw() would fail to offer draws due to the +0.01/-0.01 draw scores returned by the EGTB probe code. 18.15 change in endgame draw recognition to handle the case where one side appears to be in a lost ending but is stalemated. the code now evaluates such positions as "DrawScore()" instead. the code to accept/decline draws has been modified. when a draw offer is received, a global variable "draw_offer_pending" is set to 1. when the search for a move for crafty terminates, crafty then uses this value to decide whether to accept or decline the draw. this means that the accept/decline won't happen until _after_ the search has a chance to see if something good is happening that should cause the draw to be declined, closing a timing hole that used to exist that let a few "suspects" get away with draws that should not have happened (ie crafty has - scores for a long time, the opponent suddenly fails low and sees he is losing and offers a draw quickly. Crafty would accept before doing a search and noticing that it was suddenly winning.) minor evaluation change to notice that K+B+right RP vs K+B is not necessarily won if the weaker side has a bishop of the right color. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2001/03/09 19:55:58 jlam Exp $ d3 1 a3 1 --- Makefile.orig Mon Feb 5 16:20:35 2001 d5 9 a13 63 @@@@ -135,7 +135,7 @@@@ dos: $(MAKE) target=DOS \ CC=gcc CXX='$$(CC)' \ - CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -O3' \ LDFLAGS='$(LDFLAGS)' \ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \ @@@@ -145,7 +145,7 @@@@ freebsd: $(MAKE) target=FreeBSD \ CC=gcc CXX='$$(CC)' \ - CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -O3 -Wall' \ LDFLAGS='$(LDFLAGS)' \ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ @@@@ -243,7 +243,7 @@@@ netbsd: $(MAKE) target=NetBSD \ CC=gcc CXX=g++ \ - CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \ + CFLAGS='$(CFLAGS) -D_REENTRANT -Wall \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math' \ LDFLAGS='$(LDFLAGS)' \ @@@@ -253,7 +253,7 @@@@ netbsd-i386: $(MAKE) target=NetBSD \ CC=gcc CXX=g++ \ - CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \ + CFLAGS='$(CFLAGS) -D_REENTRANT -Wall \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math' \ LDFLAGS='$(LDFLAGS)' \ @@@@ -265,7 +265,7 @@@@ netbsd-i386-elf: $(MAKE) target=NetBSD \ CC=gcc CXX=g++ \ - CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \ + CFLAGS='$(CFLAGS) -D_REENTRANT -Wall \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math' \ LDFLAGS='$(LDFLAGS)' \ @@@@ -277,7 +277,7 @@@@ netbsd-sparc: $(MAKE) target=NetBSD \ CC=gcc CXX=g++ \ - CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \ + CFLAGS='$(CFLAGS) -D_REENTRANT -Wall \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math' \ LDFLAGS='$(LDFLAGS)' \ @@@@ -297,7 +297,7 @@@@ os2: $(MAKE) target=OS2 \ CC=gcc CXX='$$(CC)' \ - CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -O3 -Wall' \ LDFLAGS='$(LDFLAGS) -Zexe -Zcrtdll -s' \ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ @ 1.5 log @Update crafty to 18.4. Changes from version 18.3: 18.4 recapture extension was left in SearchSMP() erroneously. this has now been protected by a #ifdef just like it was in Search(). bug in RepetitionCheck() was causing problems in SMP versions. The entire repetition list code was modified to clean this up. the problem was most noticable on things like fine #70. bug in LearnImportBook() confused the learn value sign, due to the other changes to make +=white all the time. opposite bishop scoring has been beefed up a bit to avoid these drawish endings. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update crafty to 18.2. Changes from version 18.1 include: The main feature is that it fixes the winboard hang problem when crafty plays black on a chess server. It also has much more aggressive book learning (code has been significantly changed). A minor bug was fixed in analyze mode that would break the "h" command when black was on move, and show one less move for either side that had actually been played in the game. Another fixed bug reversed the sign of a score whispered in analysis mode. Pkgsrc changes include fixing the build target on Solaris (untested). @ text @d23 9 d37 1 a37 1 + CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \ d46 10 a55 1 + CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \ @ 1.3 log @Allow generated code to execute on 386-class machines. People wanting to optimize Crafty for i[456]86 can set CFLAGS appropriately in /etc/mk.conf. @ text @d3 1 a3 1 --- Makefile.orig Tue Dec 12 12:49:12 2000 d5 1 a5 1 @@@@ -124,7 +124,7 @@@@ d14 1 a14 1 @@@@ -134,7 +134,7 @@@@ d23 1 a23 1 @@@@ -240,7 +240,7 @@@@ d32 1 a32 1 @@@@ -252,7 +252,7 @@@@ d41 1 a41 1 @@@@ -284,7 +284,7 @@@@ @ 1.2 log @Update crafty to 17.14. The author kindly accepted all patches back into the main source tree, so no more pkgsrc patches. Changes from version 17.13: another endgame evaluation problem fixed. the outside passed pawn code worked well, up until the point the pawn had to be given up to decoy the other side's king away from the remainder of the pawns. Crafty now understands the king being closer to the pawns than the enemy king, and therefore transitions from outside passer to won king-pawn ending much cleaner. new command "selective" as requested by S. Lim, which allows the user to set the min/max null move R values (default=2/3). they can be set to 0 which disables null-move totally, or they can be set larger than the default for testing. minor changes to init.c sent by Eugene Nalimov to handle 64 bit pointer declarations for win64 executable compilation. NetBSD changes included along with a new Makefile that requires no editing to use for any known configuration ("make help" will explain how to use it). this was submitted by Johnny Lam. serious changes to the outside passed pawn code. the evaluator now understands that outside passers on _both_ sides of the board is basically winning. same goes for candidate passers. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2000/10/15 02:06:27 jlam Exp $ d3 1 a3 1 --- Makefile.orig Fri Jun 9 12:56:10 2000 d5 23 a27 357 @@@@ -1,8 +1,6 @@@@ # To build crafty: # -# Uncomment the sections relevant to your architecture. -# You may need to tune the two gcc lines below to match your compiler. # You want to set up for maximum optimization, but typically you will # need to experiment to see which options provide the fastest code. # This is optimized for pgcc, which is a fairly current compiler. @@@@ -14,8 +12,8 @@@@ # ALPHALINUX {DEC Alpha running Linux} # CRAY1 {any Cray-1 compatible architecture including XMP, YMP, # C90, etc.} -# HP {HP workstation running HP_UX operating system (unix)} -# LINUX {80X86 architecture running LINUX (unix)} +# HP {HP workstation running HP_UX operating system (Unix)} +# LINUX {80X86 architecture running LINUX (Unix)} # NT_i386 {80X86 architecture running Windows 95 or NT} # NT_AXP {DEC Alpha running Windows NT} # DOS {PC running dos/windows, using DJGPP port of gcc to compile} @@@@ -24,7 +22,8 @@@@ # SGI {SGI Workstation running Irix (SYSV/R4) Unix} # SUN {Sun SparcStation running Solaris (SYSV/R4) Unix} # SUN_GCC {Sun SparcStation running Solaris but using gcc -# FreeBSD {80X86 architecture running FreeBSD (unix)} +# FreeBSD {80X86 architecture running FreeBSD (Unix)} +# NetBSD {multi-architecture running NetBSD (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 @@@@ -44,20 +43,45 @@@@ # # if you want 6 man EGTB support, you will need to add -DEGTB6 to the # options above. -# -# -# AIX -#target = AIX -#CC = cc -#CFLAGS = -O2 -#CPP = $(CC) -#LDFLAGS = -#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -#opt = -DCOMPACT_ATTACKS - -# ALPHA -#target = ALPHA -#CC = cc + +nothing-specified: + @@echo "You must specify the system which you want to compile for:" + @@echo "" + @@echo "make aix IBM AIX" + @@echo "make alpha DEC Alpha with OSF/1-Digital UNIX" + @@echo "make alpha-host Alpha DECstation optimized for host" + @@echo "make alpha-host-nocix Alpha DECstation optimezed for host, no CIX insn" + @@echo "make dos DOS on i386 with DJGPP" + @@echo "make hpux HP/UX 9/10, /7xx" + @@echo "make linux Linux optimized for i386" + @@echo "make linux-elf Linux optimized for i386, ELF format" + @@echo "make linux-i686 Linux optimized for i686" + @@echo "make linux-i686-elf Linux optimized for i686, ELF format" + @@echo "make linux-alpha Linux optimized for alpha" + @@echo "make freebsd FreeBSD" + @@echo "make freebsd-pgcc FreeBSD using Pentium GNU cc" + @@echo "make netbsd NetBSD" + @@echo "make netbsd-i386 NetBSD optimized for i386" + @@echo "make netbsd-i386-elf NetBSD optimized for i386, ELF format" + @@echo "make netbsd-sparc NetBSD optimized for sparc" + @@echo "make next NeXTSTEP" + @@echo "make os2 IBM OS/2 Warp" + @@echo "make sgi SGI running IRIX" + @@echo "make solaris Solaris 2.x" + @@echo "make solaris-gcc Solaris 2.x using GNU cc" + @@echo "" + @@echo "make generic Try this one if your system isn't listed above;" + @@echo " it assumes you have installed GNU cc" + @@echo "" + +aix: + $(MAKE) target=AIX \ + CC=cc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS} -O2' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS' \ + crafty-make + #Note: "-arch host" assumes you will run the binary on exactly the # same kind of ALPHA you compiled it on. Omit it if you want to run # the same binary on several kinds of Alpha. If you are on an early @@@@ -66,133 +90,242 @@@@ # happens you'll see a message about "instr emulated" after starting # crafty; to fix it, change "-arch host" to "-arch ev56 -tune host" # and recompile. -#CFLAGS = -std -fast -O4 -pthread -newc -arch host -#CPP = cxx -#LDFLAGS = $(CFLAGS) -#LIBS = -lpthread -lexc -#opt = -DSMP -DCPUS=8 -DFAST -DPOSIX - -# ALPHALINUX (experimental) -#target = ALPHA -#CC = gcc -#Note: change below to the type of your CPU -# (ev4,ev45... or 21064,21064A...) or remove the option -mcpu -# option for less optimization. If you have the Compaq C Compiler for -# AlphaLinux you can link the machine/builtins.h from ccc's private -# include file to /usr/include/alpha, link the directory alpha to machine -# and remove -DNOBUILTINS from the opt-line -# THIS TARGET IS EXPERIMENTAL !!! -#CFLAGS = -O4 -ffast-math -funroll-loops -mcpu= -#CPP = g++ -#LDFLAGS = $(CFLAGS) -#LIBS = -lpthread -#opt = -DSMP -DCPUS=8 -DFAST -DPOSIX -DNOBUILTINS - -# DOS -# target = DOS -# CC = gcc -# CFLAGS = -fomit-frame-pointer -m486 -O3 -# CPP = $(CC) -# LDFLAGS = -# opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -# asm = X86.o - -# FreeBSD (gcc 2.6.3) -#target = FreeBSD -#CC = gcc -#CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall -#CPP = $(CC) -#LDFLAGS = -#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST - -# FreeBSD (pgcc) -#target = FreeBSD -#CC = gcc -#CFLAGS = -pipe -D_REENTRANT -mpentium -O -Wall -#CPP = $(CC) -#LDFLAGS = -#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST - -# HP -#target = HP -#CC = cc -#OPT = +O3 +Onolimit -#CFLAGS = +ESlit -Ae +w1 -#CPP = $(CC) -#LDFLAGS = $(OPT) $(CFLAGS) -#opt = - -# LINUX (gcc 2.95) -# Note: You have to uncomment exactly ONE of the `asm' lines below. -target = LINUX -CC = gcc -CPP = g++ -CFLAGS = -Wall -pipe -D_REENTRANT -march=i686 -O -fforce-mem \ - -fomit-frame-pointer -mpreferred-stack-boundary=2 -LDFLAGS = -lpthread -opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ - -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT -# Uncomment the FIRST `asm' line for a.out systems. -# Uncomment the SECOND `asm' line for ELF systems. +alpha: + $(MAKE) target=ALPHA \ + CC=cc CXX=cxx \ + CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc' \ + LDFLAGS='$(LDFLAGS) $(CFLAGS)' \ + LIBS='-lpthread -lexc' \ + opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \ + crafty-make + +alpha-host: + $(MAKE) target=ALPHA \ + CC=cc CXX=cxx \ + CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc -arch host' \ + LDFLAGS='$(LDFLAGS) $(CFLAGS)' \ + LIBS='-lpthread -lexc' \ + opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \ + crafty-make + +alpha-host-nocix: + $(MAKE) target=ALPHA \ + CC=cc CXX=cxx \ + CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc \ + -arch ev56 -tune host' \ + LDFLAGS='$(LDFLAGS) $(CFLAGS)' \ + LIBS='-lpthread -lexc' \ + opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \ + crafty-make + +dos: + $(MAKE) target=DOS \ + CC=gcc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \ + asm='X86.o' \ + crafty-make + +freebsd: + $(MAKE) target=FreeBSD \ + CC=gcc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ + crafty-make + +freebsd-pgcc: + $(MAKE) target=FreeBSD \ + CC=gcc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) -pipe -D_REENTRANT -mpentium -O -Wall' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ + crafty-make + +hpux: + $(MAKE) target=HP \ + CC=cc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) +ESlit -Ae +w1' \ + LDFLAGS='$(LDFLAGS) +O3 +Onolimit $(CFLAGS)' \ + crafty-make + +linux: + $(MAKE) target=LINUX \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O3 \ + -fforce-mem -fomit-frame-pointer \ + LDFLAGS='$(LDFLAGS) -lpthread' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ + asm=X86-aout.o \ + crafty-make + +linux-elf: + $(MAKE) target=LINUX \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O3 \ + -fforce-mem -fomit-frame-pointer \ + LDFLAGS='$(LDFLAGS) -lpthread' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ + asm=X86-elf.o \ + crafty-make + +linux-i686: + $(MAKE) target=LINUX \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -march=i686 -O \ + -fforce-mem -fomit-frame-pointer \ + -mpreferred-stack-boundary=2' \ + LDFLAGS='$(LDFLAGS) -lpthread' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \ + -DSMP -DCPUS=4 -DDGT' \ + asm=X86-aout.o \ + crafty-make + +linux-i686-elf: + $(MAKE) target=LINUX \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -march=i686 -O \ + -fforce-mem -fomit-frame-pointer \ + -mpreferred-stack-boundary=2' \ + LDFLAGS='$(LDFLAGS) -lpthread' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \ + -DSMP -DCPUS=4 -DDGT' \ + asm=X86-elf.o \ + crafty-make + +# You may wish to add additional targets called linux-alpha- +# to produce optimized code for your CPU. Just copy the linux-alpha target +# and add -mcpu= to the CFLAGS, where the type of your CPU is +# ev4,ev45... or 21064,21064A... Or, just type # -#asm = X86-aout.o -asm = X86-elf.o - -# NEXT -#target = NEXT -#CC = /bin/cc -#CFLAGS = -O2 -#CPP = $(CC) -#LDFLAGS = $(CFLAGS) -#opt = -DCOMPACT_ATTACKS - -# OS2 (emx09c) -# target = OS2 -# CC = gcc -# CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall -# CPP = $(CC) -# LDFLAGS = -Zexe -Zcrtdll -s -# opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DOS2 -# asm = X86.o - -# SGI -#target = SGI -#AS = /bin/as -#CC = cc -#AFLAGS = -P -#CFLAGS = -g -32 -mips2 -cckr -#CPP = $(CC) -#LDFLAGS = -#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -#opt = - -# SUN -#target = SUN -#AS = /usr/ccs/bin/as -#CC = cc -#AFLAGS = -P -#CPP = $(CC) -#CFLAGS = -fast -xO5 -xunroll=20 -#LDFLAGS = -lpthread -#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX -#asm = Sparc.o - -# SUN_GCC (using gcc comiler) -#target = SUN -#AS = /usr/ccs/bin/as -#CC = gcc -#AFLAGS=-P -#CPP = g++ -#CFLAGS= -Wall -pipe -D_REENTRANT -O2 -fforce-mem -fomit-frame-pointer -#LDFLAGS= -#opt = -DCOMPACT_ATTACK -DUSE_ATTACK_FUNCTIONS -DUSE_ASSEMBLY_A -#asm = Sparc.o +# make linux-alpha CFLAGS='-mcpu=' +# +# If you have the Compaq C Compiler for AlphaLinux you can link the +# machine/builtins.h from ccc's private include file to /usr/include/alpha, +# link the directory alpha to machine and remove -DNOBUILTINS from the +# opt-line. +# +# THIS TARGET IS EXPERIMENTAL !!! + +linux-alpha: + $(MAKE) target=ALPHA \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -O4 -ffast-math -funroll-loops' \ + LDFLAGS='$(LDFLAGS) $(CFLAGS)' \ + LIBS='-lpthread' \ + opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX -DNOBUILTINS' \ + crafty-make + +netbsd: + $(MAKE) target=NetBSD \ + CC=gcc CXX=g++ \ d29 8 a36 33 + -fomit-frame-pointer -funroll-all-loops \ + -finline-functions -ffast-math' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST' \ + crafty-make + +netbsd-i386: + $(MAKE) target=NetBSD \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \ + -fomit-frame-pointer -funroll-all-loops \ + -finline-functions -ffast-math' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \ + asm=X86-aout.o \ + crafty-make + +netbsd-i386-elf: + $(MAKE) target=NetBSD \ + CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \ + -fomit-frame-pointer -funroll-all-loops \ + -finline-functions -ffast-math' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \ + asm=X86-elf.o \ + crafty-make + +netbsd-sparc: + $(MAKE) target=NetBSD \ + CC=gcc CXX=g++ \ d38 12 a49 89 + -fomit-frame-pointer -funroll-all-loops \ + -finline-functions -ffast-math' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \ + -DUSE_ASSEMBLY_A' \ + asm=Sparc.o \ + crafty-make + +next: + $(MAKE) target=NEXT \ + CC=/bin/cc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) -O2' \ + LDFLAGS='$(LDFLAGS) $(CFLAGS)' + opt='$(opt) -DCOMPACT_ATTACKS' \ + crafty-make + +os2: + $(MAKE) target=OS2 \ + CC=gcc CXX='$$(CC)' \ + CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \ + LDFLAGS='$(LDFLAGS) -Zexe -Zcrtdll -s' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ + asm=X86.o \ + crafty-make + +sgi: + $(MAKE) target=SGI \ + AS=/bin/as CC=cc CXX='$$(CC)' \ + AFLAGS='-P' \ + CFLAGS='$(CFLAGS) -g -32 -mips2 -cckr' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS' \ + crafty-make + +solaris: + $(MAKE) target=SUN \ + AS=/usr/ccs/bin/as CC=cc CXX='$$(CC)' \ + AFLAGS='-P' \ + CFLAGS='$(CFLAGS) -fast -xO5 -xunroll=20' \ + LDFLAGS='$(LDFLAGS) -lpthread' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX' \ + asm=Sparc.o \ + crafty-make + +solaris-gcc: + $(MAKE) target=SUN \ + AS=/usr/ccs/bin/as CC=gcc CXX=g++ \ + AFLAGS='-P' \ + CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O2 \ + -fforce-mem -fomit-frame-pointer' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A' \ + asm=Sparc.o \ + crafty-make + +generic: + $(MAKE) CC=gcc CXX=g++ \ + CFLAGS='$(CFLAGS)' \ + LDFLAGS='$(LDFLAGS)' \ + crafty-make # Do not change anything below this line! @@@@ -212,6 +345,13 @@@@ eval_users = data.o evaluate.o preeval.o +crafty-make: + @@$(MAKE) \ + AS='$(AS)' CC='$(CC)' CXX='$(CXX)' \ + AFLAGS='$(AFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' \ + opt='$(opt)' asm='$(asm)' \ + crafty + crafty: $(objects) $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS) @@rm -f X86-elf.S @@@@ -221,7 +361,7 @@@@ @@cc -O -o dgt dgtdrv.c egtb.o: egtb.cpp - $(CPP) -c $(CFLAGS) $(opts) egtb.cpp + $(CXX) -c $(CFLAGS) $(opts) egtb.cpp clean: -rm -f *.o crafty X86-elf.X X86-aout.S @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @crafty: chess engine -- plays a MUCH better game of chess than GNU Chess. @ text @@