bin = demo.exe
asmsrc += cspr/dbgfont.asm cspr/confont.asm
+bindata = data/loading.img
ifeq ($(findstring COMMAND.COM, $(SHELL)), COMMAND.COM)
hostsys = dos
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
%.odj: %.asm
nasm -f coff -o $@ $<
+src/data.odj: src/data.asm $(bindata)
+
ifneq ($(hostsys), dos)
-include $(dep)
endif
data:
@tools/procdata
endif
+
+.PHONY: strip
+strip: $(bin)
+ $(TOOLPREFIX)strip $(bin)