Jfresh windows version for the impatient
-
- Posts: 616
- Joined: Thu May 19, 2011 1:35 am
Jfresh windows version for the impatient
attached...
- Attachments
-
- JFresh-master.7z
- source + windows binary (see https://github.com/christiandaley/JFresh for the original project)
- (76.48 KiB) Downloaded 391 times
-
- Posts: 78
- Joined: Mon Jan 28, 2013 10:56 am
Re: Jfresh windows version for the impatient
Thank you, it works
Re: Jfresh windows version for the impatient
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.
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.
-
- Posts: 78
- Joined: Mon Jan 28, 2013 10:56 am
Re: Jfresh windows version for the impatient
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.
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