X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=Makefile;h=e24955357563cccfcbab1ac1d8f3aef69d52d264;hp=f3630fa7b4769abf89066ca9dede435be9010a36;hb=c4e738daa32d1949f2d5c6fc62237760fb8aac68;hpb=68f89fa06ae5cfacde9cf8310e97220e5fc05260 diff --git a/Makefile b/Makefile index f3630fa..e249553 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ dep = $(obj:.odj=.dep) bin = demo.exe asmsrc += cspr/dbgfont.asm cspr/confont.asm +bindata = data/loading.img ifeq ($(findstring COMMAND.COM, $(SHELL)), COMMAND.COM) hostsys = dos @@ -15,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 @@ -36,6 +42,8 @@ $(bin): $(obj) imago anim %.odj: %.asm nasm -f coff -o $@ $< +src/data.odj: src/data.asm $(bindata) + ifneq ($(hostsys), dos) -include $(dep) endif @@ -83,3 +91,7 @@ cleandep: data: @tools/procdata endif + +.PHONY: strip +strip: $(bin) + $(TOOLPREFIX)strip $(bin)