Ticket #9072: quiet-make-2.patch
File quiet-make-2.patch, 6.7 KB (added by , 15 years ago) |
---|
-
configure
125 125 _endian=unknown 126 126 _need_memalign=no 127 127 _have_x86=no 128 _verbose_build=no 128 129 _dynamic_modules=no 129 130 _plugins_default=static 130 131 _nasm=auto … … 660 661 --disable-fluidsynth) _fluidsynth=no ;; 661 662 --enable-readline) _readline=yes ;; 662 663 --disable-readline) _readline=no ;; 664 --enable-verbose-build) _verbose_build=yes ;; 663 665 --enable-plugins) _dynamic_modules=yes ;; 664 666 --default-dynamic) _plugins_default=dynamic ;; 665 667 --enable-mt32emu) _mt32emu=yes ;; … … 1515 1519 1516 1520 add_to_config_h_if_yes $_need_memalign '#define SCUMM_NEED_ALIGNMENT' 1517 1521 1522 # 1523 # Check whether to enable a verbose build 1524 # 1525 echo_n "Checking whether to have a verbose build... " 1526 echo "$_verbose_build" 1527 add_to_config_mk_if_yes "$_verbose_build" 'VERBOSE_BUILD = 1' 1518 1528 1519 1529 # 1520 1530 # Check whether plugin support is requested and possible -
Makefile.common
66 66 # the build date in gScummVMBuildDate is correct. 67 67 base/version.o: $(filter-out base/libbase.a,$(OBJS)) 68 68 69 # Replace regular output with quiet messages 70 ifneq ($(findstring $(MAKEFLAGS),s),s) 71 ifneq ($(VERBOSE_BUILD),1) 72 ifneq ($(VERBOSE_BUILD),yes) 73 QUIET_CXX = @echo ' ' C++ ' ' $@; 74 QUIET_NASM = @echo ' ' NASM ' ' $@; 75 QUIET_AR = @echo ' ' AR ' ' $@; 76 QUIET_RANLIB = @echo ' ' RANLIB ' ' $@; 77 QUIET_PLUGIN = @echo ' ' PLUGIN ' ' $@; 78 QUIET_LINK = @echo ' ' LINK ' ' $@; 79 QUIET = @ 80 endif 81 endif 82 endif 83 69 84 # The build rule for the ScummVM executable 70 85 $(EXECUTABLE): $(OBJS) 71 $( CXX) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) -o $@86 $(QUIET_LINK)$(CXX) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) -o $@ 72 87 73 88 distclean: clean 74 89 $(RM) config.h config.mk config.log … … 87 102 # If you use GCC, disable the above and enable this for intelligent 88 103 # dependency tracking. 89 104 %.o: %.cpp 90 $( MKDIR) $(*D)/$(DEPDIR)91 $( CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o92 $( ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d93 $( CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d"94 $( RM) "$(*D)/$(DEPDIR)/$(*F).d2"105 $(QUIET)$(MKDIR) $(*D)/$(DEPDIR) 106 $(QUIET_CXX)$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o 107 $(QUIET)$(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d 108 $(QUIET)$(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" 109 $(QUIET)$(RM) "$(*D)/$(DEPDIR)/$(*F).d2" 95 110 else 96 111 # If you even have GCC 3.x, you can use this build rule, which is safer; the above 97 112 # rule can get you into a bad state if you Ctrl-C at the wrong moment. 98 113 # Also, with this GCC inserts additional dummy rules for the involved headers, 99 114 # which ensures a smooth compilation even if said headers become obsolete. 100 115 %.o: %.cpp 101 $( MKDIR) $(*D)/$(DEPDIR)102 $( CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o116 $(QUIET)$(MKDIR) $(*D)/$(DEPDIR) 117 $(QUIET_CXX)$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o 103 118 %.o: %.m 104 $( MKDIR) $(*D)/$(DEPDIR)105 $( CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(OBJCFLAGS) -c $(<) -o $*.o119 $(QUIET)$(MKDIR) $(*D)/$(DEPDIR) 120 $(QUIET_CXX)$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(OBJCFLAGS) -c $(<) -o $*.o 106 121 endif 107 122 108 123 ifdef HAVE_NASM 109 124 %.o: %.asm 110 $( NASM) -O1 $(NASMFLAGS) -g -o $*.o $(<)125 $(QUIET_NASM)$(NASM) -O1 $(NASMFLAGS) -g -o $*.o $(<) 111 126 endif 112 127 113 128 # Include the dependency tracking files. -
rules.mk
23 23 ################################################ 24 24 TOOL-$(MODULE) := $(MODULE)/$(TOOL_EXECUTABLE)$(EXEEXT) 25 25 $(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE)) 26 $( CXX) $(LDFLAGS) $+ -o $@26 $(QUIET_CXX)$(CXX) $(LDFLAGS) $+ -o $@ 27 27 28 28 # Reset TOOL_EXECUTABLE var 29 29 TOOL_EXECUTABLE:= … … 42 42 ################################################ 43 43 PLUGIN-$(MODULE) := plugins/$(PLUGIN_PREFIX)$(notdir $(MODULE))$(PLUGIN_SUFFIX) 44 44 $(PLUGIN-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(PLUGIN_EXTRA_DEPS) 45 $( MKDIR) plugins46 $( CXX) $(filter-out $(PLUGIN_EXTRA_DEPS),$+) $(PLUGIN_LDFLAGS) -o $@45 $(QUIET)$(MKDIR) plugins 46 $(QUIET_PLUGIN)$(CXX) $(filter-out $(PLUGIN_EXTRA_DEPS),$+) $(PLUGIN_LDFLAGS) -o $@ 47 47 48 48 # Reset PLUGIN var 49 49 PLUGIN:= … … 69 69 70 70 # Convenience library target 71 71 $(MODULE_LIB-$(MODULE)): $(MODULE_OBJS-$(MODULE)) 72 -$(RM) $@73 $( AR) $@ $+74 $( RANLIB) $@72 $(QUIET)-$(RM) $@ 73 $(QUIET_AR)$(AR) $@ $+ 74 $(QUIET_RANLIB)$(RANLIB) $@ 75 75 76 76 # Pseudo target for comfort, allows for "make common", "make gui" etc. 77 77 $(MODULE): $(MODULE_LIB-$(MODULE)) -
test/module.mk
22 22 test: test/runner 23 23 ./test/runner 24 24 test/runner: test/runner.cpp $(TEST_LIBS) 25 $( CXX) $(CXXFLAGS) $(CPPFLAGS) $(TEST_LDFLAGS) $(TEST_CFLAGS) -o $@ $+25 $(QUIET_LINK)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TEST_LDFLAGS) $(TEST_CFLAGS) -o $@ $+ 26 26 test/runner.cpp: $(TESTS) 27 27 @mkdir -p test 28 28 $(srcdir)/test/cxxtest/cxxtestgen.py $(TEST_FLAGS) -o $@ $+ -
tools/module.mk
33 33 # 34 34 35 35 tools/convbdf$(EXEEXT): $(srcdir)/tools/convbdf.c 36 $( MKDIR) tools/$(DEPDIR)37 $( CC) $(CFLAGS) -Wall -o $@ $<36 $(QUIET)$(MKDIR) tools/$(DEPDIR) 37 $(QUIET_LINK)$(CC) $(CFLAGS) -Wall -o $@ $< 38 38 39 39 tools/md5table$(EXEEXT): $(srcdir)/tools/md5table.c 40 $( MKDIR) tools/$(DEPDIR)41 $( CC) $(CFLAGS) -Wall -o $@ $<40 $(QUIET)$(MKDIR) tools/$(DEPDIR) 41 $(QUIET_LINK)$(CC) $(CFLAGS) -Wall -o $@ $< 42 42 43 43 tools/make-scumm-fontdata$(EXEEXT): $(srcdir)/tools/make-scumm-fontdata.c 44 $( MKDIR) tools/$(DEPDIR)45 $( CC) $(CFLAGS) -Wall -o $@ $<44 $(QUIET)$(MKDIR) tools/$(DEPDIR) 45 $(QUIET_LINK)$(CC) $(CFLAGS) -Wall -o $@ $< 46 46 47 47 # 48 48 # Rules to explicitly rebuild the credits / MD5 tables. -
tools/skycpt/Makefile
9 9 all: $(TARGET) 10 10 11 11 clean: 12 rm -f$(TARGET) $(OBJS)12 $(QUIET)$(RM) $(TARGET) $(OBJS) 13 13 14 14 $(TARGET): $(OBJS) 15 $( CC) $(OBJS) $(LDFLAGS) -o $(TARGET)15 $(QUIET_CXX)$(CXX) $(OBJS) $(LDFLAGS) -o $(TARGET) 16 16 17 17 %.o: %.cpp 18 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ 19 No newline at end of file 18 $(QUIET_CXX)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@