+2007-02-25 Raphael Neider <rneider AT web.de>
+
+ * src/pic16/gen.c (genCast): fixed typo
+ * device/lib/pic16/Makefile.subdir: only install existing files
+ * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
+
2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
* device/lib/mcs51/crtcall.asm: new, added for indirect calls
#TARGETS ?= $(OBJS)
endif
-.PHONY : all install clean clean-intermediate
+.PHONY : all install clean clean-intermediate $(addprefix install,$(TARGETS))
+
+ifndef SILENT
+ECHO=echo
+else
+ECHO=true
+endif
all : install
ifneq (,$(strip $(TARGETS)))
+
+$(addprefix install,$(TARGETS)): install% : %
+ @-if [ -e "$<" ]; then \
+ [ -d "$(top_builddir)/$(installdir)" ] || $(MKDIR) "$(top_builddir)/$(installdir)"; \
+ $(ECHO) "[INSTALL] $(patsubst $(top_builddir)/$(builddir)/%,%,$<)"; \
+ [ ! -e "$<" ] || $(CP) "$<" "$(top_builddir)/$(installdir)"; \
+ fi
+
# usually install $(LIB_LIB) or $(OBJS), race condition in "[ -d x ] || mkdir x"
-install : recurse $(OBJS) $(LIB_LIB)
- @$(MKDIR) "$(top_builddir)/$(installdir)"
-ifndef SILENT
- @-echo "[INSTALL] $(patsubst $(top_builddir)/$(builddir)/%,%,$(TARGETS))";
-endif
- $(Q)-$(CP) $(TARGETS) "$(top_builddir)/$(installdir)"
+install : recurse $(OBJS) $(LIB_LIB) $(addprefix install,$(TARGETS))
else
# used in subdirs like libc/ctype whose files
# are contained in a parent's library
tag = GPTR_TAG_CODE;
} else if (IS_PTR(rtype)) {
PERFORM_ONCE(weirdcast,
- fprintf (stderr, "%s:%u: WARNING: casting `(generic*)(unknown*)' -- assumimg __data space\n", ic->filename, ic->lineno);
+ fprintf (stderr, "%s:%u: WARNING: casting `(generic*)(unknown*)' -- assuming __data space\n", ic->filename, ic->lineno);
);
tag = GPTR_TAG_DATA;
} else {
PERFORM_ONCE(weirdcast,
- fprintf (stderr, "%s:%u: WARNING: casting `(generic*)(non-pointer)' -- assumimg __data space\n", ic->filename, ic->lineno);
+ fprintf (stderr, "%s:%u: WARNING: casting `(generic*)(non-pointer)' -- assuming __data space\n", ic->filename, ic->lineno);
);
tag = GPTR_TAG_DATA;
}