Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: compiling crafty with mingw32

Author: Sean Mintz

Date: 14:43:42 02/17/03

Go up one level in this thread


It works now.

Here's what I had to do:

1) Get MSYS to go with MingW (it's kind of like cygwin...)
2) Add a make option to makefile:

mingw32:
	$(MAKE) target=NT_i386 \
		CC=gcc CXX=g++ \
		CFLAGS='$(CFLAGS) -O3' \
		CXFLAGS=$(CFLAGS) \
		LDFLAGS=$(LDFLAGS) \
		opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
		     -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
		asm=X86-aout.o \
		crafty-make

3) Modify the crafty-make part of makefile:

crafty:	$(objects)
	g++ $(LDFLAGS) -o crafty $(objects) -lm  $(LIBS)
	@rm -f X86-elf.S
	@rm -f X86-aout.S

4) Compile! ''make mingw32''



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.