* config/tc-sparc.c (parse_keyword_arg): Accept leadling '%'.
[deliverable/binutils-gdb.git] / gas / mpw-make.sed
CommitLineData
6144e9a9
SS
1# Sed commands that finish translating the GAS Unix Makefile to MPW syntax.
2
3/^# @target_frag@/a\
4\
5HDEFINES = \
6LOCAL_LOADLIBES = \
7
8/^srcroot = /s/^/#/
9/^target_alias = /s/^/#/
10
11/INCLUDES/s/-i "{srcdir}":\([a-z]*\)/-i "{topsrcdir}"\1/
12/INCLUDES/s/-i "{srcdir}"\.\./-i "{topsrcdir}"/
13
14/^INCLUDES = .*$/s/$/ -i "{topsrcdir}"include:mpw: -i ::extra-include:/
15
16/$(TARG_CPU_DEP_@target_cpu_type@)/s/$(TARG_CPU_DEP_@target_cpu_type@)/{TARG_CPU_DEP}/
17
18/@OPCODES_LIB@/s/@OPCODES_LIB@/::opcodes:libopcodes.o/
19/@BFDLIB@/s/@BFDLIB@/::bfd:libbfd.o/
20
21/extra_objects@/s/extra_objects@/{EXTRA_OBJECTS}/
22
23/LOADLIBES/s/{LOADLIBES}/{EXTRALIBS}/
24
25/@ALL_OBJ_DEPS@/s/@ALL_OBJ_DEPS@/::bfd:bfd.h/
26
27# This causes problems - not sure why.
28/^tags TAGS/,/etags /d
29
30/^make-gas.com/s/^/#/
31
32/true/s/ ; @true$//
33
34# Remove references to conf.in, we don't need them.
35/conf\.in/s/conf\.in//g
36
37# Use _gdbinit everywhere instead of .gdbinit.
38/gdbinit/s/\.gdbinit/_gdbinit/g
39
40/atof-targ/s/"{s}"atof-targ\.c/"{o}"atof-targ.c/g
41/config/s/"{s}"config\.h/"{o}"config.h/g
42/config/s/^config\.h/"{o}"config.h/
43/obj-format/s/"{s}"obj-format\.c/"{o}"obj-format.c/g
44/obj-format/s/"{s}"obj-format\.h/"{o}"obj-format.h/g
45/targ-cpu/s/"{s}"targ-cpu\.c/"{o}"targ-cpu.c/g
46/targ-cpu/s/"{s}"targ-cpu\.h/"{o}"targ-cpu.h/g
47/targ-env/s/"{s}"targ-env\.h/"{o}"targ-env.h/g
48
49/m68k-parse.c/s/"{s}"m68k-parse\.c/"{o}"m68k-parse.c/g
50/m68k-parse.c/s/^m68k-parse\.c/"{o}"m68k-parse.c/
51
52# Whack out the config.h dependency, it only causes excess rebuilds.
53/{OBJS}/s/{OBJS} \\Option-f "{o}"config.h/{OBJS} \\Option-f/
54/gasp.c/s/gasp\.c "{o}"config.h/gasp.c/
55
ee68a042
RJ
56# ALL_CFLAGS includes TDEFINES, which is not desirable at link time.
57/CC_LD/s/ALL_CFLAGS/CFLAGS/g
58
6144e9a9
SS
59# The resource file is called mac-as.r.
60/as.new.r/s/as\.new\.r/mac-as.r/
61/gasp.new.r/s/gasp\.new\.r/mac-as.r/
62
63# ...and the PROG_NAME doesn't have a .new in it.
64/PROG_NAME/s/PROG_NAME='"'as.new'"'/PROG_NAME='"'as'"'/
65/PROG_NAME/s/PROG_NAME='"'gasp.new'"'/PROG_NAME='"'gasp'"'/
66
67# Whack out recursive makes, they won't work.
68/^[ ][ ]*srcroot=/,/^[ ][ ]*(cd /d
69
51bc513e 70# Work around quoting problems by using multiple echo commands.
6144e9a9
SS
71/'#define GAS_VERSION "{VERSION}"'/c\
72 Echo -n '#define GAS_VERSION "' >> "{o}"config.new\
73 Echo -n "{VERSION}" >> "{o}"config.new\
74 Echo -n '"' >> "{o}"config.new
75
51bc513e
SS
76# Add a "stamps" target.
77$a\
78stamps \\Option-f config-stamp\
79
90f543f6
SS
80/^install \\Option-f/,/^$/c\
81install \\Option-f all install-only\
82\
83install-only \\Option-f\
84 If "`Exists "{prefix}"`" == ""\
85 Echo "{prefix}" does not exist, cannot install anything\
86 Exit 1\
87 End If\
88 If "`Exists "{bindir}"`" == ""\
89 NewFolder "{bindir}"\
90 End If\
91 Duplicate -y :as.new "{bindir}"as\
92 Duplicate -y :gasp.new "{bindir}"gasp\
93
94
6144e9a9 95# Whack out config-rebuilding targets, they won't work.
51bc513e 96/^Makefile \\Option-f/,/^$/d
6144e9a9
SS
97/^config.status \\Option-f/,/^$/d
98
99/^"{o}"config.h \\Option-f/s/^/#/
This page took 0.038811 seconds and 4 git commands to generate.