Computer Chess Club Archives




Subject: Re: Spike 1.0 Mainz - Linux version?

Author: Daniel Mehrmannn

Date: 13:05:31 08/18/05

Go up one level in this thread

On August 17, 2005 at 09:22:02, Volker Böhm wrote:

>Hi Roy,
>no a linux version is currently not planed. It has been a long time that I´ve
>forgotten how to create makefiles. Modern GUI´s take care about the building
>Maybe if there is someone who can help me with a linux code (knows where to get
>a gnu compiler for linux, how to make its makefile and can help translate some
>microsoft-specific tread-code - spike is allready multithreading), I can provide
>a Spike-linux. But we will not give our sourcecode away!
>Greetings Volker

Well, a Makile is easy to create. But you _must_ use "tabs" as placeholder.
The best way is my favorite editor "vi". Here are Homers example for cygwin
under Windows:

# Makefile for Homer
# written by Daniel Mehrmann

# Compiler
CC = gcc

# Compilerflags
# -mcpu is removed since gcc 3.4
CFLAGS = -O3 -march=i686 -fomit-frame-pointer -pipe

# Objectfiles
OBJ = obj/homer.o obj/common.o obj/console.o obj/compute.o obj/board.o \
	obj/search.o obj/hash.o obj/eval.o obj/wb.o obj/uci.o obj/debug.o \
	obj/windows.o obj/util.o obj/extern.o obj/time.o

homer: obj $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o homer.exe

obj/%.o: Makefile %.c
	$(CC) $(CFLAGS) -c $*.c -o obj/$*.o

	mkdir obj

	rm -rf obj/*.o homer.exe


This page took 0.03 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

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