dep = $(obj:.cof=.dep)
bin = demo.exe
+asmsrc += cspr/dbgfont.asm cspr/confont.asm
+
ifeq ($(findstring COMMAND.COM, $(SHELL)), COMMAND.COM)
hostsys = dos
else
CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc)
LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a
+ifneq ($(hostsys), dos)
+.PHONY: all
+all: data $(bin)
+endif
+
$(bin): $(obj) imago anim mikmod
$(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS)
cleandep:
rm -f $(dep)
+
+.PHONY: data
+data:
+ @tools/procdata
endif