Print out the compile relevant info once before starting the build.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 14 Jan 2012 16:23:47 +0000 (17:23 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 14 Jan 2012 16:23:47 +0000 (17:23 +0100)
citadel/Makefile.in
libcitadel/Makefile.in
webcit/Makefile.in

index f66349272425d6d4d658f923e5a74b10282ee8cf..8c3e405bdc27369de8e5c665dfef8379f08c36e8 100644 (file)
@@ -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)
index a178ccd76b3b9d56532ae21afd092c9ee1a6484b..924384f48bbc171ea8956a56e995321928c7767c 100755 (executable)
@@ -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:
 
 
 #
index dfcb06db7144885f9c3b4e6045174519962ef16f..8f671a23e3216d98590eeba08e93b72e9de38946 100644 (file)
@@ -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 \