From 82fb7a6f7288522abdedd30193579b1a14de091e Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 14 Jan 2012 17:23:47 +0100 Subject: [PATCH] Print out the compile relevant info once before starting the build. --- citadel/Makefile.in | 9 ++++++++- libcitadel/Makefile.in | 17 ++++++++++++++--- webcit/Makefile.in | 9 ++++++++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/citadel/Makefile.in b/citadel/Makefile.in index f66349272..8c3e405bd 100644 --- a/citadel/Makefile.in +++ b/citadel/Makefile.in @@ -24,7 +24,7 @@ HELP_DIR=@MAKE_HELP_DIR@ DOC_DIR=@MAKE_DOC_DIR@ UTILBIN_DIR=@MAKE_UTILBIN_DIR@ DEPEND_FLAG=@DEPEND_FLAG@ -all: $(TARGETS) +all: buildinfo $(TARGETS) .SUFFIXES: .o .d .c @@ -451,4 +451,11 @@ $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4 cd $(srcdir) && $(ACLOCAL) +buildinfo: + echo + echo "Dependencies: $(CC) $(DEPEND_FLAG) $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@" + echo "Complie: $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@ " + echo "LDFLAGS: $(LDFLAGS)" + echo + -include $(DEP_FILES) diff --git a/libcitadel/Makefile.in b/libcitadel/Makefile.in index a178ccd76..924384f48 100755 --- a/libcitadel/Makefile.in +++ b/libcitadel/Makefile.in @@ -35,11 +35,17 @@ LIBRARY = libcitadel.la DESTDIR = $(INSTALL_ROOT) -default: buildlib +default: buildinfo buildlib buildlib: $(LIBRARY) -all: $(LIBRARY) +all: buildinfo $(LIBRARY) + +buildinfo: + echo + echo LTCompile: $(LTCOMPILE) -o $@ -c + echo + libcitadel.pc: $(top_builddir)/config.status libcitadel.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ @@ -57,7 +63,9 @@ install-pkgconfigDATA: $(pkgconfig_DATA) clean: + echo "Cleaning: $(LIBRARY) *.o *.lo *.gcda *.gcov *.gcno" cd lib && rm -f $(LIBRARY) *.o *.lo *.gcda *.gcov *.gcno + echo "Cleaning: $(LIBRARY) .libs _libs xdgmime/*.o xdgmime/*.lo xdgmime/.libs xdgmime/*.gcda xdgmime/*.gcov xdgmime/*.gcno" cd lib && rm -rf .libs _libs xdgmime/*.o xdgmime/*.lo xdgmime/.libs xdgmime/*.gcda xdgmime/*.gcov xdgmime/*.gcno rm -rf .libs libcitadel.la @@ -147,10 +155,13 @@ lib/html_to_ascii.lo: lib/html_to_ascii.c .SUFFIXES: .c .cpp .lo .o .cpp.o: + echo "CC+ $<" $(CXXCOMPILE) -o $@ -c $< .c.o: + echo "CC $<" $(COMPILE) -o $@ -c $< .c.lo: + echo "CC: $<" $(LTCOMPILE) -o $@ -c $< .PHONY: buildlib all \ @@ -158,7 +169,7 @@ lib/html_to_ascii.lo: lib/html_to_ascii.c dist distdir \ install uninstall - +.SILENT: # diff --git a/webcit/Makefile.in b/webcit/Makefile.in index dfcb06db7..8f671a23e 100644 --- a/webcit/Makefile.in +++ b/webcit/Makefile.in @@ -22,7 +22,13 @@ HEADERS=calendar.h dav.h messages.h modules_init.h paramhandling.h preferen # End of configuration section -all: all-progs-recursive webcit setup +all: buildinfo all-progs-recursive webcit setup + +buildinfo: + echo + echo Compiler: $(CC) $(CFLAGS) $(DEFS) $(PTHREAD_DEFS) -c -o $@ + echo Linker: $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) + echo # for VPATH builds (invoked by configure) mkdir-init: @@ -61,6 +67,7 @@ webcit: webserver.o context_loop.o ical_dezonify.o \ decode.o modules_init.o paramhandling.o utils.o \ ical_maps.o ical_subst.o static.o feed_generator.o \ $(LIBOBJS) + echo LD: webcit $(CC) $(LDFLAGS) -o webcit $(LIBOBJS) \ webserver.o context_loop.o cookie_conversion.o marchlist.o \ webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \ -- 2.30.2