X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=Makefile.mingw;h=aed800ef860796b4ff36afe114b8f28ddfdf95f5;hb=24a3c8d1bfca6a746137ff6e6d5658109079e09c;hp=6dff396dcffab9f5ae633d4a33d88139293d7603;hpb=f23883be30d441f9877f8b8ecde0948d9dfdf9c3;p=neverball diff --git a/Makefile.mingw b/Makefile.mingw index 6dff396..aed800e 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -1,11 +1,69 @@ +#----------------------------------------------------------------------------- + +EXT=.exe + include Makefile -OGL_LIBS := -lm -lopengl32 -PNG_LIBS := $(shell libpng-config --libs) -BASE_LIBS := -lSDL -lSDL_image -lintl +MAPC_EXEC= wine $(MAPC_TARG) -LIBS := $(SDL_LIBS) -lSDL_image -lSDL_mixer -lSDL_ttf \ +OGL_LIBS= -lm -lopengl32 +BASE_LIBS= $(LDFLAGS) -lSDL -lSDL_image -lintl +LIBS= $(LDFLAGS) $(SDL_LIBS) -lSDL_image -lSDL_mixer -lSDL_ttf \ $(OGL_LIBS) $(PNG_LIBS) -lintl -cross: - $(MAKE) -f Makefile.mingw EXT=.exe MAPC_EXEC="wine mapc.exe" +.PHONY: native +native: + $(MAKE) -f Makefile.mingw MAPC_EXEC=$(MAPC_TARG) + +#----------------------------------------------------------------------------- +# NSIS setup stuff +#----------------------------------------------------------------------------- + +MAKENSIS= makensis +TODOS= todos +CP= cp + +TEXT_DOCS= \ + doc/AUTHORS \ + doc/MANUAL \ + CHANGES \ + COPYING \ + README + +TXT_DOCS= $(TEXT_DOCS:%=%.txt) + +#----------------------------------------------------------------------------- + +.PHONY: setup +setup: install-dlls convert-text-files all + $(MAKENSIS) -DVERSION=$(VERSION) -nocd scripts/neverball.nsi + +#----------------------------------------------------------------------------- + +.PHONY: install-dlls +install-dlls: install-dlls.sh + sh $< + +install-dlls.sh: + if ! sh scripts/gen-install-dlls.sh > $@; then \ + $(RM) $@; \ + exit 1; \ + fi + @echo -------------------------------------------------------- + @echo You can probably ignore any file-not-found errors above. + @echo Now edit $@ to your needs before restarting make. + @echo -------------------------------------------------------- + @exit 1 + +#----------------------------------------------------------------------------- + +.PHONY: convert-text-files +convert-text-files: $(TXT_DOCS) + find data -name "*.txt" -exec $(TODOS) {} \; + +%.txt: % + $(CP) $< $@ + $(TODOS) $@ + +#----------------------------------------------------------------------------- +