Jfresh windows version for the impatient
Posted: Thu Mar 27, 2014 9:04 pm
attached...
Independent Computer Chess Discussion Forum
https://open-chess.org/
Don't worry, Jfresh it was already portable for MinGWCDaley11 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.
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