-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from sorenhein/master
Cumulative update to v2.8.4
- Loading branch information
Showing
20 changed files
with
1,983 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# This is the DDS Makefile for Windows and the tdm-gcc compiler: | ||
# http://tdm-gcc.tdragon.net/ | ||
# It does assume a Unix-like setup for some commands, | ||
# but if you only want to call "make" with the default target, | ||
# you should be OK. | ||
# Changes relative to the MinGW Makefile contributed by Sergio Polini. | ||
|
||
# If you want to compile a single-threaded version, use | ||
# make DDS_THREADS=none | ||
|
||
# If your exact compiler name is not given here, change it. | ||
CC = x86_64-w64-mingw32-g++ | ||
|
||
# Use this one to get Windows multi-threading | ||
# CC_FLAGS = -O3 -flto -mtune=generic | ||
# Use this one to get OpenMP multi-threading | ||
CC_FLAGS = -O3 -flto -fopenmp -mtune=generic -m32 | ||
|
||
LD_FLAGS = \ | ||
-Wl,--subsystem,windows \ | ||
-Wl,--output-def,$(DLLBASE).def \ | ||
-Wl,--dynamicbase \ | ||
-Wl,--nxcompat \ | ||
-Wl,--no-seh \ | ||
-Wl,--enable-stdcall-fixup | ||
|
||
|
||
# These flags are not turned on be default, but DDS should pass them. | ||
# Turn them on below. | ||
WARN_FLAGS = \ | ||
-Wshadow \ | ||
-Wsign-conversion \ | ||
-pedantic -Wall -Wextra \ | ||
-Wcast-align -Wcast-qual \ | ||
-Wctor-dtor-privacy \ | ||
-Wdisabled-optimization \ | ||
-Winit-self \ | ||
-Wlogical-op \ | ||
-Wmissing-declarations \ | ||
-Wmissing-include-dirs \ | ||
-Wnoexcept \ | ||
-Wold-style-cast \ | ||
-Woverloaded-virtual \ | ||
-Wredundant-decls \ | ||
-Wsign-promo \ | ||
-Wstrict-null-sentinel \ | ||
-Wstrict-overflow=1 \ | ||
-Wswitch-default -Wundef \ | ||
-Werror \ | ||
-Wno-unused \ | ||
-Wno-unknown-pragmas \ | ||
-Wno-long-long \ | ||
-Wno-format | ||
|
||
# Here you can turn on warnings. | ||
# CC_FULL_FLAGS = $(CC_FLAGS) | ||
CC_FULL_FLAGS = $(CC_FLAGS) $(WARN_FLAGS) | ||
|
||
LIB_FLAGS = -mdll -m32 | ||
|
||
DLLBASE = dds | ||
DLL = $(DLLBASE).dll | ||
EXPORTER = Exports.def | ||
|
||
VFILE = ddsres | ||
WINDRES_FLAG = -F pe-i386 | ||
|
||
SOURCE_FILES = \ | ||
dds.cpp \ | ||
ABsearch.cpp \ | ||
ABstats.cpp \ | ||
CalcTables.cpp \ | ||
DealerPar.cpp \ | ||
Init.cpp \ | ||
LaterTricks.cpp \ | ||
Moves.cpp \ | ||
Par.cpp \ | ||
PlayAnalyser.cpp \ | ||
PBN.cpp \ | ||
QuickTricks.cpp \ | ||
Scheduler.cpp \ | ||
SolveBoard.cpp \ | ||
SolverIF.cpp \ | ||
Stats.cpp \ | ||
Timer.cpp \ | ||
TransTable.cpp | ||
|
||
O_FILES = $(subst .cpp,.o,$(SOURCE_FILES)) $(VFILE).o | ||
|
||
ifeq ($(DDS_THREADS),none) | ||
DDS_THR = -DDDS_THREADS_SINGLE | ||
else | ||
DDS_THR = | ||
endif | ||
|
||
|
||
mingw: $(O_FILES) | ||
$(CC) $(LIB_FLAGS) $(CC_FULL_FLAGS) $(O_FILES) $(LD_FLAGS) $(EXPORTER) -o $(DLL) | ||
|
||
%.o: %.cpp | ||
$(CC) $(CC_FULL_FLAGS) $(DDS_THR) -c $< | ||
|
||
$(DLLBASE).res: $(DLLBASE).rc | ||
windres $(DLLBASE).rc $(DLLBASE).res | ||
|
||
$(VFILE).o: $(DLLBASE).rc | ||
windres $(WINDRES_FLAG) $(DLLBASE).rc $(VFILE).o | ||
|
||
depend: | ||
makedepend -Y -- $(CC_FLAGS) -- $(SOURCE_FILES) | ||
|
||
clean: | ||
rm -f $(O_FILES) $(DLL) $(DLLBASE).{lib,def,exp,res} | ||
|
||
install: | ||
test -d ../test || mkdir ../test | ||
test -d ../examples || mkdir ../examples | ||
cp $(DLL) $(DLLBASE).def ../test | ||
cp $(DLL) $(DLLBASE).def ../examples | ||
|
||
|
||
# DO NOT DELETE | ||
|
||
dds.o: ../include/dll.h dds.h debug.h ../include/portab.h TransTable.h | ||
dds.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h Init.h | ||
ABsearch.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
ABsearch.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h threadmem.h | ||
ABsearch.o: QuickTricks.h LaterTricks.h ABsearch.h | ||
ABstats.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
ABstats.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
CalcTables.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
CalcTables.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h SolveBoard.h | ||
CalcTables.o: PBN.h | ||
DealerPar.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
DealerPar.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
Init.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
Init.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h threadmem.h Init.h | ||
Init.o: ABsearch.h | ||
LaterTricks.o: dds.h debug.h ../include/portab.h TransTable.h | ||
LaterTricks.o: ../include/dll.h Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
LaterTricks.o: threadmem.h LaterTricks.h | ||
Moves.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
Moves.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h ABsearch.h | ||
Par.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
Par.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
PlayAnalyser.o: dds.h debug.h ../include/portab.h TransTable.h | ||
PlayAnalyser.o: ../include/dll.h Timer.h ABstats.h Moves.h Stats.h | ||
PlayAnalyser.o: Scheduler.h threadmem.h SolverIF.h PBN.h | ||
PBN.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
PBN.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h PBN.h | ||
QuickTricks.o: dds.h debug.h ../include/portab.h TransTable.h | ||
QuickTricks.o: ../include/dll.h Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
QuickTricks.o: threadmem.h QuickTricks.h | ||
Scheduler.o: Scheduler.h dds.h debug.h ../include/portab.h TransTable.h | ||
Scheduler.o: ../include/dll.h Timer.h ABstats.h Moves.h Stats.h | ||
SolveBoard.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
SolveBoard.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h threadmem.h | ||
SolveBoard.o: SolverIF.h SolveBoard.h PBN.h | ||
SolverIF.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
SolverIF.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h Init.h threadmem.h | ||
SolverIF.o: ABsearch.h SolverIF.h | ||
Stats.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
Stats.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
Timer.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
Timer.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h | ||
TransTable.o: dds.h debug.h ../include/portab.h TransTable.h ../include/dll.h | ||
TransTable.o: Timer.h ABstats.h Moves.h Stats.h Scheduler.h |
Oops, something went wrong.