summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config/ChangeLog5
-rw-r--r--src/config/win-pre.in22
2 files changed, 23 insertions, 4 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
index d3c4487388..c016e133a4 100644
--- a/src/config/ChangeLog
+++ b/src/config/ChangeLog
@@ -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
diff --git a/src/config/win-pre.in b/src/config/win-pre.in
index 694603ee9a..b254432663 100644
--- a/src/config/win-pre.in
+++ b/src/config/win-pre.in
@@ -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)