X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=GNUmakefile;h=e794f22fb17eb7613d8c0e7e72144013c90c8000;hb=f2fc78720fec7e26098a88bfc47613d4d1d4e1c6;hp=f62772afab983f711201ee5d4f97cc0f8901deb9;hpb=2d5e5d49191bf0c9d89960ba683541d6b1e7dc92;p=deeprace diff --git a/GNUmakefile b/GNUmakefile index f62772a..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