From 5d3197b8abc329375036f32274b86a65f605064f Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 25 Apr 2018 14:05:28 +0100 Subject: [PATCH] [build] quieten build of C files --- Makefile.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 02b75dd..34b7fe4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -208,6 +208,14 @@ endif sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $* : Makefile ,g' < $*.$$$$ > $*.d; \ $(RM) $*.$$$$ +%.o: %.c + @echo " [CXX] $<" + $(V) $(CC) -c $(INCLUDES) $(CFLAGS) -o $@ $< + @echo " [DEP] $<" + $(V) $(CC) -MM -MT $(subst .cc,.o,$<) $(INCLUDES) $(TEST_INCLUDES) $(CFLAGS) $< > $*.$$$$; \ + sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $* : Makefile ,g' < $*.$$$$ > $*.d; \ + $(RM) $*.$$$$ + %.8: %.txt bin/txt2man @echo " [txt2man] $<" $(V) bin/txt2man -p -t $(basename $(notdir $<)) $< > $@ @@ -332,7 +340,8 @@ LIBFT_SOURCE=\ LIBFT_OBJECTS=$(subst .c,.o,$(LIBFT_SOURCE)) lib/libft.so: $(LIBFT_OBJECTS) - gcc -shared -o $@ $+ -laio + @echo " [LD]" $@ + $(V) gcc -shared -o $@ $+ -laio .PHONEY: functional-test unit-test