1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-18 15:35:55 +01:00

Makefile: Beautify compilation messages

This patch adds the --disable-verbose-compile switch to the
configure script.

When this option is used it reduces the verbosity of compilation
messages to the essential. However compiler warnings are not affected
and thus gain visibility by not standing in the middle of a storm
of other messages.

In summary, the compilation messages are reduced to a stream of

CC array.o
CC bagtree.o
CC configuration.o
CC connection.o
CC data.o
[...]

instead of a mind-boggling flux of

gcc -DHAVE_CONFIG_H -I. -I../src -I../WINGs/WINGs -I../wrlib -I../src
-I/usr/include/freetype2   -I/usr/local/include
-DLOCALEDIR=\"/usr/local/lib/loca\"/usr/local/share/WINGs\"
-DDEBUG  -fno-strict-aliasing -g -O2 -c array.c
gcc -DHAVE_CONFIG_H -I. -I../src -I../WINGs/WINGs
-I../wrlib -I../src -I/usr/include/freetype2   -I/usr/local/include
-DLOCALEDIR=\"/usr/local/lib/loca\"/usr/local/share/WINGs\"
-DDEBUG  -fno-strict-aliasing -g -O2 -c bagtree.c
[...]
This commit is contained in:
Carlos R. Mafra
2008-11-05 02:09:10 +01:00
parent 56d8568787
commit 72689513a3
16 changed files with 169 additions and 18 deletions

View File

@@ -29,4 +29,13 @@ server_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ \
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \ INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG -DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -16,6 +16,8 @@ noinst_PROGRAMS = test
EXTRA_DIST = EXTRA_DIST =
libExtraWINGs_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
libExtraWINGs_a_SOURCES = \ libExtraWINGs_a_SOURCES = \
wtableview.c \ wtableview.c \
wtabledelegates.c \ wtabledelegates.c \
@@ -32,3 +34,13 @@ LDADD= $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la \
test_LDADD = wtableview.o wtabledelegates.o $(LDADD) test_LDADD = wtableview.o wtabledelegates.o $(LDADD)
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -4,7 +4,11 @@ AUTOMAKE_OPTIONS = no-dependencies
SUBDIRS = WINGs . po Documentation Resources Examples Extras Tests SUBDIRS = WINGs . po Documentation Resources Examples Extras Tests
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
libWINGs_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
libWUtil_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
#libWINGs_la_LDFLAGS = -version-info 1:1:0 #libWINGs_la_LDFLAGS = -version-info 1:1:0
@@ -127,3 +131,12 @@ install-exec-local:
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \ $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
else :; fi; \ else :; fi; \
done done
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -19,4 +19,13 @@ INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ @HEADER_SEARCH_PATH@ \ -DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ @HEADER_SEARCH_PATH@ \
-DDEBUG -DDEBUG
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -7,3 +7,11 @@ includedir = @includedir@/WINGs
include_HEADERS = WINGs.h WUtil.h WINGsP.h proplist-compat.h include_HEADERS = WINGs.h WUtil.h WINGsP.h proplist-compat.h
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -56,3 +56,13 @@ WPrefs_LDADD = \
@XFTLIBS@ \ @XFTLIBS@ \
@INTLIBS@ @INTLIBS@
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -10,20 +10,20 @@ EXTRA_DIST = WMGLOBAL WMWindowAttributes.in WindowMaker.in WMState.in
CLEANFILES = WMWindowAttributes WindowMaker WMState CLEANFILES = WMWindowAttributes WindowMaker WMState
WMWindowAttributes: $(srcdir)/WMWindowAttributes.in WMWindowAttributes: $(srcdir)/WMWindowAttributes.in
-rm -f WMWindowAttributes @-rm -f WMWindowAttributes
sed -e "s:#extension#:@ICONEXT@:" \ @sed -e "s:#extension#:@ICONEXT@:" \
$(srcdir)/WMWindowAttributes.in > WMWindowAttributes $(srcdir)/WMWindowAttributes.in > WMWindowAttributes
chmod 644 WMWindowAttributes chmod 644 WMWindowAttributes
WindowMaker: $(srcdir)/WindowMaker.in WindowMaker: $(srcdir)/WindowMaker.in
-rm -f WindowMaker @-rm -f WindowMaker
sed -e "s:#pkgdatadir#:$(pkgdatadir):" $(srcdir)/WindowMaker.in \ @sed -e "s:#pkgdatadir#:$(pkgdatadir):" $(srcdir)/WindowMaker.in \
> WindowMaker > WindowMaker
chmod 644 WindowMaker chmod 644 WindowMaker
WMState: $(srcdir)/WMState.in WMState: $(srcdir)/WMState.in
-rm -f WMState @-rm -f WMState
sed -e "s:#wprefs#:$(wpexecbindir)/WPrefs:" $(srcdir)/WMState.in > WMState @sed -e "s:#wprefs#:$(wpexecbindir)/WPrefs:" $(srcdir)/WMState.in > WMState
chmod 644 WMState chmod 644 WMState
WMRootMenu: $(srcdir)/../plmenu WMRootMenu: $(srcdir)/../plmenu

View File

@@ -8,10 +8,10 @@ EXTRA_DIST =
CLEANFILES = Default.iconset CLEANFILES = Default.iconset
Default.iconset: $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes Default.iconset: $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes
-rm -f Default.iconset @-rm -f Default.iconset
echo '{' > Default.iconset @echo '{' > Default.iconset
grep Icon $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes >> Default.iconset @grep Icon $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes >> Default.iconset
echo '}' >> Default.iconset @echo '}' >> Default.iconset
chmod 644 Default.iconset chmod 644 Default.iconset

