Cleaner makefile execution, use 'make Q=' if you want to see full lines

This commit is contained in:
Philippe Teuwen 2019-06-02 00:25:25 +02:00
commit 8c0cd4cfa2
13 changed files with 253 additions and 145 deletions

View file

@ -1,3 +1,6 @@
# Hide full compilation line:
Q?=@
# To see full command lines, use make Q=
LIB_A = libmbedtls.a
mbedtls_SOURCES = \
@ -73,17 +76,19 @@ MYLIBS=
MYOBJS=
$(LIB_A): $(CMDOBJS)
$(AR) $(LIB_A) $(CMDOBJS)
$(RANLIB) $(LIB_A)
$(info [=] AR $@)
$(Q)$(AR) $(LIB_A) $(CMDOBJS)
$(Q)$(RANLIB) $(LIB_A)
all: $(LIB_A)
clean:
$(RM) $(CLEAN)
$(RM) $(LIB_A)
$(Q)$(RM) $(CLEAN)
$(Q)$(RM) $(LIB_A)
%.o: %.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
$(info [-] CC $<)
$(Q)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
.PHONY: all clean