Applied my "bidirectional dt scaling" patch. Accordingly, the game can
[neverball] / Makefile.mingw
index 8b4c419..90147a2 100644 (file)
@@ -1,6 +1,7 @@
+export EXT= .exe
+
 #-----------------------------------------------------------------------------
 
-EXT= .exe
 include Makefile
 
 #-----------------------------------------------------------------------------
@@ -39,18 +40,16 @@ TXT_DOCS= $(TEXT_DOCS:%=%.txt)
 .PHONY: setup
 setup: $(INSTALLER)
 
-$(INSTALLER): install-dlls convert-text-files all
+$(INSTALLER): install-dlls convert-text-files all tools
        $(MAKENSIS) $(MAKENSIS_FLAGS) -nocd scripts/neverball.nsi
 
-# This fails on MSYS due to a bug in the shipped version of make (3.79.1).
-# $(INSTALLER): LDFLAGS += -s
-$(INSTALLER): LDFLAGS := $(LDFLAGS) -s
+$(INSTALLER): LDFLAGS := -s $(LDFLAGS)
 
 .PHONY: clean-setup
 clean-setup: clean
-       # $(RM) $(INSTALLER)
        $(RM) install-dlls.sh *.dll $(TXT_DOCS)
        find data -name "*.txt" -exec $(FROMDOS) {} \;
+       cd tools && $(MAKE) clean
 
 #-----------------------------------------------------------------------------
 
@@ -81,3 +80,8 @@ convert-text-files: $(TXT_DOCS)
 
 #-----------------------------------------------------------------------------
 
+.PHONY: tools
+tools:
+       cd tools && $(MAKE)
+
+#-----------------------------------------------------------------------------