Computer Chess Club Archives


Search

Terms

Messages

Subject: Makefile needed for Fruit 2.0 - Toga II for Visual C++ Studio8 Beta1or 2

Author: Joshua Haglund

Date: 01:08:55 05/13/05



Hello, I am looking for a working makefile for Fruit-/or Toga for Visual C++
Studio 8 Beta 1 or 2.

Any help would be appreciated!

Joshua Haglund
toneewa@yahoo.com

This is what I have so far...it doesn't work.

(modeled after Crafty's)

TARGET   = NT_i386
CC       = cl
LD       = link
BFLAGS = /D_CONSOLE /DWIN32
CFLAGS   = /Ox
LDFLAGS  =
asmobjs  =
ALLOPTS  = $(COPTS) $(AOPTS) /D$(TARGET)

cobjs    = attack.obj board.obj eval.obj main.obj search.obj fen.obj hash.obj \
		   list.obj material.obj move.obj move_check.obj search_full.obj move_do.obj \
		   move_evasion.obj move_gen.obj move_legal.obj option.obj pawn.obj piece.obj
\
		   posix.obj protocol.obj pst.obj pv.obj random.obj recog.obj see.obj \
		   sort.obj trans.obj square.obj util.obj value.obj vector.obj

xcobjs   = x1.obj x2.obj

includes = attack.h board.h colour.h eval.h fen.h hash.h list.h lock.h \
		   material.h move.h move_do.h move_evasion.h move_gen.h move_legal.h option.h
\
		   pawn.h piece.h posix.h protocol.h pst.h pv.h random.h recog.h search.h \
		   search_full.h see.h sort.h square.h trans.h util.h value.h vector.h

fruit  : $(allobjs)
           $(LD) $(LDFLAGS) $(allobjs) /out:fruit.exe

fruit : $(xallobjs)
           $(LD) $(LDFLAGS) $(xallobjs) /out:fruit.exe

$(cobjs) : $(includes)

.c.obj   :
           $(CC) $(BFLAGS) $(CFLAGS) $(ALLOPTS) /c $*.c

.cpp.obj :
           $(CC) $(BFLAGS) $(CFLAGS) $(ALLOPTS) /Zm500 /c $*.cpp

$(xcobjs): $(includes)

x1.c:    attack.cpp board.cpp eval.cpp main.cpp search.cpp fen.cpp hash.cpp \
           list.cpp material.cpp move.cpp move_check.cpp search_full.cpp
move_do.cpp \
           move_evasion.cpp move_gen.cpp move_legal.cpp option.cpp pawn.cpp

           copy /b
attack.cpp+board.cpp+eval.cpp+main.cpp+search.cpp+fen.cpp+hash.cpp+\

list.cpp+material.cpp+move.cpp+move_check.cpp+search_full.cpp+move_do.cpp+\
           move_evasion.cpp+move_gen.cpp+move_legal.cpp+option.cpp+pawn.cpp x1.c

x2.c:    piece.cpp posix.cpp protocol.cpp pst.cpp pv.cpp random.cpp recog.cpp \
           see.cpp sort.cpp trans.cpp square.cpp util.cpp value.cpp vector.cpp

           copy /b
piece.cpp+posix.cpp+protocol.cpp+pst.cpp+pv.cpp+random.cpp+recog.cpp+\
           see.cpp+sort.cpp+trans.cpp+square.cpp+util.cpp+value.cpp+vector.cpp
x2.c

clean:
	   del /q $(cobjs)
	   del /q $(xcobjs)
	   del /q log.*
	   del /q game.**
	   del /q *.bak
	   del /q x1.c
	   del /q x2.c



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.