* stabsread.c (get_substring): Declare second arg as int.
[deliverable/binutils-gdb.git] / gdb / mpw-make.sed
index 0603bd6aaf41d218d4c58418f87a3d33f214e1ea..7275c9b49a41a7695192c326dbeae776dacc9d69 100644 (file)
@@ -1,11 +1,14 @@
 # Sed commands that finish translating the GDB Unix Makefile to MPW syntax.
 
-/^host_alias =/d
-/^target_alias =/d
+/^host_alias =/s/^/#/
+/^target_alias =/s/^/#/
 
 /^host_makefile_frag@$/d
 /^target_makefile_frag@$/d
 
+/@ENABLE_CFLAGS@/s/@ENABLE_CFLAGS@/{ENABLE_CFLAGS}/g
+/^ENABLE_CFLAGS=/s/^/#/
+
 # Edit all the symbolic definitions pointing to various libraries and such.
 
 /^INCLUDE_DIR = /s/"{srcdir}":include/"{topsrcdir}"include:/
@@ -29,6 +32,9 @@
 
 /^TERMCAP =/s/ =.*$/ =/
 
+# Whack out autoconf hook for thread debugging.
+/@CONFIG_LDFLAGS@/s/@CONFIG_LDFLAGS@//g
+
 /@DEFS@/s/@DEFS@//g
 
 /@YACC@/s/@YACC@/byacc/g
 
 /@ENABLE_CLIBS@/s/@ENABLE_CLIBS@//g
 
+/@LIBS@/s/@LIBS@//g
+
+# Whack out autoconf hook for thread debugging.
+/@THREAD_DB_OBS@/s/@THREAD_DB_OBS@//g
+
+# Fix up paths to include directories.
 /INCLUDE_DIR/s/"{s}"{INCLUDE_DIR}/{INCLUDE_DIR}/g
 /INCLUDE_DIR/s/{INCLUDE_DIR}:/{INCLUDE_DIR}/g
 /INCLUDE_DIR/s/"{INCLUDE_DIR}":/"{INCLUDE_DIR}"/g
@@ -64,8 +76,11 @@ readline_headers =\
 # Fix the syntax of bits of C code that go into version.c.
 /char /s/'char .Option-x/'char */
 
+# Point at files in the obj dir rather than src dir.
 /version/s/"{s}"version\.c/"{o}"version.c/g
 /version/s/^version\.c/"{o}"version.c/
+/config/s/"{s}"config\.h/"{o}"config.h/g
+/config/s/^config\.h/"{o}"config.h/
 /xm/s/"{s}"xm\.h/"{o}"xm.h/g
 /xm/s/^xm\.h/"{o}"xm.h/
 /tm/s/"{s}"tm\.h/"{o}"tm.h/g
@@ -130,7 +145,31 @@ readline_headers =\
        {MAKEPEF} gdb{PROG_EXT} -o gdb {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
        {REZ} "{s}"mac-gdb.r -o gdb -append -d PROG_NAME='"'gdb'"' -d VERSION_STRING='"'{version}'"'\
 
+/^install \\Option-f /,/^$/c\
+install \\Option-f all install-only\
+\
+install-only \\Option-f \
+       Duplicate -y gdb "{bindir}"gdb\
+       If "`Exists SiowGDB`" != ""\
+               Duplicate -y SiowGDB "{bindir}"SiowGDB\
+       End If\
+
+
 # Don't do any recursive subdir stuff.
 / subdir_do/s/{MAKE}/null-command/
 
+# Edit out actions that only confuse MPW Make.
 /^config.status \\Option-f/,/^$/d
+/^Makefile \\Option-f/,/^$/d
+
+/^"{o}"config.h \\Option-f/s/^/#/
+
+# Add an action to build SIOWgdb.
+$a\
+SIOWgdb \\Option-f {OBS} {TSOBS} {ADD_DEPS} {CDEPS} "{o}"init.c.o\
+       Delete -i -y SIOWgdb\
+       {CC_LD} {INTERNAL_LDFLAGS} -t 'APPL' -c 'gdb ' -o SIOWgdb{PROG_EXT} "{o}"init.c.o {OBS} {TSOBS} {ADD_FILES} {CLIBS} {SIOW_LIB} {LOADLIBES} {EXTRALIBS}\
+       {MAKEPEF} SIOWgdb{PROG_EXT} -o SIOWgdb -ft 'APPL' -fc 'gdb ' {MAKEPEF_FLAGS} \
+       {REZ} -o SIOWgdb "{RIncludes}"siow.r -append -d __kPrefSize=5000 -d __kMinSize=2000 -d APPNAME='"'SIOWgdb'"' \
+       {REZ} "{s}"mac-gdb.r -o SIOWgdb -append -d VERSION_STRING='"'{version}'"'\
+
This page took 0.023917 seconds and 4 git commands to generate.