X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=Makefile;h=0c22aefb3fa9bcb1696e9a9c507b3dde989eaf00;hb=2bcba5d4d363ba2f58c9d3f22aba6a455522f499;hp=a986996e071e54607bb9958055c936afaeec0364;hpb=16f7940a92e1df1d463bd34f7f178395e37e4a27;p=rocksndiamonds.git diff --git a/Makefile b/Makefile index a986996e..0c22aefb 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,11 @@ CROSS_PATH_WIN32=/usr/local/cross-tools/i386-mingw32msvc SRC_DIR = src MAKE_CMD = $(MAKE) -C $(SRC_DIR) +# DEFAULT_TARGET = x11 +DEFAULT_TARGET = sdl + all: - @$(MAKE_CMD) TARGET=x11 + @$(MAKE_CMD) TARGET=$(DEFAULT_TARGET) x11: @$(MAKE_CMD) TARGET=x11 @@ -84,8 +87,20 @@ clean: # development only stuff # #-----------------------------------------------------------------------------# +auto-conf: + @$(MAKE_CMD) auto-conf + run: - @$(MAKE_CMD) TARGET=x11 && ./rocksndiamonds --verbose + @$(MAKE_CMD) TARGET=$(DEFAULT_TARGET) && ./rocksndiamonds --verbose + +gdb: + @$(MAKE_CMD) TARGET=$(DEFAULT_TARGET) && gdb ./rocksndiamonds + +enginetest: + ./Scripts/make_enginetest.sh + +enginetestfast: + ./Scripts/make_enginetest.sh fast backup: ./Scripts/make_backup.sh src @@ -123,11 +138,20 @@ upload-macosx: dist-clean: @$(MAKE_CMD) dist-clean +dist-build-unix: + @BUILD_DIST=TRUE $(MAKE) x11 + +dist-build-win32: + @BUILD_DIST=TRUE $(MAKE) cross-win32 + +dist-build-msdos: + @BUILD_DIST=TRUE $(MAKE) cross-msdos + dist-build-all: $(MAKE) clean - @BUILD_DIST=TRUE $(MAKE) x11 ; $(MAKE) dist-clean - @BUILD_DIST=TRUE $(MAKE) cross-win32 ; $(MAKE) dist-clean - @BUILD_DIST=TRUE $(MAKE) cross-msdos ; $(MAKE) dist-clean + $(MAKE) dist-build-unix ; $(MAKE) dist-clean + $(MAKE) dist-build-win32 ; $(MAKE) dist-clean + $(MAKE) dist-build-msdos ; $(MAKE) dist-clean dist-all: dist-build-all dist-unix dist-msdos dist-win32 dist-macosx