]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gdb/libiberty/mpw-make.sed
This commit was generated by cvs2svn to compensate for changes in r30302,
[FreeBSD/FreeBSD.git] / contrib / gdb / libiberty / mpw-make.sed
1 # Sed commands to finish translating libiberty's Unix makefile to MPW syntax.
2
3 # Comment out a useless thing.
4 /^\.always\./s/^/#/
5
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/
8
9 # Paste in some desirable definitions.
10 /^###$/a\
11 \
12 HDEFINES = -d NEED_sys_siglist -d NEED_sys_errlist -d NEED_basename -d NEED_strcasecmp -d NEED_strncasecmp\
13 INCLUDES = -i : -i {INCDIR}: -i {INCDIR}:mpw: -i ::extra-include: -i "{s}"\
14 \
15 .c.o \\Option-f .c\
16         {CC} {DepDir}{Default}.c {LIBCFLAGS} {INCLUDES} {HDEFINES} @SEGMENT_FLAG@ -o {TargDir}{Default}.c.o\
17
18 # Remove dependency on needed-list, which we don't use.
19 /DO_ALSO =/s/needed-list//
20
21 /INCDIR=/s/"{srcdir}"{MULTISRCTOP}::/"{topsrcdir}"/
22
23 # Whack out the COMPILE.c trickiness.
24 /^COMPILE.c /,/^$/d
25
26 # Remove the multido trickiness from the "all" target.
27 /^all \\Option-f/,/^$/c\
28 all \\Option-f {TARGETLIB}\
29
30
31 # Remove the RULE1/RULE2 crud.
32 /if \[/,/fi/d
33 /^RULE1 =/,/RULE2 =/d
34 /RULE2/s/RULE2/TARGETLIB/
35
36 # Don't want fdmatch ever.
37 s/ "{o}"fdmatch.c.o//
38
39 # Fix paths to generated files.
40 /config.h/s/"{s}"config.h/"{o}"config.h/
41
42 # Whack out config rebuild rules.
43 /^"{o}"config.h \\Option-f/,/^$/d
44
45
46
47
48
49