* win-pre.in: Minimize printing of compiler command line during
authorDanilo Almeida <dalmeida@mit.edu>
Fri, 22 Jun 2001 07:24:46 +0000 (07:24 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Fri, 22 Jun 2001 07:24:46 +0000 (07:24 +0000)
      build of a directory.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13481 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/win-pre.in

index d3c448738881f87f54f99b375d7d397aea435631..c016e133a41d47b4a236d77ec7359afcddf3adbb 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-22  Danilo Almeida  <dalmeida@mit.edu>
+
+       * win-pre.in: Minimize printing of compiler command line during
+       build of a directory.
+
 2001-06-21  Danilo Almeida  <dalmeida@mit.edu>
 
        * win-pre.in, win-post.in: Improve output directory creation and
index 694603ee9a6ddbfbdcd5281d86c8e324144ddc8e..b254432663e969985307e03b9f66a8f98dc4ac0e 100644 (file)
@@ -1,6 +1,6 @@
 WHAT=windows
 
-all:: outpre-dir
+all:: setup-msg outpre-dir
 
 all:: all-$(WHAT)
 clean:: clean-$(WHAT)
@@ -188,17 +188,31 @@ MAKE=-$(MAKE)
 CFLAGS = $(CCOPTS)
 ALL_CFLAGS = $(DEFS) $(DEFINES) $(LOCALINCLUDES) $(CPPFLAGS) $(CFLAGS)
 
+C_RULE_STUFF=$(CC) $(ALL_CFLAGS) -Fo$(OUTPRE)\ -c
+C_RULE_PRINT=$(C_RULE_STUFF)
+C_RULE=$(C_RULE_STUFF) $<
+
+setup-msg::
+       @set C_RULE_PRINT=      $(C_RULE_PRINT)
+       @set DO_C_RULE_PRINT=1
+
 {}.rc{$(OUTPRE)}.res:
        $(RC) $(RCFLAGS) -fo $@ -r $<
 
 {}.c{$(OUTPRE)}.obj:
-       $(CC) $(ALL_CFLAGS) -Fo$(OUTPRE)\ -c $<
+       @if "%DO_C_RULE_PRINT%"=="1" echo %C_RULE_PRINT% ...
+       @set DO_C_RULE_PRINT=
+       @$(C_RULE)
 
 {}.cxx{$(OUTPRE)}.obj:
-       $(CC) $(ALL_CFLAGS) -Fo$(OUTPRE)\ -c $<
+       @if "%DO_C_RULE_PRINT%"=="1" echo %C_RULE_PRINT% ...
+       @set DO_C_RULE_PRINT=
+       @$(C_RULE)
 
 {}.cpp{$(OUTPRE)}.obj:
-       $(CC) $(ALL_CFLAGS) -Fo$(OUTPRE)\ -c $<
+       @if "%DO_C_RULE_PRINT%"=="1" echo %C_RULE_PRINT% ...
+       @set DO_C_RULE_PRINT=
+       @$(C_RULE)
 
 #
 # End of Win32 pre-config lines (config/win-pre.in)