Page 1 of 1

Jfresh windows version for the impatient

Posted: Thu Mar 27, 2014 9:04 pm
by User923005
attached...

Re: Jfresh windows version for the impatient

Posted: Fri Mar 28, 2014 4:48 pm
by ChessDrone
Thank you, it works :)

Re: Jfresh windows version for the impatient

Posted: Sat Mar 29, 2014 10:46 pm
by CDaley11
Sorry for not making my engine windows compatible in the first place :(
I only have a mac to test on currently and posix threads are the only threads I know in plain C.
Honestly I'm a little surprised that my engine was noticed so quickly. If you have any feedback at all feel free to let me know. This is just a very basic engine so far and I still have a lot of work/fixes planned for it.

Re: Jfresh windows version for the impatient

Posted: Sat Mar 29, 2014 11:46 pm
by ChessDrone
CDaley11 wrote:Sorry for not making my engine windows compatible in the first place :(
I only have a mac to test on currently and posix threads are the only threads I know in plain C.
Honestly I'm a little surprised that my engine was noticed so quickly. If you have any feedback at all feel free to let me know. This is just a very basic engine so far and I still have a lot of work/fixes planned for it.
Don't worry, Jfresh it was already portable for MinGW
Replace the Makefile or just add this -std=c99 -static -s

to compile in windows type: make mingw
but you need mingw posix threads

Code: Select all

#Makefile for JFresh by Christian Daley
CC = gcc
EXE = JFresh

ifeq ($(BUILD),pgo)
EXE = JFresh_pgo
CFLAGS = -msse4.2 -mpopcnt -O3 -DNDEBUG -std=c99 -static -s

else ifeq ($(BUILD),debug)
EXE = JFresh_debug
CFLAGS = -g -Wall -std=c99

else ifeq ($(BUILD),mingw)
CFLAGS = -O4 -DNDEBUG -std=c99 -static -s

else ifeq ($(BUILD),mac)
CFLAGS = -Ofast -DNDEBUG -s

else
CFLAGS = -Ofast -DNDEBUG -s
endif

all: JFresh

JFresh: main.o Attack.o Bitmask.o Bitscan.o Board.o Debug.o Eval.o Fen.o History.o Killer.o Log.o MagicMoves.o MagicNumberGen.o Move.o MoveGen.o Perft.o Search.o SearchOptions.o SearchResults.o Sort.o Thread.o TT.o Uci.o UciOptions.o Undo.o
	$(CC) $(CFLAGS) -o $(EXE) main.o Attack.o Bitmask.o Bitscan.o Board.o Debug.o Eval.o Fen.o History.o Killer.o Log.o MagicMoves.o MagicNumberGen.o Move.o MoveGen.o Perft.o Search.o SearchOptions.o SearchResults.o Sort.o Thread.o TT.o Uci.o UciOptions.o Undo.o

clean:
	$(RM) JFresh *.o *~

debug:
	make BUILD=debug

pgo:
	make BUILD=pgo

mingw:
	make BUILD=mingw

mac:
	make BUILD=mac