From 7817d707cb52474ec995e5433b41e7ed8fc9451b Mon Sep 17 00:00:00 2001 From: borutr Date: Fri, 18 Nov 2005 21:51:38 +0000 Subject: [PATCH] * sdcc/device/lib/Makefile.in: remove all unnecessary files * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir: introduced SILENT option to make building of pic16 libraries less git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3961 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ device/lib/Makefile.in | 2 +- device/lib/pic/Makefile.rules | 10 ++++++++++ device/lib/pic/Makefile.subdir | 2 ++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ee192d9..bd44b010 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-18 Borut Razem + + * sdcc/device/lib/Makefile.in: remove all unnecessary files + * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir: + introduced SILENT option to make building of pic16 libraries less + 2005-11-18 Jesus Calvino-Fraga * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c: diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index feae847f..a81c22ab 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -286,7 +286,7 @@ clean_intermediate-pic16: install: all installdirs $(CP_U) -r $(BUILDDIR)/* $(sdcc_libdir) $(CP_U) -r ds390 ds400 mcs51 small medium large gbz80 z80 hc08 pic pic16 *.c $(sdcc_libdir)/src - rm -r `find $(sdcc_libdir)/src -name '*.rel' -o -name '*.dump*' -o -name '*.sym' -o -name '*.o' -o -name '*.lst' -o -name '*.asm' -o -name 'CVS'` + find $(sdcc_libdir)/src -name '*.rel' -o -name '*.dump*' -o -name '*.sym' -o -name '*.o' -o -name '*.lst' -o -name '*.asm' -o -name 'CVS' -exec rm -f {} \; # Deleting all the installed files # -------------------------------- diff --git a/device/lib/pic/Makefile.rules b/device/lib/pic/Makefile.rules index 4555a729..452bb278 100644 --- a/device/lib/pic/Makefile.rules +++ b/device/lib/pic/Makefile.rules @@ -14,29 +14,39 @@ # update dependencies $(topsrcdir)/$(builddir)/%.d : %.c +ifndef SILENT @echo "[ CPP ] ==> $(patsubst $(topsrcdir)/%,%,$@)"; +endif $(Q)$(CPP) $(CPPFLAGS) -o "$@" "$<"; # assemble $(topsrcdir)/$(builddir)/%.o : %.S +ifndef SILENT @echo "[ AS ] ==> $(patsubst $(topsrcdir)/%,%,$@)"; +endif $(Q)$(CPP) $(CPPFLAGS) -P -o "$*.Spp" "$<"; $(Q)$(AS) $(ASFLAGS) -o "$@" -c "$*.Spp"; $(Q)$(RM) "$*.Spp"; # compile $(topsrcdir)/$(builddir)/%.o : %.c +ifndef SILENT @echo "[ CC ] ==> $(patsubst $(topsrcdir)/%,%,$@)"; +endif $(Q)$(CC) $(CFLAGS) -o "$@" -c "$<"; # create library ifneq (,$(strip $(LIB_O))) %.lib : $(LIB_O) +ifndef SILENT @echo "[ LIB ] $(patsubst $(topsrcdir)/%,%,$@) <== $(patsubst $(topsrcdir)/$(builddir)/%,%,$^)"; +endif $(Q)$(RM) "$@"; $(LIB) $(LIBFLAGS) "$@" $^; else %.lib : recurse +ifndef SILENT @echo "[ LIB ] $(patsubst $(topsrcdir)/%,%,$@) <== **/*.o"; +endif $(Q)$(RM) "$@"; LIB_O=`find "$(topsrcdir)/$(builddir)" -name "*.o"`; [ "x$${LIB_O}" = "x" ] || $(LIB) $(LIBFLAGS) "$@" $${LIB_O}; endif diff --git a/device/lib/pic/Makefile.subdir b/device/lib/pic/Makefile.subdir index f81d6c92..22848ea9 100644 --- a/device/lib/pic/Makefile.subdir +++ b/device/lib/pic/Makefile.subdir @@ -41,7 +41,9 @@ ifneq (,$(strip $(TARGETS))) # usually install $(LIB_LIB) or $(OBJS), race condition in "[ -d x ] || mkdir x" install : recurse $(OBJS) $(LIB_LIB) @[ -d "$(topsrcdir)/$(installdir)" ] || ( $(MKDIR) "$(topsrcdir)/$(installdir)" || true ); +ifndef SILENT @echo "[INSTALL] $(patsubst $(topsrcdir)/$(builddir)/%,%,$(TARGETS))"; +endif $(Q)$(CP) $(TARGETS) "$(topsrcdir)/$(installdir)" else # used in subdirs like libc/ctype whose files -- 2.47.2