Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. DIABLO_SRC=$(wildcard Source/*.cpp)
  2. DIABLO_OBJ=$(DIABLO_SRC:.cpp=.o)
  3.  
  4. PKWARE_SRC=$(wildcard 3rdParty/PKWare/*.cpp)
  5. PKWARE_OBJ=$(PKWARE_SRC:.cpp=.o)
  6.  
  7. all: devilution.exe
  8.  
  9. devilution.exe: $(DIABLO_OBJ) $(PKWARE_OBJ) DiabloUI.lib Storm.lib
  10. i686-w64-mingw32-gcc -L./ -o $@ $^ -lgdi32 -lversion -lDiabloUI -lStorm
  11.  
  12. %.o: %.cpp
  13. i686-w64-mingw32-gcc -c -fpermissive -o $@ $<
  14.  
  15. DiabloUI.lib: diabloui.dll DiabloUI/diabloui_gcc.def
  16. i686-w64-mingw32-dlltool -d DiabloUI/diabloui_gcc.def -D diabloui.dll -l DiabloUI.lib
  17.  
  18. DiabloUI.dll:
  19. echo "Please copy DiabloUI.dll (version 1.09b) here."
  20. exit 1
  21.  
  22. Storm.lib: Storm.dll 3rdParty/Storm/Source/storm_gcc.def
  23. i686-w64-mingw32-dlltool -d 3rdParty/Storm/Source/storm_gcc.def -D Storm.dll -l Storm.lib
  24.  
  25. Storm.dll:
  26. echo "Please copy Storm.dll (version 1.09b) here."
  27. exit 1
  28.  
  29. clean:
  30. rm -f $(DIABLO_OBJ) $(PKWARE_OBJ)
  31.  
  32. .PHONY: clean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement