diff options
author | Joakim <elupus@ecce.se> | 2011-03-26 19:18:48 +0100 |
---|---|---|
committer | Joakim <elupus@ecce.se> | 2011-03-26 19:19:58 +0100 |
commit | 2a9841b94da3726466e7390d95b6dfe6a2fdeec6 (patch) | |
tree | 3cb15a8ac1c92019339abe09265b68804925fac2 /Makefile.include.in | |
parent | 1b058deca891d1eaa3d39c5341b9b555e870528d (diff) |
changed: silence compile output on linux
Doing make V=1 will enable the log spew again
Diffstat (limited to 'Makefile.include.in')
-rw-r--r-- | Makefile.include.in | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/Makefile.include.in b/Makefile.include.in index 7cc7dc6e48..d8450a129d 100644 --- a/Makefile.include.in +++ b/Makefile.include.in @@ -57,9 +57,18 @@ ifeq ($(ARCH), powerpc-osx) BUNDLE1_O=-lbundle1.o endif +ifneq ($(V), 1) + SILENT_CPP=@echo "CPP $@"; + SILENT_CC =@echo "CC $@"; + SILENT_S =@echo "S $@"; + SILENT_GCH=@echo "GCH $@"; + SILENT_MM =@echo "MM $@"; +endif + + .cpp.o: @rm -f ${<:.cpp=.o} - $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cpp=.o} + $(SILENT_CPP) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cpp=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ @@ -67,7 +76,7 @@ endif .cc.o: @rm -f ${<:.cc=.o} - $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cc=.o} + $(SILENT_CC) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cc=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ @@ -75,7 +84,7 @@ endif .c.o: @rm -f ${<:.c=.o} - $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.c=.o} + $(SILENT_CC) $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.c=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ @@ -83,22 +92,22 @@ endif .C.o: @rm -f ${<:.C=.o} - $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.C=.o} + $(SILENT_CC) $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.C=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .S.o: - rm -f ${<:.S=.o} - $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o} + @rm -f ${<:.S=.o} + $(SILENT_CC) $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o} %.h.gch : %.h - $(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ + $(SILENT_GCH) $(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ .m.o: @rm -f ${<:.m=.o} - $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o} + $(SILENT_MM) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ @@ -106,7 +115,7 @@ endif .mm.o: @rm -f ${<:.mm=.o} - $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.mm=.o} + $(SILENT_MM) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.mm=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ |