[galeon] Added --enable-quiet switch to configure script



commit 8c670f0e1439fcb5036559f6c8625f82bc291a89
Author: Fabio Bonelli <fabiob src gnome org>
Date:   Sat May 1 17:34:23 2010 +0200

    Added --enable-quiet switch to configure script
    
    Beautifies the build output and makes it easier to spot warning and
    errors.

 bookmarks/Makefile.am   |   10 ++++++++++
 configure.in            |   19 +++++++++++++++++++
 embed/Makefile.am       |   10 ++++++++++
 libegg/Makefile.am      |    9 +++++++++
 libegg/dock/Makefile.am |    9 +++++++++
 mozilla/Makefile.am     |    6 ++++++
 src/Makefile.am         |   10 ++++++++++
 7 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/bookmarks/Makefile.am b/bookmarks/Makefile.am
index 28715c7..8bcfeb9 100644
--- a/bookmarks/Makefile.am
+++ b/bookmarks/Makefile.am
@@ -119,3 +119,13 @@ bookmarksdir=$(pkgdatadir)
 EXTRA_DIST = default-bookmarks.xbel.in
 
 DISTCLEANFILES = default-bookmarks.xbel
+
+# Quiet compilation
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+LINK = $(Q) $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+        $(LDFLAGS) -o $@
+
+.c.lo:
+	$(QUIET_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
diff --git a/configure.in b/configure.in
index 1fcbc06..7ecc6f0 100644
--- a/configure.in
+++ b/configure.in
@@ -919,6 +919,25 @@ AC_ARG_ENABLE(werror,
 		disable_werror=no
 	fi)
 
+dnl *********************************************************************
+dnl ** Quiet compilation ************************************************
+dnl *********************************************************************
+AC_ARG_ENABLE(quiet,
+	      AS_HELP_STRING([--enable-quiet],
+                             [Enable quiet compilation]),
+	[
+		Q='@'
+		QUIET_CC='@echo "    CC $@";'
+		QUIET_CPP='@echo "    CPP$@";'
+		LIBTOOL_ARG="--silent"
+
+		AC_SUBST(Q)
+		AC_SUBST(QUIET_CC)
+		AC_SUBST(QUIET_CPP)
+		AC_SUBST(LIBTOOL_ARG)
+	])
+
+
 dnl Only use warning flags if we have gcc
 CC_WARNING_FLAGS="-Wall -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
 if test "x$GCC" = "xyes"; then
diff --git a/embed/Makefile.am b/embed/Makefile.am
index 52d0e2f..5a6b7fc 100644
--- a/embed/Makefile.am
+++ b/embed/Makefile.am
@@ -52,3 +52,13 @@ libembed_la_SOURCES = \
 
 
 EXTRA_DIST = $(nautilus_view_extra_dist)
+
+# Quiet compilation
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+LINK = $(Q) $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+        $(LDFLAGS) -o $@
+
+.c.lo:
+	$(QUIET_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
diff --git a/libegg/Makefile.am b/libegg/Makefile.am
index e4a710b..f2177d7 100644
--- a/libegg/Makefile.am
+++ b/libegg/Makefile.am
@@ -49,3 +49,12 @@ EGGDIR=$(srcdir)/../../../libegg/libegg
 regenerate-built-sources:
 	EGGFILES="$(EGGFILES) eggmarshalers.list" EGGDIR="$(EGGDIR)" $(srcdir)/update-from-egg.sh
 
+# Quiet compilation
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+LINK = $(Q) $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+        $(LDFLAGS) -o $@
+
+.c.lo:
+	$(QUIET_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
diff --git a/libegg/dock/Makefile.am b/libegg/dock/Makefile.am
index b4666a9..ba2a510 100644
--- a/libegg/dock/Makefile.am
+++ b/libegg/dock/Makefile.am
@@ -78,3 +78,12 @@ libeggdocktypebuiltins.h: $(libeggdock_headers)
 	&& cp xgen-gth $(@F) \
 	&& rm -f xgen-gth
 
+# Quiet compilation
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+LINK = $(Q) $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+        $(LDFLAGS) -o $@
+
+.c.lo:
+	$(QUIET_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
diff --git a/mozilla/Makefile.am b/mozilla/Makefile.am
index b94eb43..09d6990 100644
--- a/mozilla/Makefile.am
+++ b/mozilla/Makefile.am
@@ -175,3 +175,9 @@ endif
 libmozillaembed_la_LIBADD = \
 	$(MOZILLA_COMPONENT_LIBS) \
 	$(top_builddir)/embed/libembed.la
+
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+
+.cpp.lo:
+	$(QUIET_CPP) $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q) $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
diff --git a/src/Makefile.am b/src/Makefile.am
index ca4ded4..3054324 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -165,3 +165,13 @@ GaleonAutomation-common.c GaleonAutomation-stubs.c GaleonAutomation-skels.c Gale
 
 EXTRA_DIST = $(top_srcdir)/idl/GaleonAutomation.idl $(nautilus_view_extra_dist)
 
+
+# Quiet compilation
+LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
+LINK = $(Q) $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+        $(LDFLAGS) -o $@
+
+.c.lo:
+	$(QUIET_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	$(Q)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]