View File

@@ -57,4 +57,11 @@ prefsdata_DATA =\
EXTRA_DIST = $(prefsdata_DATA) mkMakefile EXTRA_DIST = $(prefsdata_DATA) mkMakefile
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -384,6 +384,21 @@ AC_ARG_ENABLE(lite,
fi]) fi])
dnl
dnl Beautify compilation messages
dnl ---------------------------------------------
AC_ARG_ENABLE(verbose-compile, AS_HELP_STRING([--disable-verbose-compile],
[Streamline compilation messages (default off)]),
[
QUIET='@echo CC $@;'
QUIET_AR='@echo AR $@;'
LIBTOOL_ARG="--silent"
AC_SUBST(QUIET)
AC_SUBST(QUIET_AR)
AC_SUBST(LIBTOOL_ARG)
])
dnl dnl
dnl Networking stuff dnl Networking stuff

View File

@@ -134,3 +134,13 @@ wmaker_LDADD = \
# @INTLIBS@ \ # @INTLIBS@ \
# @DLLIBS@ # @DLLIBS@
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -13,3 +13,13 @@ wtest_LDADD = $(top_builddir)/wmlib/libWMaker.a @XLFLAGS@ @XLIBS@
INCLUDES = -g -D_BSD_SOURCE @XCFLAGS@ -I$(top_srcdir)/wmlib INCLUDES = -g -D_BSD_SOURCE @XCFLAGS@ -I$(top_srcdir)/wmlib
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -60,8 +60,8 @@ wmsetbg_LDADD = \
CLEANFILES = wmaker.inst CLEANFILES = wmaker.inst
wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
-rm -f wmaker.inst @-rm -f wmaker.inst
sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \ @sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
-e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \ -e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \
-e "s|#version#|$(VERSION)|" \ -e "s|#version#|$(VERSION)|" \
-e "s|#bindir#|$(bindir)|" \ -e "s|#bindir#|$(bindir)|" \
@@ -70,3 +70,13 @@ wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
chmod 755 wmaker.inst chmod 755 wmaker.inst
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -7,6 +7,8 @@ include_HEADERS = WMaker.h
INCLUDES = $(DFLAGS) @XCFLAGS@ INCLUDES = $(DFLAGS) @XCFLAGS@
libWMaker_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
libWMaker_a_SOURCES = \ libWMaker_a_SOURCES = \
menu.c \ menu.c \
app.c \ app.c \
@@ -19,10 +21,21 @@ DISTCLEANFILES = wmlib.pc
install-exec-local: install-exec-local:
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig @$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
@list='wmlib.pc'; for p in $$list; do \ @list='wmlib.pc'; for p in $$list; do \
if test -f $$p; then \ if test -f $$p; then \
echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \ @echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \ @$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
else :; fi; \ else :; fi; \
done done
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<

View File

@@ -8,6 +8,8 @@ lib_LTLIBRARIES = libwraster.la
libwraster_la_LDFLAGS = -version-info 4:0:1 libwraster_la_LDFLAGS = -version-info 4:0:1
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
bin_SCRIPTS = get-wraster-flags bin_SCRIPTS = get-wraster-flags
include_HEADERS = wraster.h include_HEADERS = wraster.h
@@ -43,15 +45,26 @@ libwraster_la_SOURCES = \
gif.c gif.c
LTCOMPILE2=`echo $(LTCOMPILE) | sed -e s/-fomit-frame-pointer//` .c:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
# This is the same as LTCOMPILE but without LIBTOOL
LTCOMPILE1= --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE2=`echo $(LTCOMPILE1) | sed -e s/-fomit-frame-pointer//`
COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//` COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//`
# cant compile asm stuff with optimizations # cant compile asm stuff with optimizations
x86_specific.lo: x86_specific.c x86_specific.lo: x86_specific.c
$(LTCOMPILE2) -O0 -c $< $(LIBTOOL) $(LTCOMPILE2) -O0 -c $<
x86_specific.o: x86_specific.c x86_specific.o: x86_specific.c
$(COMPILE2) -O0 -c $< $(QUIET)$(COMPILE2) -O0 -c $<
INCLUDES = $(DFLAGS) @HEADER_SEARCH_PATH@ INCLUDES = $(DFLAGS) @HEADER_SEARCH_PATH@
@@ -69,3 +82,5 @@ install-exec-local:
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \ $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
else :; fi; \ else :; fi; \
done done

View File

@@ -10,6 +10,8 @@ INCLUDES = -I$(srcdir)/.. $(DFLAGS) @HEADER_SEARCH_PATH@
LIBLIST = $(top_builddir)/wrlib/libwraster.la LIBLIST = $(top_builddir)/wrlib/libwraster.la
LIBTOOL = $(QUIET)$(top_srcdir)/libtool --silent
testdraw_SOURCES = testdraw.c testdraw_SOURCES = testdraw.c
testdraw_LDADD = $(LIBLIST) testdraw_LDADD = $(LIBLIST)
@@ -22,3 +24,11 @@ testrot_LDADD = $(LIBLIST)
view_SOURCES= view.c view_SOURCES= view.c
view_LDADD = $(LIBLIST) view_LDADD = $(LIBLIST)
.c.o:
$(QUIET)$(COMPILE) -c $<
.c.obj:
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
$(QUIET)$(LTCOMPILE) -c -o $@ $<