From cb8c92629697aade131efa44ed37e1a44e9dc9b5 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 20 Jan 2013 19:41:27 +0100 Subject: [PATCH] Cleaner make output --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5b4139f..b2af83a 100644 --- a/Makefile +++ b/Makefile @@ -14,16 +14,26 @@ OBJ=$(patsubst %.c, %.o, $(SOURCE)) all: debug debug: CFLAGS+=-O0 -ggdb -DDEBUG -debug: $(TARGET) +debug: show_cflags $(TARGET) + @echo '>>>' DEBUG build complete. release: CFLAGS+=-O3 -release: $(TARGET) +release: show_cflags $(TARGET) + @echo '>>>' RELEASE build complete. + +.PHONY show_cflags: + @echo --- Build parameters: ------------------------------------------ + @echo CFLAGS\=$(CFLAGS) + @echo LIBS\=$(LIBS) + @echo ----------------------------------------------------------------- $(TARGET): $(OBJ) $(DEPS) Makefile - $(CC) -o $(TARGET) $(OBJ) $(LIBS) + @echo Linking... + @$(CC) -o $(TARGET) $(OBJ) $(LIBS) %.o: %.c $(DEPS) Makefile - $(CC) -c $(CFLAGS) -o $@ $< $(INCLUDES) + @echo Compiling $< ... + @$(CC) -c $(CFLAGS) -o $@ $< $(INCLUDES) doc: doxygen doxygen.conf