X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=Makefile;h=fbb726ee5c692ca4c2e0bc9a7b553eccc90c9a8e;hb=24a3c8d1bfca6a746137ff6e6d5658109079e09c;hp=60a114953d5ad8f5716b51e7e07d487827a9f8b4;hpb=547e378e214826876548eb9eab016769e45becf3;p=neverball diff --git a/Makefile b/Makefile index 60a1149..fbb726e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,13 @@ +#------------------------------------------------------------------------------- + +#VERSION=1.5.0 +VERSION= $(shell sh scripts/version.sh) + +ifeq ($(VERSION),) + $(error Failed to obtain version for this build.) +endif + #------------------------------------------------------------------------------ # Maybe you need one of these. Maybe you don't. @@ -9,22 +18,18 @@ OGL_LIBS= -lGL -lm #OGL_LIBS= -lm # Think Different -#------------------------------------------------------------------------------ -# Configuration constants -#------------------------------------------------------------------------------ - CFLAGS= -Wall -g -O3 -ansi -pedantic $(shell sdl-config --cflags) #CFLAGS= -Wall -g -O1 -ansi -pedantic $(shell sdl-config --cflags) #CFLAGS= -Wall -pg -ansi $(shell sdl-config --cflags) -CPPFLAGS := -Ishare $(CPPFLAGS) +CPPFLAGS := -DVERSION=\"$(VERSION)\" -Ishare $(CPPFLAGS) SDL_LIBS= $(shell sdl-config --libs) PNG_LIBS= $(shell libpng-config --libs) -MAPC_TARG= mapc -BALL_TARG= neverball -PUTT_TARG= neverputt +MAPC_TARG= mapc$(EXT) +BALL_TARG= neverball$(EXT) +PUTT_TARG= neverputt$(EXT) MAPC_EXEC= ./$(MAPC_TARG) @@ -175,6 +180,9 @@ test : all tools : cd tools && $(MAKE) +mingw-%: + $(MAKE) -f Makefile.mingw $* + #------------------------------------------------------------------------------ # PO update rules #------------------------------------------------------------------------------