2001-03-20 Michael Chastain <chastain@redhat.com>
[deliverable/binutils-gdb.git] / binutils / mpw-make.sed
index 4cc3c2886fc43ec08a5b2b38232f356c609916b3..03abffe18f8a23b8fc96db9b425bcb42813926b2 100644 (file)
 # Whack out unused host define bits.
 /HDEFINES/s/@HDEFINES@//
 
+# Don't build specialized tools.
 /BUILD_NLMCONV/s/@BUILD_NLMCONV@//
 /BUILD_SRCONV/s/@BUILD_SRCONV@//
 /BUILD_DLLTOOL/s/@BUILD_DLLTOOL@//
 
 /UNDERSCORE/s/@UNDERSCORE@/{UNDERSCORE}/
 
+# Don't need this.
+/@HLDFLAGS@/s/@HLDFLAGS@//
+
+# Point at the libraries directly.
+/@BFDLIB@/s/@BFDLIB@/::bfd:libbfd.o/
+/@OPCODES@/s/@OPCODES@/::opcodes:libopcodes.o/
+
 # Whack out target makefile fragment.
 /target_makefile_fragment/s/target_makefile_fragment@//
 
 /BISON/s/^BISON =.*$/BISON = byacc/
 #/BISONFLAGS/s/^BISONFLAGS =.*$/BISONFLAGS = /
 
+# Embed the version in symbolic doublequotes that will expand to
+# the right thing for each compiler.
+/VERSION/s/'"{VERSION}"'/{dq}{VERSION}{dq}/
+
 # '+' is a special char to MPW, don't use it ever.
 /c++filt/s/c++filt/cplusfilt/
 
+# All of the binutils use the same Rez file, change names to refer to it.
 /^{[A-Z]*_PROG}/s/$/ "{s}"mac-binutils.r/
 /{[A-Z]*_PROG}\.r/s/{[A-Z]*_PROG}\.r/mac-binutils.r/
 
@@ -77,13 +90,7 @@ stamps \\Option-f stamp-under\
 install \\Option-f  all install-only\
 \
 install-only \\Option-f\
-       If "`Exists "{prefix}"`" == ""\
-               Echo "{prefix}" does not exist, cannot install anything\
-               Exit 1\
-       End If\
-       If "`Exists "{bindir}"`" == ""\
-               NewFolder "{bindir}"\
-       End If\
+       NewFolderRecursive "{bindir}"\
        # Need to copy all the tools\
        For prog in {PROGS}\
                Set progname `echo {prog} | sed -e 's/.new//'`\
This page took 0.02344 seconds and 4 git commands to generate.