From 3398fc6c4188104048f99b650a6cb90beda9b6ed Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 14 Dec 2019 10:54:44 +0200 Subject: [PATCH] disabled dep-files when building on dos, because it goes into an infinite loop --- Makefile.dj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.dj b/Makefile.dj index fe89fcf..b95f943 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -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 -- 1.7.10.4