disabled dep-files when building on dos, because it goes into an infinite loop
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 14 Dec 2019 08:54:44 +0000 (10:54 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 14 Dec 2019 08:54:44 +0000 (10:54 +0200)
Makefile.dj

index fe89fcf..b95f943 100644 (file)
@@ -12,7 +12,7 @@ else
 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
 
@@ -27,12 +27,15 @@ $(bin): $(obj) imago anim mikmod
 %.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