* 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
+2005-11-18 Borut Razem <borut.razem AT siol.net>
+
+ * 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 <jesusc AT ece.ubc.ca>
* device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
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
# --------------------------------
# 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
# 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