endif
inc = -Isrc -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src -Ilibs/mikmod/include
-#opt = -O3 -ffast-math -fno-strict-aliasing
+opt = -O3 -ffast-math -fno-strict-aliasing
dbg = -g
warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable
%.cof: %.asm
nasm -f coff -o $@ $<
+ifneq ($(hostsys), dos)
-include $(dep)
+endif
%.cof: %.c
$(CC) $(CFLAGS) -o $@ -c $<
%.dep: %.c
+ @echo dep $@
@$(CPP) $(CFLAGS) $< -MM -MT $(@:.dep=.cof) >$@
.PHONY: imago