delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/15/03:22:22

From: buers AT gmx DOT de (Dieter Buerssner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: compiling Crafty
Date: 15 May 2000 07:07:39 GMT
Lines: 36
Message-ID: <8foen4.3vs5s8p.0@buerssner-17104.user.cis.dfn.de>
References: <yUFT4.685$D%2 DOT 14257 AT news1 DOT news DOT adelphia DOT net> <Pine DOT GS4 DOT 4 DOT 02A DOT 10005141755450 DOT 4516-100000 AT antares DOT cc DOT umanitoba DOT ca> <004101bfbddc$52e298e0$ae13ddcc AT lhaglund>
NNTP-Posting-Host: pec-116-115.tnt8.s2.uunet.de (149.225.116.115)
Mime-Version: 1.0
X-Trace: fu-berlin.de 958374459 11602852 149.225.116.115 (16 [17104])
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/03.02.04
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Josh Haglund wrote:

>I need to know how to compile Crafty (a chess program).
>Does anyone know how?

You need to edit the Makefile, that comes with crafty. IIRC, the
Makefile is set up for Linux by default. You have to comment the
linux lines and look for Dos lines. (There are instructions at the
start of the Makefile.)

I used the following (with an older crafty version).

target  = DOS
CC      = gcc
ASM     = as
# add -march=p5 or similiar and
# -fomit-frame-pointer, to possibly get a faster  crafty
CFLAGS  = -Wall -g -O2
LDFLAGS = -g
opt     = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
          -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
asm     = X86.o

Comment the similar lines for Linux. Then run make in the crafty
directory.

IIRC, I had to add the following line to the Makefile, at the end.

X86.o: X86.S
        $(CC) -c $(CFLAGS) $(opts) X86.S

If you need crafty for a windows DOS-shell, you can download a
precompiled binary from Robert Hyatt's site.

-- 
Regards, Dieter Buerssner

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019