polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit eb800504a903ce36091a1bd9be34bd7abeb1674a
parent 01d0daa893b97a9cc877f776a3431855c252547a
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 15 Sep 2019 22:32:39 -0700

pretty makefile

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MMakefile | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -44,16 +44,23 @@ include test/test_dae.d sed 's,\(.*\)\.o[ :]*,src/\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ +%.o: %.c + @echo "cc $<" + @$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $< + test/%: test/%.o $(OBJS) - $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + @echo "link $@" + @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ tools/%: tools/%.o $(OBJS) - $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + @echo "link $@" + @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ tools: $(TOOLS) data/models/%.mdl: data/models/%.ply tools/compile-model - ./tools/compile-model $< $@ + @echo "compile-model $@" + @./tools/compile-model $< $@ check: $(TESTS) $(MODELS) ./test/test_dae @@ -61,7 +68,8 @@ check: $(TESTS) $(MODELS) ./test/test_scene $(BIN): main.o $(OBJS) - $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + @echo "link $@" + @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ install: $(BIN) install -d $(PREFIX)/bin