X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=GNUmakefile;h=e794f22fb17eb7613d8c0e7e72144013c90c8000;hb=HEAD;hp=d8479366a983dc162565ace80ab4954d04b2e60b;hpb=ff52b8546c5982313bb47b7bf8aed33fef21e77d;p=deeprace diff --git a/GNUmakefile b/GNUmakefile index d847936..e794f22 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -10,12 +10,14 @@ def = -DMINIGLUT_USE_LIBC inc = -Ilibs -Ilibs/imago -Ilibs/treestor/include -Ilibs/goat3d/include libs = libs/unix/imago.a libs/unix/goat3d.a libs/unix/treestor.a -CFLAGS = $(warn) $(dbg) $(opt) $(inc) $(def) +CFLAGS = $(warn) $(dbg) $(opt) $(inc) $(def) -MMD LDFLAGS = $(libs) -lGL -lGLU -lX11 -lm $(bin): $(obj) libs $(CC) -o $@ $(obj) $(LDFLAGS) +-include $(dep) + .c.o: $(CC) $(CFLAGS) -c $< -o $@ @@ -23,6 +25,10 @@ $(bin): $(obj) libs clean: rm -f $(obj) $(bin) +.PHONY: cleandep +cleandep: + rm -f $(dep) + .PHONY: libs libs: $(MAKE) -C libs @@ -30,3 +36,7 @@ libs: .PHONY: clean-libs clean-libs: $(MAKE) -C libs clean + +.PHONY: data +data: + tools/procdata