file nl.gmo was initially added on branch binutils-2_15-branch.
[binutils.git] / libiberty / mpw-make.sed
blob6f2a5e77b2bd15dde5b683a1bf93eed97ace6535
1 # Sed commands to finish translating libiberty's Unix makefile to MPW syntax.
3 # Comment out a useless thing.
4 /^\.always\./s/^/#/
6 # Replace the auto-generated list with the list of what we know we need.
7 s/`cat needed-list`/"{o}"alloca.c.o "{o}"bcopy.c.o "{o}"getpagesize.c.o "{o}"insque.c.o "{o}"mpw.c.o "{o}"strcasecmp.c.o "{o}"strdup.c.o "{o}"strncasecmp.c.o/
9 # Paste in some desirable definitions.
10 # The default rule here completely replaces the tricky stuff in the Unix
11 # Makefile.in.
12 /^###$/a\
14 HDEFINES = -d NEED_sys_siglist -d NEED_sys_errlist -d NEED_basename -d NEED_strcasecmp -d NEED_strncasecmp\
15 INCLUDES = -i : -i {INCDIR}: -i {INCDIR}:mpw: -i ::extra-include: -i "{s}"\
17 .c.o \\Option-f .c\
18         {CC} @DASH_C_FLAG@ {DepDir}{Default}.c {LIBCFLAGS} {INCLUDES} {HDEFINES} @SEGMENT_FLAG({Default})@ -o {TargDir}{Default}.c.o\
20 # Remove dependency on needed-list, which we don't use.
21 /DO_ALSO =/s/needed-list//
23 /INCDIR=/s/"{srcdir}"{MULTISRCTOP}::/"{topsrcdir}"/
25 # Whack out the COMPILE.c trickiness.
26 /^COMPILE.c /,/^$/d
28 # Remove the multido trickiness from the "all" target.
29 /^all \\Option-f/,/^$/c\
30 all \\Option-f {TARGETLIB}\
33 # Remove the RULE1/RULE2 crud.
34 /if \[/,/fi/d
35 /^RULE1 =/,/RULE2 =/d
36 /RULE2/s/RULE2/TARGETLIB/
38 # Don't want fdmatch ever.
39 s/ "{o}"fdmatch.c.o//
41 # Fix paths to generated files.
42 /config.h/s/"{s}"config.h/"{o}"config.h/
44 # Whack out config rebuild rules.
45 /^"{o}"config.h \\Option-f/,/^$/d