|
Last change
on this file since 759 was 10, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 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 | # The default rule here completely replaces the tricky stuff in the Unix
|
|---|
| 11 | # Makefile.in.
|
|---|
| 12 | /^###$/a\
|
|---|
| 13 | \
|
|---|
| 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}"\
|
|---|
| 16 | \
|
|---|
| 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\
|
|---|
| 19 |
|
|---|
| 20 | # Remove dependency on needed-list, which we don't use.
|
|---|
| 21 | /DO_ALSO =/s/needed-list//
|
|---|
| 22 |
|
|---|
| 23 | /INCDIR=/s/"{srcdir}"{MULTISRCTOP}::/"{topsrcdir}"/
|
|---|
| 24 |
|
|---|
| 25 | # Whack out the COMPILE.c trickiness.
|
|---|
| 26 | /^COMPILE.c /,/^$/d
|
|---|
| 27 |
|
|---|
| 28 | # Remove the multido trickiness from the "all" target.
|
|---|
| 29 | /^all \\Option-f/,/^$/c\
|
|---|
| 30 | all \\Option-f {TARGETLIB}\
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | # Remove the RULE1/RULE2 crud.
|
|---|
| 34 | /if \[/,/fi/d
|
|---|
| 35 | /^RULE1 =/,/RULE2 =/d
|
|---|
| 36 | /RULE2/s/RULE2/TARGETLIB/
|
|---|
| 37 |
|
|---|
| 38 | # Don't want fdmatch ever.
|
|---|
| 39 | s/ "{o}"fdmatch.c.o//
|
|---|
| 40 |
|
|---|
| 41 | # Fix paths to generated files.
|
|---|
| 42 | /config.h/s/"{s}"config.h/"{o}"config.h/
|
|---|
| 43 |
|
|---|
| 44 | # Whack out config rebuild rules.
|
|---|
| 45 | /^"{o}"config.h \\Option-f/,/^$/d
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.