mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-07 01:55:48 +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:
@@ -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 \
|
||||
-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 $@ $<
|
||||
|
||||
@@ -16,6 +16,8 @@ noinst_PROGRAMS = test
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
libExtraWINGs_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
|
||||
|
||||
libExtraWINGs_a_SOURCES = \
|
||||
wtableview.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)
|
||||
|
||||
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 $@ $<
|
||||
|
||||
@@ -4,7 +4,11 @@ AUTOMAKE_OPTIONS = no-dependencies
|
||||
|
||||
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
|
||||
|
||||
@@ -127,3 +131,12 @@ install-exec-local:
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
.c.o:
|
||||
$(QUIET)$(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
$(QUIET)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
@@ -18,5 +18,14 @@ EXTRA_DIST = logo.xpm upbtn.xpm wm.html wm.png
|
||||
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
|
||||
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ @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 $@ $<
|
||||
|
||||
@@ -7,3 +7,11 @@ includedir = @includedir@/WINGs
|
||||
|
||||
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 $@ $<
|
||||
|
||||
@@ -56,3 +56,13 @@ WPrefs_LDADD = \
|
||||
@XFTLIBS@ \
|
||||
@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 $@ $<
|
||||
|
||||
@@ -10,20 +10,20 @@ EXTRA_DIST = WMGLOBAL WMWindowAttributes.in WindowMaker.in WMState.in
|
||||
CLEANFILES = WMWindowAttributes WindowMaker WMState
|
||||
|
||||
WMWindowAttributes: $(srcdir)/WMWindowAttributes.in
|
||||
-rm -f WMWindowAttributes
|
||||
sed -e "s:#extension#:@ICONEXT@:" \
|
||||
@-rm -f WMWindowAttributes
|
||||
@sed -e "s:#extension#:@ICONEXT@:" \
|
||||
$(srcdir)/WMWindowAttributes.in > WMWindowAttributes
|
||||
chmod 644 WMWindowAttributes
|
||||
|
||||
WindowMaker: $(srcdir)/WindowMaker.in
|
||||
-rm -f WindowMaker
|
||||
sed -e "s:#pkgdatadir#:$(pkgdatadir):" $(srcdir)/WindowMaker.in \
|
||||
@-rm -f WindowMaker
|
||||
@sed -e "s:#pkgdatadir#:$(pkgdatadir):" $(srcdir)/WindowMaker.in \
|
||||
> WindowMaker
|
||||
chmod 644 WindowMaker
|
||||
|
||||
WMState: $(srcdir)/WMState.in
|
||||
-rm -f WMState
|
||||
sed -e "s:#wprefs#:$(wpexecbindir)/WPrefs:" $(srcdir)/WMState.in > WMState
|
||||
@-rm -f WMState
|
||||
@sed -e "s:#wprefs#:$(wpexecbindir)/WPrefs:" $(srcdir)/WMState.in > WMState
|
||||
chmod 644 WMState
|
||||
|
||||
WMRootMenu: $(srcdir)/../plmenu
|
||||
|
||||
@@ -8,10 +8,10 @@ EXTRA_DIST =
|
||||
CLEANFILES = Default.iconset
|
||||
|
||||
Default.iconset: $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes
|
||||
-rm -f Default.iconset
|
||||
echo '{' > Default.iconset
|
||||
grep Icon $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes >> Default.iconset
|
||||
echo '}' >> Default.iconset
|
||||
@-rm -f Default.iconset
|
||||
@echo '{' > Default.iconset
|
||||
@grep Icon $(top_builddir)/WindowMaker/Defaults/WMWindowAttributes >> Default.iconset
|
||||
@echo '}' >> Default.iconset
|
||||
chmod 644 Default.iconset
|
||||
|
||||
|
||||
|
||||
@@ -57,4 +57,11 @@ prefsdata_DATA =\
|
||||
|
||||
EXTRA_DIST = $(prefsdata_DATA) mkMakefile
|
||||
|
||||
.c.o:
|
||||
$(QUIET)$(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
$(QUIET)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
15
configure.ac
15
configure.ac
@@ -384,6 +384,21 @@ AC_ARG_ENABLE(lite,
|
||||
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 Networking stuff
|
||||
|
||||
@@ -134,3 +134,13 @@ wmaker_LDADD = \
|
||||
# @INTLIBS@ \
|
||||
# @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 $@ $<
|
||||
|
||||
@@ -13,3 +13,13 @@ wtest_LDADD = $(top_builddir)/wmlib/libWMaker.a @XLFLAGS@ @XLIBS@
|
||||
|
||||
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 $@ $<
|
||||
|
||||
@@ -60,8 +60,8 @@ wmsetbg_LDADD = \
|
||||
CLEANFILES = wmaker.inst
|
||||
|
||||
wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
|
||||
-rm -f wmaker.inst
|
||||
sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
|
||||
@-rm -f wmaker.inst
|
||||
@sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
|
||||
-e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \
|
||||
-e "s|#version#|$(VERSION)|" \
|
||||
-e "s|#bindir#|$(bindir)|" \
|
||||
@@ -69,4 +69,14 @@ wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
|
||||
$(srcdir)/wmaker.inst.in >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 $@ $<
|
||||
|
||||
@@ -7,6 +7,8 @@ include_HEADERS = WMaker.h
|
||||
|
||||
INCLUDES = $(DFLAGS) @XCFLAGS@
|
||||
|
||||
libWMaker_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)
|
||||
|
||||
libWMaker_a_SOURCES = \
|
||||
menu.c \
|
||||
app.c \
|
||||
@@ -19,10 +21,21 @@ DISTCLEANFILES = wmlib.pc
|
||||
|
||||
install-exec-local:
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
|
||||
@$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
|
||||
@list='wmlib.pc'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
|
||||
@echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \
|
||||
@$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
|
||||
else :; fi; \
|
||||
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 $@ $<
|
||||
|
||||
@@ -8,6 +8,8 @@ lib_LTLIBRARIES = libwraster.la
|
||||
|
||||
libwraster_la_LDFLAGS = -version-info 4:0:1
|
||||
|
||||
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
|
||||
|
||||
bin_SCRIPTS = get-wraster-flags
|
||||
|
||||
include_HEADERS = wraster.h
|
||||
@@ -43,15 +45,26 @@ libwraster_la_SOURCES = \
|
||||
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//`
|
||||
|
||||
# cant compile asm stuff with optimizations
|
||||
x86_specific.lo: x86_specific.c
|
||||
$(LTCOMPILE2) -O0 -c $<
|
||||
$(LIBTOOL) $(LTCOMPILE2) -O0 -c $<
|
||||
|
||||
x86_specific.o: x86_specific.c
|
||||
$(COMPILE2) -O0 -c $<
|
||||
$(QUIET)$(COMPILE2) -O0 -c $<
|
||||
|
||||
|
||||
INCLUDES = $(DFLAGS) @HEADER_SEARCH_PATH@
|
||||
@@ -69,3 +82,5 @@ install-exec-local:
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ INCLUDES = -I$(srcdir)/.. $(DFLAGS) @HEADER_SEARCH_PATH@
|
||||
|
||||
LIBLIST = $(top_builddir)/wrlib/libwraster.la
|
||||
|
||||
LIBTOOL = $(QUIET)$(top_srcdir)/libtool --silent
|
||||
|
||||
testdraw_SOURCES = testdraw.c
|
||||
testdraw_LDADD = $(LIBLIST)
|
||||
|
||||
@@ -22,3 +24,11 @@ testrot_LDADD = $(LIBLIST)
|
||||
view_SOURCES= view.c
|
||||
view_LDADD = $(LIBLIST)
|
||||
|
||||
.c.o:
|
||||
$(QUIET)$(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
$(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
$(QUIET)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user