# HG changeset patch # User pasky # Date 1100903370 0 # Node ID b995527cb51cd6b2a65dbc5435bd39100baabc75 # Parent 9129fe36ef0d727738719d2d0b87126e895d9bd8 (svn r681) Support for VERBOSE configuration variable which shows the commands actually used for compilation. diff -r 9129fe36ef0d -r b995527cb51c Makefile --- a/Makefile Fri Nov 19 21:57:02 2004 +0000 +++ b/Makefile Fri Nov 19 22:29:30 2004 +0000 @@ -65,6 +65,7 @@ # If unset, it will use the hardcoded path in the c code # NOVERBOSE: supress all warnings and errors during compilation. # It looks nicer, but you will not know what went wrong. Use it on released (stable) sources only +# VERBOSE: actually show the commands used for compilation. # # Paths: # INSTALL: If not set, the game uses the directory of the binary to @@ -597,8 +598,8 @@ $(TTD): table/strings.h $(ttd_OBJS) $(LANGS) $(MAKE_CONFIG) - @echo 'Compiling and Linking $@'; \ - $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) + $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ + $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) $(OSX): @mkdir -p $(OSXAPP)/Contents/MacOS @@ -738,7 +739,7 @@ %.o: %.c $(MAKE_CONFIG) - @echo 'Compiling $(*F).o'; \ + $(if $(VERBOSE),@echo '$(C_BUILD) $<',@echo 'Compiling $(*F).o'); \ $(C_BUILD) $< -Wp,-MD,.deps/$(*F).pp $(VERBOSE_FILTER) @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \