X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=Makefile;h=e24955357563cccfcbab1ac1d8f3aef69d52d264;hp=54e4148188726d625cb54e65b3bf925ff6d1c688;hb=e8b26db00c934d141f16652cb8dcbeae23b17e48;hpb=b0159ee29e4e616e4506d3cea5aee6ecc97aa93a diff --git a/Makefile b/Makefile index 54e4148..e249553 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,15 @@ endif inc = -Isrc -Isrc/scr -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src opt = -O3 -ffast-math -fno-strict-aliasing -dbg = -g -#prof = -pg warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable -def = -DNO_MUSIC + +ifdef RELEASE + dbg = -g + def = -DNDEBUG -DNO_MUSIC +else + def = -DNO_MUSIC +endif +#prof = -pg CC = $(TOOLPREFIX)gcc AR = $(TOOLPREFIX)ar @@ -86,3 +91,7 @@ cleandep: data: @tools/procdata endif + +.PHONY: strip +strip: $(bin) + $(TOOLPREFIX)strip $(bin)