Kill r16/rce/acp stuff.
[deliverable/binutils-gdb.git] / ld / mpw-make.sed
index f672da098704d720c3d783967dd63738a6a30524..3d82a646ba99fc2faff317778ff22ca0e84a7a0c 100644 (file)
 /ldemul-list.h/s/"{s}"ldemul-list\.h/"{o}"ldemul-list.h/g
 /ldemul-list.h/s/^ldemul-list\.h/"{o}"ldemul-list.h/
 
+# Edit pathnames to emulation files.
 /"{s}"e.*\.c/s/"{s}"e\([-_a-z0-9]*\)\.c/"{o}"e\1.c/g
 /^e.*\.c/s/^e\([-_a-z0-9]*\)\.c/"{o}"e\1.c/
 
+# We can't run genscripts, so don't try.
+/{GENSCRIPTS}/s/{GENSCRIPTS}/null-command/
+
+# Comment out the TDIRS bits.
+/^TDIRS@/s/^/#/
+
+# Point at the BFD library directly.
+/@BFDLIB@/s/@BFDLIB@/::bfd:libbfd.o/
+
+# Don't need this.
+/@HLDFLAGS@/s/@HLDFLAGS@//
+
 #/sed.*free/,/> "{o}"ldlex.c.new/c\
 #      \       Catenate "{o}"lex.yy.c >"{o}"ldlex.c.new
 
 # The resource file is called mac-ld.r.
 /{LD_PROG}.r/s/{LD_PROG}\.r/mac-ld.r/
 
+/^install \\Option-f /,/^$/c\
+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\
+       Duplicate -y :ld.new "{bindir}"ld\
+
+
 # Remove dependency rebuilding crud.
 /^.dep /,/# .PHONY /d
 
This page took 0.02992 seconds and 4 git commands to generate.