From 3861e690af2aacd6aea7f5dfcdf78e5646fd2717 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sat, 16 Jun 2018 22:09:29 -0500 Subject: [PATCH] Add files via upload --- Makefile32 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile32 diff --git a/Makefile32 b/Makefile32 new file mode 100644 index 0000000..b4bd4cc --- /dev/null +++ b/Makefile32 @@ -0,0 +1,30 @@ +DIABLO_SRC=$(wildcard Source/*.cpp) +DIABLO_OBJ=$(DIABLO_SRC:.cpp=.o) + +PKWARE_SRC=$(wildcard 3rdParty/PKWare/*.cpp) +PKWARE_OBJ=$(PKWARE_SRC:.cpp=.o) + +all: devilution.exe + +devilution.exe: $(DIABLO_OBJ) $(PKWARE_OBJ) DiabloUI.lib Storm.lib + mingw32-gcc -L./ -o $@ $^ -lgdi32 -lversion -ldiabloui -lstorm + +%.o: %.cpp + mingw32-gcc -c -fpermissive -o $@ $< + +DiabloUI.lib: DiabloUI.dll DiabloUI/diabloui_gcc.def + mingw32-dlltool -d DiabloUI/diabloui_gcc.def -D DiabloUI.dll -l DiabloUI.lib + +DiabloUI.dll: + echo "Please copy DiabloUI.dll (version 1.09b) here." + +Storm.lib: Storm.dll 3rdParty/Storm/Source/storm_gcc.def + mingw32-dlltool -d 3rdParty/Storm/Source/storm_gcc.def -D Storm.dll -l Storm.lib + +Storm.dll: + echo "Please copy Storm.dll (version 1.09b) here." + +clean: + rm -f $(DIABLO_OBJ) $(PKWARE_OBJ) + +.PHONY: clean all