From 29906153cf725a0daf0df27812fc3dd67dde6203 Mon Sep 17 00:00:00 2001 From: Sylae Jiendra Corell Date: Tue, 17 Jun 2014 14:36:17 -0600 Subject: [PATCH] Configure file, partial 64-bit support Thanks to @redsaurus we've now got (partial) 64-bit support. The game and sounds dll now compile under x64. I've also added a simple python configure script (based off of Arancaytar's cburschka/cadence script) to quickly allow changing compilers. Gone are the days of three different Makefiles! --- .gitignore | 6 +- .../{Makefile-DevCpp.win => Makefile} | 13 +- Win32/Blades of Exile/Makefile-Nightly-amd64 | 111 ------------------ Win32/Blades of Exile/Makefile-Nightly-i586 | 111 ------------------ Win32/Blades of Exile/boe.actions.h | 4 +- Win32/Blades of Exile/boe.dlgutil.cpp | 4 +- Win32/Blades of Exile/boe.fileio.cpp | 4 +- Win32/Blades of Exile/boe.main.cpp | 2 +- Win32/Blades of Exile/boe.main.h | 2 +- Win32/Blades of Exile/tools/dlogtool.cpp | 12 +- Win32/Blades of Exile/tools/dlogtool.h | 6 +- Win32/Boesounds DLL/Makefile | 28 +++++ .../sounds/{SND0.WAV => snd0.wav} | Bin .../sounds/{SND1.WAV => snd1.wav} | Bin .../sounds/{SND10.WAV => snd10.wav} | Bin .../sounds/{SND11.WAV => snd11.wav} | Bin .../sounds/{SND12.WAV => snd12.wav} | Bin .../sounds/{SND13.WAV => snd13.wav} | Bin .../sounds/{SND14.WAV => snd14.wav} | Bin .../sounds/{SND15.WAV => snd15.wav} | Bin .../sounds/{SND16.WAV => snd16.wav} | Bin .../sounds/{SND17.WAV => snd17.wav} | Bin .../sounds/{SND18.WAV => snd18.wav} | Bin .../sounds/{SND19.WAV => snd19.wav} | Bin .../sounds/{SND2.WAV => snd2.wav} | Bin .../sounds/{SND20.WAV => snd20.wav} | Bin .../sounds/{SND21.WAV => snd21.wav} | Bin .../sounds/{SND22.WAV => snd22.wav} | Bin .../sounds/{SND23.WAV => snd23.wav} | Bin .../sounds/{SND24.WAV => snd24.wav} | Bin .../sounds/{SND25.WAV => snd25.wav} | Bin .../sounds/{SND26.WAV => snd26.wav} | Bin .../sounds/{SND27.WAV => snd27.wav} | Bin .../sounds/{SND28.WAV => snd28.wav} | Bin .../sounds/{SND29.WAV => snd29.wav} | Bin .../sounds/{SND3.WAV => snd3.wav} | Bin .../sounds/{SND30.WAV => snd30.wav} | Bin .../sounds/{SND31.WAV => snd31.wav} | Bin .../sounds/{SND32.WAV => snd32.wav} | Bin .../sounds/{SND33.WAV => snd33.wav} | Bin .../sounds/{SND34.WAV => snd34.wav} | Bin .../sounds/{SND35.WAV => snd35.wav} | Bin .../sounds/{SND36.WAV => snd36.wav} | Bin .../sounds/{SND37.WAV => snd37.wav} | Bin .../sounds/{SND38.WAV => snd38.wav} | Bin .../sounds/{SND39.WAV => snd39.wav} | Bin .../sounds/{SND4.WAV => snd4.wav} | Bin .../sounds/{SND40.WAV => snd40.wav} | Bin .../sounds/{SND41.WAV => snd41.wav} | Bin .../sounds/{SND42.WAV => snd42.wav} | Bin .../sounds/{SND43.WAV => snd43.wav} | Bin .../sounds/{SND44.WAV => snd44.wav} | Bin .../sounds/{SND45.WAV => snd45.wav} | Bin .../sounds/{SND46.WAV => snd46.wav} | Bin .../sounds/{SND47.WAV => snd47.wav} | Bin .../sounds/{SND48.WAV => snd48.wav} | Bin .../sounds/{SND49.WAV => snd49.wav} | Bin .../sounds/{SND5.WAV => snd5.wav} | Bin .../sounds/{SND50.WAV => snd50.wav} | Bin .../sounds/{SND51.WAV => snd51.wav} | Bin .../sounds/{SND52.WAV => snd52.wav} | Bin .../sounds/{SND53.WAV => snd53.wav} | Bin .../sounds/{SND54.WAV => snd54.wav} | Bin .../sounds/{SND55.WAV => snd55.wav} | Bin .../sounds/{SND56.WAV => snd56.wav} | Bin .../sounds/{SND57.WAV => snd57.wav} | Bin .../sounds/{SND58.WAV => snd58.wav} | Bin .../sounds/{SND59.WAV => snd59.wav} | Bin .../sounds/{SND6.WAV => snd6.wav} | Bin .../sounds/{SND60.WAV => snd60.wav} | Bin .../sounds/{SND61.WAV => snd61.wav} | Bin .../sounds/{SND62.WAV => snd62.wav} | Bin .../sounds/{SND63.WAV => snd63.wav} | Bin .../sounds/{SND64.WAV => snd64.wav} | Bin .../sounds/{SND65.WAV => snd65.wav} | Bin .../sounds/{SND66.WAV => snd66.wav} | Bin .../sounds/{SND67.WAV => snd67.wav} | Bin .../sounds/{SND68.WAV => snd68.wav} | Bin .../sounds/{SND69.WAV => snd69.wav} | Bin .../sounds/{SND7.WAV => snd7.wav} | Bin .../sounds/{SND70.WAV => snd70.wav} | Bin .../sounds/{SND71.WAV => snd71.wav} | Bin .../sounds/{SND72.WAV => snd72.wav} | Bin .../sounds/{SND73.WAV => snd73.wav} | Bin .../sounds/{SND74.WAV => snd74.wav} | Bin .../sounds/{SND75.WAV => snd75.wav} | Bin .../sounds/{SND76.WAV => snd76.wav} | Bin .../sounds/{SND77.WAV => snd77.wav} | Bin .../sounds/{SND78.WAV => snd78.wav} | Bin .../sounds/{SND79.WAV => snd79.wav} | Bin .../sounds/{SND8.WAV => snd8.wav} | Bin .../sounds/{SND80.WAV => snd80.wav} | Bin .../sounds/{SND81.WAV => snd81.wav} | Bin .../sounds/{SND82.WAV => snd82.wav} | Bin .../sounds/{SND83.WAV => snd83.wav} | Bin .../sounds/{SND84.WAV => snd84.wav} | Bin .../sounds/{SND85.WAV => snd85.wav} | Bin .../sounds/{SND86.WAV => snd86.wav} | Bin .../sounds/{SND87.WAV => snd87.wav} | Bin .../sounds/{SND88.WAV => snd88.wav} | Bin .../sounds/{SND89.WAV => snd89.wav} | Bin .../sounds/{SND9.WAV => snd9.wav} | Bin .../sounds/{SND90.WAV => snd90.wav} | Bin .../sounds/{SND91.WAV => snd91.wav} | Bin .../sounds/{SND92.WAV => snd92.wav} | Bin .../sounds/{SND93.WAV => snd93.wav} | Bin .../sounds/{SND94.WAV => snd94.wav} | Bin .../sounds/{SND95.WAV => snd95.wav} | Bin .../sounds/{SND96.WAV => snd96.wav} | Bin .../sounds/{SND97.WAV => snd97.wav} | Bin .../sounds/{SND98.WAV => snd98.wav} | Bin .../sounds/{SND99.WAV => snd99.wav} | Bin Win32/configure | 30 +++++ 113 files changed, 86 insertions(+), 247 deletions(-) rename Win32/Blades of Exile/{Makefile-DevCpp.win => Makefile} (92%) delete mode 100644 Win32/Blades of Exile/Makefile-Nightly-amd64 delete mode 100644 Win32/Blades of Exile/Makefile-Nightly-i586 create mode 100644 Win32/Boesounds DLL/Makefile rename Win32/Boesounds DLL/sounds/{SND0.WAV => snd0.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND1.WAV => snd1.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND10.WAV => snd10.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND11.WAV => snd11.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND12.WAV => snd12.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND13.WAV => snd13.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND14.WAV => snd14.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND15.WAV => snd15.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND16.WAV => snd16.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND17.WAV => snd17.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND18.WAV => snd18.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND19.WAV => snd19.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND2.WAV => snd2.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND20.WAV => snd20.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND21.WAV => snd21.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND22.WAV => snd22.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND23.WAV => snd23.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND24.WAV => snd24.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND25.WAV => snd25.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND26.WAV => snd26.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND27.WAV => snd27.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND28.WAV => snd28.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND29.WAV => snd29.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND3.WAV => snd3.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND30.WAV => snd30.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND31.WAV => snd31.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND32.WAV => snd32.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND33.WAV => snd33.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND34.WAV => snd34.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND35.WAV => snd35.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND36.WAV => snd36.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND37.WAV => snd37.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND38.WAV => snd38.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND39.WAV => snd39.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND4.WAV => snd4.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND40.WAV => snd40.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND41.WAV => snd41.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND42.WAV => snd42.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND43.WAV => snd43.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND44.WAV => snd44.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND45.WAV => snd45.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND46.WAV => snd46.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND47.WAV => snd47.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND48.WAV => snd48.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND49.WAV => snd49.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND5.WAV => snd5.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND50.WAV => snd50.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND51.WAV => snd51.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND52.WAV => snd52.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND53.WAV => snd53.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND54.WAV => snd54.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND55.WAV => snd55.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND56.WAV => snd56.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND57.WAV => snd57.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND58.WAV => snd58.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND59.WAV => snd59.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND6.WAV => snd6.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND60.WAV => snd60.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND61.WAV => snd61.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND62.WAV => snd62.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND63.WAV => snd63.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND64.WAV => snd64.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND65.WAV => snd65.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND66.WAV => snd66.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND67.WAV => snd67.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND68.WAV => snd68.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND69.WAV => snd69.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND7.WAV => snd7.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND70.WAV => snd70.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND71.WAV => snd71.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND72.WAV => snd72.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND73.WAV => snd73.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND74.WAV => snd74.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND75.WAV => snd75.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND76.WAV => snd76.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND77.WAV => snd77.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND78.WAV => snd78.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND79.WAV => snd79.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND8.WAV => snd8.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND80.WAV => snd80.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND81.WAV => snd81.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND82.WAV => snd82.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND83.WAV => snd83.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND84.WAV => snd84.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND85.WAV => snd85.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND86.WAV => snd86.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND87.WAV => snd87.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND88.WAV => snd88.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND89.WAV => snd89.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND9.WAV => snd9.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND90.WAV => snd90.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND91.WAV => snd91.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND92.WAV => snd92.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND93.WAV => snd93.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND94.WAV => snd94.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND95.WAV => snd95.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND96.WAV => snd96.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND97.WAV => snd97.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND98.WAV => snd98.wav} (100%) rename Win32/Boesounds DLL/sounds/{SND99.WAV => snd99.wav} (100%) create mode 100755 Win32/configure diff --git a/.gitignore b/.gitignore index 691610b5..619ef3d8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,12 @@ *.slo *.lo *.o +*.res # Compiled Dynamic libraries *.so *.dylib +*.dll # Compiled Static libraries *.lai @@ -22,4 +24,6 @@ Win32/*/bin Win32/*/obj *.layout *.depend -*blades.ini \ No newline at end of file +*blades.ini + +.config.vars diff --git a/Win32/Blades of Exile/Makefile-DevCpp.win b/Win32/Blades of Exile/Makefile similarity index 92% rename from Win32/Blades of Exile/Makefile-DevCpp.win rename to Win32/Blades of Exile/Makefile index 148582bf..9ac67f4d 100644 --- a/Win32/Blades of Exile/Makefile-DevCpp.win +++ b/Win32/Blades of Exile/Makefile @@ -1,17 +1,16 @@ -# Project: Blades of Exile Win32 -# Makefile created by Dev-C++ 4.9.9.2 +include ../.config.vars -CPP = g++.exe -CC = gcc.exe -WINDRES = windres.exe +CPP = $(PREFIX)g++ +CC = $(PREFIX)gcc +WINDRES = $(PREFIX)windres RES = Blades_of_Exile_private.res OBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) LINKOBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) -LIBS = -mwindows -lwinmm +LIBS = -mwindows -lwinmm -static-libgcc -static-libstdc++ INCS = -I"include" CXXINCS = BIN = "Blades of Exile.exe" -CXXFLAGS = $(CXXINCS) -Wall -O2 +CXXFLAGS = $(CXXINCS) -Wall -O2 -v CFLAGS = $(INCS) -O2 RM = rm -f diff --git a/Win32/Blades of Exile/Makefile-Nightly-amd64 b/Win32/Blades of Exile/Makefile-Nightly-amd64 deleted file mode 100644 index 14314d45..00000000 --- a/Win32/Blades of Exile/Makefile-Nightly-amd64 +++ /dev/null @@ -1,111 +0,0 @@ -# Project: Blades of Exile Win32 -# Makefile created by Dev-C++ 4.9.9.2 - -CPP = amd64-mingw32msvc-g++ -CC = amd64-mingw32msvc-gcc -WINDRES = amd64-mingw32msvc-windres -RES = Blades_of_Exile_private.res -OBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) -LINKOBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) -LIBS = -mwindows -lwinmm -INCS = -I"include" -CXXINCS = -BIN = "Blades of Exile.exe" -CXXFLAGS = $(CXXINCS) -Wall -O2 -CFLAGS = $(INCS) -O2 -RM = rm -f - -.PHONY: all all-before all-after clean clean-custom - -all: all-before "Blades of Exile.exe" all-after - - -clean: clean-custom - ${RM} $(OBJ) $(BIN) - -$(BIN): $(OBJ) - $(CPP) $(LINKOBJ) -o "Blades of Exile.exe" $(LIBS) - -boe.actions.o: boe.actions.cpp - $(CPP) -c boe.actions.cpp -o boe.actions.o $(CXXFLAGS) - -boe.main.o: boe.main.cpp - $(CPP) -c boe.main.cpp -o boe.main.o $(CXXFLAGS) - -boe.combat.o: boe.combat.cpp - $(CPP) -c boe.combat.cpp -o boe.combat.o $(CXXFLAGS) - -boe.dlgutil.o: boe.dlgutil.cpp - $(CPP) -c boe.dlgutil.cpp -o boe.dlgutil.o $(CXXFLAGS) - -boe.fields.o: boe.fields.cpp - $(CPP) -c boe.fields.cpp -o boe.fields.o $(CXXFLAGS) - -boe.fileio.o: boe.fileio.cpp - $(CPP) -c boe.fileio.cpp -o boe.fileio.o $(CXXFLAGS) - -global.o: global.cpp - $(CPP) -c global.cpp -o global.o $(CXXFLAGS) - -boe.graphics.o: boe.graphics.cpp - $(CPP) -c boe.graphics.cpp -o boe.graphics.o $(CXXFLAGS) - -boe.graphutil.o: boe.graphutil.cpp - $(CPP) -c boe.graphutil.cpp -o boe.graphutil.o $(CXXFLAGS) - -boe.infodlg.o: boe.infodlg.cpp - $(CPP) -c boe.infodlg.cpp -o boe.infodlg.o $(CXXFLAGS) - -boe.itemdata.o: boe.itemdata.cpp - $(CPP) -c boe.itemdata.cpp -o boe.itemdata.o $(CXXFLAGS) - -boe.items.o: boe.items.cpp - $(CPP) -c boe.items.cpp -o boe.items.o $(CXXFLAGS) - -boe.locutils.o: boe.locutils.cpp - $(CPP) -c boe.locutils.cpp -o boe.locutils.o $(CXXFLAGS) - -boe.monster.o: boe.monster.cpp - $(CPP) -c boe.monster.cpp -o boe.monster.o $(CXXFLAGS) - -boe.newgraph.o: boe.newgraph.cpp - $(CPP) -c boe.newgraph.cpp -o boe.newgraph.o $(CXXFLAGS) - -boe.party.o: boe.party.cpp - $(CPP) -c boe.party.cpp -o boe.party.o $(CXXFLAGS) - -boe.specials.o: boe.specials.cpp - $(CPP) -c boe.specials.cpp -o boe.specials.o $(CXXFLAGS) - -boe.text.o: boe.text.cpp - $(CPP) -c boe.text.cpp -o boe.text.o $(CXXFLAGS) - -boe.town.o: boe.town.cpp - $(CPP) -c boe.town.cpp -o boe.town.o $(CXXFLAGS) - -globvar.o: globvar.cpp - $(CPP) -c globvar.cpp -o globvar.o $(CXXFLAGS) - -tools/soundtool.o: tools/soundtool.cpp - $(CPP) -c tools/soundtool.cpp -o tools/soundtool.o $(CXXFLAGS) - -tools/soundvars.o: tools/soundvars.cpp - $(CPP) -c tools/soundvars.cpp -o tools/soundvars.o $(CXXFLAGS) - -tools/dlogtool.o: tools/dlogtool.cpp - $(CPP) -c tools/dlogtool.cpp -o tools/dlogtool.o $(CXXFLAGS) - -tools/mathutil.o: tools/mathutil.cpp - $(CPP) -c tools/mathutil.cpp -o tools/mathutil.o $(CXXFLAGS) - -classes/item.o: classes/item.cpp - $(CPP) -c classes/item.cpp -o classes/item.o $(CXXFLAGS) - -classes/location.o: classes/location.cpp - $(CPP) -c classes/location.cpp -o classes/location.o $(CXXFLAGS) - -classes/pc.o: classes/pc.cpp - $(CPP) -c classes/pc.cpp -o classes/pc.o $(CXXFLAGS) - -Blades_of_Exile_private.res: Blades_of_Exile_private.rc BLADES.RC GAMEDLOG.RC GAMESTR.RC - $(WINDRES) -i Blades_of_Exile_private.rc --input-format=rc -o Blades_of_Exile_private.res -O coff -D_INCLUDED_RC diff --git a/Win32/Blades of Exile/Makefile-Nightly-i586 b/Win32/Blades of Exile/Makefile-Nightly-i586 deleted file mode 100644 index 778d3443..00000000 --- a/Win32/Blades of Exile/Makefile-Nightly-i586 +++ /dev/null @@ -1,111 +0,0 @@ -# Project: Blades of Exile Win32 -# Makefile created by Dev-C++ 4.9.9.2 - -CPP = i586-mingw32msvc-g++ -CC = i586-mingw32msvc-gcc -WINDRES = i586-mingw32msvc-windres -RES = Blades_of_Exile_private.res -OBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) -LINKOBJ = boe.actions.o boe.main.o boe.combat.o boe.dlgutil.o boe.fields.o boe.fileio.o global.o boe.graphics.o boe.graphutil.o boe.infodlg.o boe.itemdata.o boe.items.o boe.locutils.o boe.monster.o boe.newgraph.o boe.party.o boe.specials.o boe.text.o boe.town.o globvar.o tools/soundtool.o tools/soundvars.o tools/dlogtool.o tools/mathutil.o classes/item.o classes/location.o classes/pc.o $(RES) -LIBS = -mwindows -lwinmm -INCS = -I"include" -CXXINCS = -BIN = "Blades of Exile.exe" -CXXFLAGS = $(CXXINCS) -Wall -O2 -CFLAGS = $(INCS) -O2 -RM = rm -f - -.PHONY: all all-before all-after clean clean-custom - -all: all-before "Blades of Exile.exe" all-after - - -clean: clean-custom - ${RM} $(OBJ) $(BIN) - -$(BIN): $(OBJ) - $(CPP) $(LINKOBJ) -o "Blades of Exile.exe" $(LIBS) - -boe.actions.o: boe.actions.cpp - $(CPP) -c boe.actions.cpp -o boe.actions.o $(CXXFLAGS) - -boe.main.o: boe.main.cpp - $(CPP) -c boe.main.cpp -o boe.main.o $(CXXFLAGS) - -boe.combat.o: boe.combat.cpp - $(CPP) -c boe.combat.cpp -o boe.combat.o $(CXXFLAGS) - -boe.dlgutil.o: boe.dlgutil.cpp - $(CPP) -c boe.dlgutil.cpp -o boe.dlgutil.o $(CXXFLAGS) - -boe.fields.o: boe.fields.cpp - $(CPP) -c boe.fields.cpp -o boe.fields.o $(CXXFLAGS) - -boe.fileio.o: boe.fileio.cpp - $(CPP) -c boe.fileio.cpp -o boe.fileio.o $(CXXFLAGS) - -global.o: global.cpp - $(CPP) -c global.cpp -o global.o $(CXXFLAGS) - -boe.graphics.o: boe.graphics.cpp - $(CPP) -c boe.graphics.cpp -o boe.graphics.o $(CXXFLAGS) - -boe.graphutil.o: boe.graphutil.cpp - $(CPP) -c boe.graphutil.cpp -o boe.graphutil.o $(CXXFLAGS) - -boe.infodlg.o: boe.infodlg.cpp - $(CPP) -c boe.infodlg.cpp -o boe.infodlg.o $(CXXFLAGS) - -boe.itemdata.o: boe.itemdata.cpp - $(CPP) -c boe.itemdata.cpp -o boe.itemdata.o $(CXXFLAGS) - -boe.items.o: boe.items.cpp - $(CPP) -c boe.items.cpp -o boe.items.o $(CXXFLAGS) - -boe.locutils.o: boe.locutils.cpp - $(CPP) -c boe.locutils.cpp -o boe.locutils.o $(CXXFLAGS) - -boe.monster.o: boe.monster.cpp - $(CPP) -c boe.monster.cpp -o boe.monster.o $(CXXFLAGS) - -boe.newgraph.o: boe.newgraph.cpp - $(CPP) -c boe.newgraph.cpp -o boe.newgraph.o $(CXXFLAGS) - -boe.party.o: boe.party.cpp - $(CPP) -c boe.party.cpp -o boe.party.o $(CXXFLAGS) - -boe.specials.o: boe.specials.cpp - $(CPP) -c boe.specials.cpp -o boe.specials.o $(CXXFLAGS) - -boe.text.o: boe.text.cpp - $(CPP) -c boe.text.cpp -o boe.text.o $(CXXFLAGS) - -boe.town.o: boe.town.cpp - $(CPP) -c boe.town.cpp -o boe.town.o $(CXXFLAGS) - -globvar.o: globvar.cpp - $(CPP) -c globvar.cpp -o globvar.o $(CXXFLAGS) - -tools/soundtool.o: tools/soundtool.cpp - $(CPP) -c tools/soundtool.cpp -o tools/soundtool.o $(CXXFLAGS) - -tools/soundvars.o: tools/soundvars.cpp - $(CPP) -c tools/soundvars.cpp -o tools/soundvars.o $(CXXFLAGS) - -tools/dlogtool.o: tools/dlogtool.cpp - $(CPP) -c tools/dlogtool.cpp -o tools/dlogtool.o $(CXXFLAGS) - -tools/mathutil.o: tools/mathutil.cpp - $(CPP) -c tools/mathutil.cpp -o tools/mathutil.o $(CXXFLAGS) - -classes/item.o: classes/item.cpp - $(CPP) -c classes/item.cpp -o classes/item.o $(CXXFLAGS) - -classes/location.o: classes/location.cpp - $(CPP) -c classes/location.cpp -o classes/location.o $(CXXFLAGS) - -classes/pc.o: classes/pc.cpp - $(CPP) -c classes/pc.cpp -o classes/pc.o $(CXXFLAGS) - -Blades_of_Exile_private.res: Blades_of_Exile_private.rc BLADES.RC GAMEDLOG.RC GAMESTR.RC - $(WINDRES) -i Blades_of_Exile_private.rc --input-format=rc -o Blades_of_Exile_private.res -O coff -D_INCLUDED_RC diff --git a/Win32/Blades of Exile/boe.actions.h b/Win32/Blades of Exile/boe.actions.h index b3c26ca0..3eda914d 100644 --- a/Win32/Blades of Exile/boe.actions.h +++ b/Win32/Blades of Exile/boe.actions.h @@ -11,8 +11,8 @@ void button_flash_rect(RECT to_flash); void handle_menu_spell(short spell_picked,short spell_type) ; void initiate_outdoor_combat(short i); void initiate_redraw(); -Boolean handle_syskeystroke(UINT wParam,LONG lParam,short *handled); -Boolean handle_keystroke(UINT wParam,LONG lParam); +Boolean handle_syskeystroke(WPARAM wParam,LPARAM lParam,short *handled); +Boolean handle_keystroke(WPARAM wParam,LPARAM lParam); void menu_activate( short type); void do_load(); void post_load(); diff --git a/Win32/Blades of Exile/boe.dlgutil.cpp b/Win32/Blades of Exile/boe.dlgutil.cpp index 4509a0e7..bac89047 100644 --- a/Win32/Blades of Exile/boe.dlgutil.cpp +++ b/Win32/Blades of Exile/boe.dlgutil.cpp @@ -444,8 +444,8 @@ void start_talk_mode(short m_num,short personality,unsigned char monst_type,shor 20, mainPtr,(HMENU) 160,(HINSTANCE) store_hInstance,NULL); store_edit_parent = mainPtr; - old_edit_proc = (WNDPROC) (GetWindowLong(talk_edit_box,GWL_WNDPROC)); - SetWindowLong(talk_edit_box,GWL_WNDPROC,(LONG) edit_proc); + old_edit_proc = (WNDPROC) (GetWindowLongPtr(talk_edit_box,GWLP_WNDPROC)); + SetWindowLongPtr(talk_edit_box,GWLP_WNDPROC,(LONG_PTR) edit_proc); SetFocus(talk_edit_box); } diff --git a/Win32/Blades of Exile/boe.fileio.cpp b/Win32/Blades of Exile/boe.fileio.cpp index bdb910f7..b6e7d53b 100644 --- a/Win32/Blades of Exile/boe.fileio.cpp +++ b/Win32/Blades of Exile/boe.fileio.cpp @@ -1933,7 +1933,7 @@ void build_scen_headers() 0,0,0,0, // 7 mainPtr, // 8 (HMENU) 1, // 9 - (HINSTANCE) GetWindowLong(mainPtr, GWL_HINSTANCE), // 10 + (HINSTANCE) GetWindowLongPtr(mainPtr, GWLP_HINSTANCE), // 10 NULL); // 11 ListFiles("", listbox);//First list the scenarios under the scenarios folder @@ -1965,7 +1965,7 @@ void build_scen_headers() for (i = 0; i < count; i++) { - SendMessage(listbox,LB_GETTEXT,i,(LONG) (LPSTR) filename2); + SendMessage(listbox,LB_GETTEXT,i,(LONG_PTR) (LPSTR) filename2); sprintf(filename,"scenarios/%s",filename2); diff --git a/Win32/Blades of Exile/boe.main.cpp b/Win32/Blades of Exile/boe.main.cpp index c2dea738..24cb21f5 100644 --- a/Win32/Blades of Exile/boe.main.cpp +++ b/Win32/Blades of Exile/boe.main.cpp @@ -306,7 +306,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR, int nCmd return msg.wParam; } -long CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; diff --git a/Win32/Blades of Exile/boe.main.h b/Win32/Blades of Exile/boe.main.h index 08043a72..3ee5ec0d 100644 --- a/Win32/Blades of Exile/boe.main.h +++ b/Win32/Blades of Exile/boe.main.h @@ -10,6 +10,6 @@ void load_cursors(); void change_cursor(POINT where_curs); void cursor_go(); void cursor_stay(); -long CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); #endif diff --git a/Win32/Blades of Exile/tools/dlogtool.cpp b/Win32/Blades of Exile/tools/dlogtool.cpp index 36ced277..638b9c8a 100644 --- a/Win32/Blades of Exile/tools/dlogtool.cpp +++ b/Win32/Blades of Exile/tools/dlogtool.cpp @@ -47,10 +47,10 @@ short item_label_loc[NI]; inline void cd_kill_dc(short which_slot,HDC hdc) { fry_dc(dlgs[which_slot],hdc); } -BOOL CALLBACK dummy_dialog_proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); +LRESULT CALLBACK dummy_dialog_proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); LRESULT CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); -long CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); void cd_init_dialogs() { @@ -70,7 +70,7 @@ void cd_init_dialogs() edit_proc = fresh_edit_proc; } -long CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { if(hwnd == talk_edit_box){ switch (message) { @@ -542,7 +542,7 @@ short cd_create_dialog(short dlog_num, HWND parent) return 0; } -BOOL CALLBACK dummy_dialog_proc (HWND hDlg, UINT message, WPARAM, LPARAM) +LRESULT CALLBACK dummy_dialog_proc (HWND hDlg, UINT message, WPARAM, LPARAM) { short i,j,k,free_slot = -1,free_item = -1; int type, flag; @@ -728,8 +728,8 @@ BOOL CALLBACK dummy_dialog_proc (HWND hDlg, UINT message, WPARAM, LPARAM) item_rect[free_item].bottom - item_rect[free_item].top, dlgs[free_slot],(HMENU) 150,(HINSTANCE) store_hInstance,NULL); store_edit_parent = dlgs[free_slot]; - old_edit_proc = (WNDPROC) (GetWindowLong(edit_box,GWL_WNDPROC)); - SetWindowLong(edit_box,GWL_WNDPROC,(LONG) edit_proc); + old_edit_proc = (WNDPROC) (GetWindowLongPtr(edit_box,GWLP_WNDPROC)); + SetWindowLongPtr(edit_box,GWLP_WNDPROC,(LONG_PTR) edit_proc); break; } win_height = max(win_height, item_rect[free_item].bottom + 28 + 6); diff --git a/Win32/Blades of Exile/tools/dlogtool.h b/Win32/Blades of Exile/tools/dlogtool.h index c69e9d06..f6b6e2a2 100644 --- a/Win32/Blades of Exile/tools/dlogtool.h +++ b/Win32/Blades of Exile/tools/dlogtool.h @@ -14,9 +14,9 @@ short cd_create_dialog_parent_num(short dlog_num,short parent); void cd_init_dialogs(); short cd_create_dialog(short dlog_num,HWND parent) ; short cd_kill_dialog(short dlog_num,short parent_message); -short cd_process_click(HWND window,POINT the_point, UINT wparam, LONG lparam,short *item); -short cd_process_syskeystroke(HWND window,UINT wparam, LONG lparam,short *item); -short cd_process_keystroke(HWND window,UINT wparam, LONG lparam,short *item); +short cd_process_click(HWND window,POINT the_point, WPARAM wparam, LPARAM lparam,short *item); +short cd_process_syskeystroke(HWND window,WPARAM wparam, LPARAM lparam,short *item); +short cd_process_keystroke(HWND window,WPARAM wparam, LPARAM lparam,short *item); void cd_attach_key(short dlog_num,short item_num,char key); void cd_set_pict(short dlog_num, short item_num, short pict_num); void cd_activate_item(short dlog_num, short item_num, short status); diff --git a/Win32/Boesounds DLL/Makefile b/Win32/Boesounds DLL/Makefile new file mode 100644 index 00000000..58cadbb6 --- /dev/null +++ b/Win32/Boesounds DLL/Makefile @@ -0,0 +1,28 @@ +include ../.config.vars + +CPP = $(PREFIX)g++ +CC = $(PREFIX)gcc +WINDRES = $(PREFIX)windres +RES = Blades_of_Exile_private.res +INCS = -I"include" +CXXINCS = +BIN = boesounds.dll +CXXFLAGS = $(CXXINCS) -Wall -O2 -g +RM = rm -f + +.PHONY: all all-before all-after clean clean-custom + +all: all-before boesounds.dll all-after + + +clean: clean-custom + ${RM} dllmain.o $(BIN) + +$(BIN): BOESOUNDS.res dllmain.o + $(CPP) -shared -Wl,--dll dllmain.o BOESOUNDS.res -o boesounds.dll + +dllmain.o: dllmain.cpp + $(CPP) -c dllmain.cpp -o dllmain.o $(CXXFLAGS) + +BOESOUNDS.res: BOESOUNDS.RC + $(WINDRES) -J rc -O coff -i BOESOUNDS.RC -o BOESOUNDS.res diff --git a/Win32/Boesounds DLL/sounds/SND0.WAV b/Win32/Boesounds DLL/sounds/snd0.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND0.WAV rename to Win32/Boesounds DLL/sounds/snd0.wav diff --git a/Win32/Boesounds DLL/sounds/SND1.WAV b/Win32/Boesounds DLL/sounds/snd1.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND1.WAV rename to Win32/Boesounds DLL/sounds/snd1.wav diff --git a/Win32/Boesounds DLL/sounds/SND10.WAV b/Win32/Boesounds DLL/sounds/snd10.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND10.WAV rename to Win32/Boesounds DLL/sounds/snd10.wav diff --git a/Win32/Boesounds DLL/sounds/SND11.WAV b/Win32/Boesounds DLL/sounds/snd11.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND11.WAV rename to Win32/Boesounds DLL/sounds/snd11.wav diff --git a/Win32/Boesounds DLL/sounds/SND12.WAV b/Win32/Boesounds DLL/sounds/snd12.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND12.WAV rename to Win32/Boesounds DLL/sounds/snd12.wav diff --git a/Win32/Boesounds DLL/sounds/SND13.WAV b/Win32/Boesounds DLL/sounds/snd13.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND13.WAV rename to Win32/Boesounds DLL/sounds/snd13.wav diff --git a/Win32/Boesounds DLL/sounds/SND14.WAV b/Win32/Boesounds DLL/sounds/snd14.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND14.WAV rename to Win32/Boesounds DLL/sounds/snd14.wav diff --git a/Win32/Boesounds DLL/sounds/SND15.WAV b/Win32/Boesounds DLL/sounds/snd15.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND15.WAV rename to Win32/Boesounds DLL/sounds/snd15.wav diff --git a/Win32/Boesounds DLL/sounds/SND16.WAV b/Win32/Boesounds DLL/sounds/snd16.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND16.WAV rename to Win32/Boesounds DLL/sounds/snd16.wav diff --git a/Win32/Boesounds DLL/sounds/SND17.WAV b/Win32/Boesounds DLL/sounds/snd17.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND17.WAV rename to Win32/Boesounds DLL/sounds/snd17.wav diff --git a/Win32/Boesounds DLL/sounds/SND18.WAV b/Win32/Boesounds DLL/sounds/snd18.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND18.WAV rename to Win32/Boesounds DLL/sounds/snd18.wav diff --git a/Win32/Boesounds DLL/sounds/SND19.WAV b/Win32/Boesounds DLL/sounds/snd19.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND19.WAV rename to Win32/Boesounds DLL/sounds/snd19.wav diff --git a/Win32/Boesounds DLL/sounds/SND2.WAV b/Win32/Boesounds DLL/sounds/snd2.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND2.WAV rename to Win32/Boesounds DLL/sounds/snd2.wav diff --git a/Win32/Boesounds DLL/sounds/SND20.WAV b/Win32/Boesounds DLL/sounds/snd20.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND20.WAV rename to Win32/Boesounds DLL/sounds/snd20.wav diff --git a/Win32/Boesounds DLL/sounds/SND21.WAV b/Win32/Boesounds DLL/sounds/snd21.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND21.WAV rename to Win32/Boesounds DLL/sounds/snd21.wav diff --git a/Win32/Boesounds DLL/sounds/SND22.WAV b/Win32/Boesounds DLL/sounds/snd22.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND22.WAV rename to Win32/Boesounds DLL/sounds/snd22.wav diff --git a/Win32/Boesounds DLL/sounds/SND23.WAV b/Win32/Boesounds DLL/sounds/snd23.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND23.WAV rename to Win32/Boesounds DLL/sounds/snd23.wav diff --git a/Win32/Boesounds DLL/sounds/SND24.WAV b/Win32/Boesounds DLL/sounds/snd24.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND24.WAV rename to Win32/Boesounds DLL/sounds/snd24.wav diff --git a/Win32/Boesounds DLL/sounds/SND25.WAV b/Win32/Boesounds DLL/sounds/snd25.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND25.WAV rename to Win32/Boesounds DLL/sounds/snd25.wav diff --git a/Win32/Boesounds DLL/sounds/SND26.WAV b/Win32/Boesounds DLL/sounds/snd26.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND26.WAV rename to Win32/Boesounds DLL/sounds/snd26.wav diff --git a/Win32/Boesounds DLL/sounds/SND27.WAV b/Win32/Boesounds DLL/sounds/snd27.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND27.WAV rename to Win32/Boesounds DLL/sounds/snd27.wav diff --git a/Win32/Boesounds DLL/sounds/SND28.WAV b/Win32/Boesounds DLL/sounds/snd28.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND28.WAV rename to Win32/Boesounds DLL/sounds/snd28.wav diff --git a/Win32/Boesounds DLL/sounds/SND29.WAV b/Win32/Boesounds DLL/sounds/snd29.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND29.WAV rename to Win32/Boesounds DLL/sounds/snd29.wav diff --git a/Win32/Boesounds DLL/sounds/SND3.WAV b/Win32/Boesounds DLL/sounds/snd3.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND3.WAV rename to Win32/Boesounds DLL/sounds/snd3.wav diff --git a/Win32/Boesounds DLL/sounds/SND30.WAV b/Win32/Boesounds DLL/sounds/snd30.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND30.WAV rename to Win32/Boesounds DLL/sounds/snd30.wav diff --git a/Win32/Boesounds DLL/sounds/SND31.WAV b/Win32/Boesounds DLL/sounds/snd31.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND31.WAV rename to Win32/Boesounds DLL/sounds/snd31.wav diff --git a/Win32/Boesounds DLL/sounds/SND32.WAV b/Win32/Boesounds DLL/sounds/snd32.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND32.WAV rename to Win32/Boesounds DLL/sounds/snd32.wav diff --git a/Win32/Boesounds DLL/sounds/SND33.WAV b/Win32/Boesounds DLL/sounds/snd33.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND33.WAV rename to Win32/Boesounds DLL/sounds/snd33.wav diff --git a/Win32/Boesounds DLL/sounds/SND34.WAV b/Win32/Boesounds DLL/sounds/snd34.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND34.WAV rename to Win32/Boesounds DLL/sounds/snd34.wav diff --git a/Win32/Boesounds DLL/sounds/SND35.WAV b/Win32/Boesounds DLL/sounds/snd35.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND35.WAV rename to Win32/Boesounds DLL/sounds/snd35.wav diff --git a/Win32/Boesounds DLL/sounds/SND36.WAV b/Win32/Boesounds DLL/sounds/snd36.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND36.WAV rename to Win32/Boesounds DLL/sounds/snd36.wav diff --git a/Win32/Boesounds DLL/sounds/SND37.WAV b/Win32/Boesounds DLL/sounds/snd37.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND37.WAV rename to Win32/Boesounds DLL/sounds/snd37.wav diff --git a/Win32/Boesounds DLL/sounds/SND38.WAV b/Win32/Boesounds DLL/sounds/snd38.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND38.WAV rename to Win32/Boesounds DLL/sounds/snd38.wav diff --git a/Win32/Boesounds DLL/sounds/SND39.WAV b/Win32/Boesounds DLL/sounds/snd39.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND39.WAV rename to Win32/Boesounds DLL/sounds/snd39.wav diff --git a/Win32/Boesounds DLL/sounds/SND4.WAV b/Win32/Boesounds DLL/sounds/snd4.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND4.WAV rename to Win32/Boesounds DLL/sounds/snd4.wav diff --git a/Win32/Boesounds DLL/sounds/SND40.WAV b/Win32/Boesounds DLL/sounds/snd40.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND40.WAV rename to Win32/Boesounds DLL/sounds/snd40.wav diff --git a/Win32/Boesounds DLL/sounds/SND41.WAV b/Win32/Boesounds DLL/sounds/snd41.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND41.WAV rename to Win32/Boesounds DLL/sounds/snd41.wav diff --git a/Win32/Boesounds DLL/sounds/SND42.WAV b/Win32/Boesounds DLL/sounds/snd42.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND42.WAV rename to Win32/Boesounds DLL/sounds/snd42.wav diff --git a/Win32/Boesounds DLL/sounds/SND43.WAV b/Win32/Boesounds DLL/sounds/snd43.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND43.WAV rename to Win32/Boesounds DLL/sounds/snd43.wav diff --git a/Win32/Boesounds DLL/sounds/SND44.WAV b/Win32/Boesounds DLL/sounds/snd44.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND44.WAV rename to Win32/Boesounds DLL/sounds/snd44.wav diff --git a/Win32/Boesounds DLL/sounds/SND45.WAV b/Win32/Boesounds DLL/sounds/snd45.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND45.WAV rename to Win32/Boesounds DLL/sounds/snd45.wav diff --git a/Win32/Boesounds DLL/sounds/SND46.WAV b/Win32/Boesounds DLL/sounds/snd46.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND46.WAV rename to Win32/Boesounds DLL/sounds/snd46.wav diff --git a/Win32/Boesounds DLL/sounds/SND47.WAV b/Win32/Boesounds DLL/sounds/snd47.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND47.WAV rename to Win32/Boesounds DLL/sounds/snd47.wav diff --git a/Win32/Boesounds DLL/sounds/SND48.WAV b/Win32/Boesounds DLL/sounds/snd48.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND48.WAV rename to Win32/Boesounds DLL/sounds/snd48.wav diff --git a/Win32/Boesounds DLL/sounds/SND49.WAV b/Win32/Boesounds DLL/sounds/snd49.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND49.WAV rename to Win32/Boesounds DLL/sounds/snd49.wav diff --git a/Win32/Boesounds DLL/sounds/SND5.WAV b/Win32/Boesounds DLL/sounds/snd5.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND5.WAV rename to Win32/Boesounds DLL/sounds/snd5.wav diff --git a/Win32/Boesounds DLL/sounds/SND50.WAV b/Win32/Boesounds DLL/sounds/snd50.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND50.WAV rename to Win32/Boesounds DLL/sounds/snd50.wav diff --git a/Win32/Boesounds DLL/sounds/SND51.WAV b/Win32/Boesounds DLL/sounds/snd51.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND51.WAV rename to Win32/Boesounds DLL/sounds/snd51.wav diff --git a/Win32/Boesounds DLL/sounds/SND52.WAV b/Win32/Boesounds DLL/sounds/snd52.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND52.WAV rename to Win32/Boesounds DLL/sounds/snd52.wav diff --git a/Win32/Boesounds DLL/sounds/SND53.WAV b/Win32/Boesounds DLL/sounds/snd53.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND53.WAV rename to Win32/Boesounds DLL/sounds/snd53.wav diff --git a/Win32/Boesounds DLL/sounds/SND54.WAV b/Win32/Boesounds DLL/sounds/snd54.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND54.WAV rename to Win32/Boesounds DLL/sounds/snd54.wav diff --git a/Win32/Boesounds DLL/sounds/SND55.WAV b/Win32/Boesounds DLL/sounds/snd55.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND55.WAV rename to Win32/Boesounds DLL/sounds/snd55.wav diff --git a/Win32/Boesounds DLL/sounds/SND56.WAV b/Win32/Boesounds DLL/sounds/snd56.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND56.WAV rename to Win32/Boesounds DLL/sounds/snd56.wav diff --git a/Win32/Boesounds DLL/sounds/SND57.WAV b/Win32/Boesounds DLL/sounds/snd57.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND57.WAV rename to Win32/Boesounds DLL/sounds/snd57.wav diff --git a/Win32/Boesounds DLL/sounds/SND58.WAV b/Win32/Boesounds DLL/sounds/snd58.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND58.WAV rename to Win32/Boesounds DLL/sounds/snd58.wav diff --git a/Win32/Boesounds DLL/sounds/SND59.WAV b/Win32/Boesounds DLL/sounds/snd59.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND59.WAV rename to Win32/Boesounds DLL/sounds/snd59.wav diff --git a/Win32/Boesounds DLL/sounds/SND6.WAV b/Win32/Boesounds DLL/sounds/snd6.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND6.WAV rename to Win32/Boesounds DLL/sounds/snd6.wav diff --git a/Win32/Boesounds DLL/sounds/SND60.WAV b/Win32/Boesounds DLL/sounds/snd60.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND60.WAV rename to Win32/Boesounds DLL/sounds/snd60.wav diff --git a/Win32/Boesounds DLL/sounds/SND61.WAV b/Win32/Boesounds DLL/sounds/snd61.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND61.WAV rename to Win32/Boesounds DLL/sounds/snd61.wav diff --git a/Win32/Boesounds DLL/sounds/SND62.WAV b/Win32/Boesounds DLL/sounds/snd62.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND62.WAV rename to Win32/Boesounds DLL/sounds/snd62.wav diff --git a/Win32/Boesounds DLL/sounds/SND63.WAV b/Win32/Boesounds DLL/sounds/snd63.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND63.WAV rename to Win32/Boesounds DLL/sounds/snd63.wav diff --git a/Win32/Boesounds DLL/sounds/SND64.WAV b/Win32/Boesounds DLL/sounds/snd64.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND64.WAV rename to Win32/Boesounds DLL/sounds/snd64.wav diff --git a/Win32/Boesounds DLL/sounds/SND65.WAV b/Win32/Boesounds DLL/sounds/snd65.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND65.WAV rename to Win32/Boesounds DLL/sounds/snd65.wav diff --git a/Win32/Boesounds DLL/sounds/SND66.WAV b/Win32/Boesounds DLL/sounds/snd66.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND66.WAV rename to Win32/Boesounds DLL/sounds/snd66.wav diff --git a/Win32/Boesounds DLL/sounds/SND67.WAV b/Win32/Boesounds DLL/sounds/snd67.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND67.WAV rename to Win32/Boesounds DLL/sounds/snd67.wav diff --git a/Win32/Boesounds DLL/sounds/SND68.WAV b/Win32/Boesounds DLL/sounds/snd68.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND68.WAV rename to Win32/Boesounds DLL/sounds/snd68.wav diff --git a/Win32/Boesounds DLL/sounds/SND69.WAV b/Win32/Boesounds DLL/sounds/snd69.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND69.WAV rename to Win32/Boesounds DLL/sounds/snd69.wav diff --git a/Win32/Boesounds DLL/sounds/SND7.WAV b/Win32/Boesounds DLL/sounds/snd7.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND7.WAV rename to Win32/Boesounds DLL/sounds/snd7.wav diff --git a/Win32/Boesounds DLL/sounds/SND70.WAV b/Win32/Boesounds DLL/sounds/snd70.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND70.WAV rename to Win32/Boesounds DLL/sounds/snd70.wav diff --git a/Win32/Boesounds DLL/sounds/SND71.WAV b/Win32/Boesounds DLL/sounds/snd71.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND71.WAV rename to Win32/Boesounds DLL/sounds/snd71.wav diff --git a/Win32/Boesounds DLL/sounds/SND72.WAV b/Win32/Boesounds DLL/sounds/snd72.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND72.WAV rename to Win32/Boesounds DLL/sounds/snd72.wav diff --git a/Win32/Boesounds DLL/sounds/SND73.WAV b/Win32/Boesounds DLL/sounds/snd73.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND73.WAV rename to Win32/Boesounds DLL/sounds/snd73.wav diff --git a/Win32/Boesounds DLL/sounds/SND74.WAV b/Win32/Boesounds DLL/sounds/snd74.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND74.WAV rename to Win32/Boesounds DLL/sounds/snd74.wav diff --git a/Win32/Boesounds DLL/sounds/SND75.WAV b/Win32/Boesounds DLL/sounds/snd75.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND75.WAV rename to Win32/Boesounds DLL/sounds/snd75.wav diff --git a/Win32/Boesounds DLL/sounds/SND76.WAV b/Win32/Boesounds DLL/sounds/snd76.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND76.WAV rename to Win32/Boesounds DLL/sounds/snd76.wav diff --git a/Win32/Boesounds DLL/sounds/SND77.WAV b/Win32/Boesounds DLL/sounds/snd77.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND77.WAV rename to Win32/Boesounds DLL/sounds/snd77.wav diff --git a/Win32/Boesounds DLL/sounds/SND78.WAV b/Win32/Boesounds DLL/sounds/snd78.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND78.WAV rename to Win32/Boesounds DLL/sounds/snd78.wav diff --git a/Win32/Boesounds DLL/sounds/SND79.WAV b/Win32/Boesounds DLL/sounds/snd79.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND79.WAV rename to Win32/Boesounds DLL/sounds/snd79.wav diff --git a/Win32/Boesounds DLL/sounds/SND8.WAV b/Win32/Boesounds DLL/sounds/snd8.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND8.WAV rename to Win32/Boesounds DLL/sounds/snd8.wav diff --git a/Win32/Boesounds DLL/sounds/SND80.WAV b/Win32/Boesounds DLL/sounds/snd80.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND80.WAV rename to Win32/Boesounds DLL/sounds/snd80.wav diff --git a/Win32/Boesounds DLL/sounds/SND81.WAV b/Win32/Boesounds DLL/sounds/snd81.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND81.WAV rename to Win32/Boesounds DLL/sounds/snd81.wav diff --git a/Win32/Boesounds DLL/sounds/SND82.WAV b/Win32/Boesounds DLL/sounds/snd82.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND82.WAV rename to Win32/Boesounds DLL/sounds/snd82.wav diff --git a/Win32/Boesounds DLL/sounds/SND83.WAV b/Win32/Boesounds DLL/sounds/snd83.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND83.WAV rename to Win32/Boesounds DLL/sounds/snd83.wav diff --git a/Win32/Boesounds DLL/sounds/SND84.WAV b/Win32/Boesounds DLL/sounds/snd84.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND84.WAV rename to Win32/Boesounds DLL/sounds/snd84.wav diff --git a/Win32/Boesounds DLL/sounds/SND85.WAV b/Win32/Boesounds DLL/sounds/snd85.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND85.WAV rename to Win32/Boesounds DLL/sounds/snd85.wav diff --git a/Win32/Boesounds DLL/sounds/SND86.WAV b/Win32/Boesounds DLL/sounds/snd86.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND86.WAV rename to Win32/Boesounds DLL/sounds/snd86.wav diff --git a/Win32/Boesounds DLL/sounds/SND87.WAV b/Win32/Boesounds DLL/sounds/snd87.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND87.WAV rename to Win32/Boesounds DLL/sounds/snd87.wav diff --git a/Win32/Boesounds DLL/sounds/SND88.WAV b/Win32/Boesounds DLL/sounds/snd88.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND88.WAV rename to Win32/Boesounds DLL/sounds/snd88.wav diff --git a/Win32/Boesounds DLL/sounds/SND89.WAV b/Win32/Boesounds DLL/sounds/snd89.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND89.WAV rename to Win32/Boesounds DLL/sounds/snd89.wav diff --git a/Win32/Boesounds DLL/sounds/SND9.WAV b/Win32/Boesounds DLL/sounds/snd9.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND9.WAV rename to Win32/Boesounds DLL/sounds/snd9.wav diff --git a/Win32/Boesounds DLL/sounds/SND90.WAV b/Win32/Boesounds DLL/sounds/snd90.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND90.WAV rename to Win32/Boesounds DLL/sounds/snd90.wav diff --git a/Win32/Boesounds DLL/sounds/SND91.WAV b/Win32/Boesounds DLL/sounds/snd91.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND91.WAV rename to Win32/Boesounds DLL/sounds/snd91.wav diff --git a/Win32/Boesounds DLL/sounds/SND92.WAV b/Win32/Boesounds DLL/sounds/snd92.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND92.WAV rename to Win32/Boesounds DLL/sounds/snd92.wav diff --git a/Win32/Boesounds DLL/sounds/SND93.WAV b/Win32/Boesounds DLL/sounds/snd93.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND93.WAV rename to Win32/Boesounds DLL/sounds/snd93.wav diff --git a/Win32/Boesounds DLL/sounds/SND94.WAV b/Win32/Boesounds DLL/sounds/snd94.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND94.WAV rename to Win32/Boesounds DLL/sounds/snd94.wav diff --git a/Win32/Boesounds DLL/sounds/SND95.WAV b/Win32/Boesounds DLL/sounds/snd95.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND95.WAV rename to Win32/Boesounds DLL/sounds/snd95.wav diff --git a/Win32/Boesounds DLL/sounds/SND96.WAV b/Win32/Boesounds DLL/sounds/snd96.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND96.WAV rename to Win32/Boesounds DLL/sounds/snd96.wav diff --git a/Win32/Boesounds DLL/sounds/SND97.WAV b/Win32/Boesounds DLL/sounds/snd97.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND97.WAV rename to Win32/Boesounds DLL/sounds/snd97.wav diff --git a/Win32/Boesounds DLL/sounds/SND98.WAV b/Win32/Boesounds DLL/sounds/snd98.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND98.WAV rename to Win32/Boesounds DLL/sounds/snd98.wav diff --git a/Win32/Boesounds DLL/sounds/SND99.WAV b/Win32/Boesounds DLL/sounds/snd99.wav similarity index 100% rename from Win32/Boesounds DLL/sounds/SND99.WAV rename to Win32/Boesounds DLL/sounds/snd99.wav diff --git a/Win32/configure b/Win32/configure new file mode 100755 index 00000000..43181688 --- /dev/null +++ b/Win32/configure @@ -0,0 +1,30 @@ +#!/usr/bin/env python +import argparse +import os +import shutil +import subprocess + +def main(): + args = parser().parse_args() + src_path = os.path.dirname(__file__) or '.' + +# shutil.copy(os.path.realpath(src_path) + '/Makefile.in', os.getcwd() + '/Makefile') + + open('.config.vars', 'w+').write( +'''PREFIX={prefix} +'''.format(**vars(args))) + + +def parser(): + parser = argparse.ArgumentParser( + prog='configure', + description='''Configure cboe automated build system. +''' + ) + parser.add_argument( + '-c', '--compiler', type=str, + help='Compiler prefix, such as i686-w64-mingw32-', dest='prefix', metavar='PREFIX', default='' + ) + return parser + +main()