From a6bd1bd7bdde363e839b2eaae995f9f89d477213 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 10 Dec 2002 01:43:05 +0000 Subject: [PATCH] ICU-2330 mh-darwin update for 10.2 (GCC3) X-SVN-Rev: 10573 --- icu4c/source/config/mh-darwin | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/icu4c/source/config/mh-darwin b/icu4c/source/config/mh-darwin index 8511e247983..d917fdeda96 100644 --- a/icu4c/source/config/mh-darwin +++ b/icu4c/source/config/mh-darwin @@ -4,7 +4,7 @@ ## Copyright (c) 1999-2002, International Business Machines Corporation and ## others. All Rights Reserved. ## -## $Id: mh-darwin,v 1.23 2002/05/29 16:45:06 grhoten-oss Exp $ +## $Id: mh-darwin,v 1.24 2002/12/10 01:43:05 srl Exp $ ## Flags for position independent code SHAREDLIBCFLAGS = -dynamic @@ -12,8 +12,8 @@ SHAREDLIBCXXFLAGS = -dynamic SHAREDLIBCPPFLAGS = ## Commands to generate dependency files -GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) -GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) +GEN_DEPS.c= $(CC) -E -MMD $(DEFS) $(CPPFLAGS) +GEN_DEPS.cc= $(CXX) -E -MMD $(DEFS) $(CPPFLAGS) ## Commands to compile COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -fno-common -c @@ -56,15 +56,20 @@ MIDDLE_SO_TARGET = $(basename $(SO_TARGET)).$(SO_TARGET_VERSION_MAJOR).$(SO) ## Dependency rules %.d : $(srcdir)/%.c @echo "generating dependency information for $<" - @$(SHELL) -ec '$(GEN_DEPS.c) $< \ - | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ - [ -s $@ ] || rm -f $@' + @$(GEN_DEPS.c) $< -o $@ + @mv $@ $@~ + @echo -n "$@ " > $@ + @cat < $@~ >> $@ + @-rm $@~ %.d : $(srcdir)/%.cpp @echo "generating dependency information for $<" - @$(SHELL) -ec '$(GEN_DEPS.cc) $< \ - | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ - [ -s $@ ] || rm -f $@' + @$(GEN_DEPS.cc) $< -o $@ + @mv $@ $@~ + @( echo '/h$$' ; echo '+,$$d' ; echo "wq" ) | ed $@~ 2>/dev/null >/dev/null || exit 0 + @echo -n "$@ " > $@ + @cat < $@~ >> $@ + @-rm $@~ ## Versioned libraries rules