X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=GNUmakefile;h=0054bbc2c86e53b047f870f01708a5acc9bb719a;hp=a6c99364310fb7ea5afba7287521d10926bdea7e;hb=refs%2Fheads%2Feradbackport;hpb=67c749060592270c9cd8b4f7dafe7d7c7a61a614 diff --git a/GNUmakefile b/GNUmakefile index a6c9936..0054bbc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,5 @@ -src = $(wildcard src/*.c) $(wildcard src/scr/*.c) $(wildcard src/glut/*.c) +src = $(wildcard src/*.c) $(wildcard src/3dgfx/*.c) $(wildcard src/scr/*.c) \ + $(wildcard src/glut/*.c) asmsrc = $(wildcard src/*.asm) obj = $(src:.c=.o) $(asmsrc:.asm=.o) dep = $(obj:.o=.d) @@ -14,7 +15,7 @@ warn = -pedantic -Wall -Wno-unused-variable -Wno-unused-function #opt = -O3 -ffast-math dbg = -g -CFLAGS = $(arch) $(warn) $(opt) -fno-pie -fno-strict-aliasing $(dbg) $(inc) +CFLAGS = $(arch) $(warn) -MMD $(opt) -fno-pie -fno-strict-aliasing $(dbg) $(inc) LDFLAGS = $(arch) -no-pie -Llibs/imago -Llibs/mikmod -limago -lmikmod \ $(sndlib_$(sys)) -lm @@ -56,10 +57,6 @@ $(bin): $(obj) imago mikmod src/data.o: src/data.asm $(bindata) -%.d: %.c - @echo dep $@ - @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ - .PHONY: libs libs: imago anim mikmod