Do-first:
-mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw"
+mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r mpw-init.c ChangeLog.mpw"
if ( echo $* | grep keep\-mpw > /dev/null ) ; then
keep_these_too="${mpw_files} ${keep_these_too}"
fi
fi
-gm_files="mpw-xconfig.in mpw-init.c ChangeLog.gm"
-
-if ( echo $* | grep keep\-gm > /dev/null ) ; then
- keep_these_too="${gm_files} ${keep_these_too}"
- if [ -n "${verbose}" ] ; then
- echo Keeping ${gm_files}
- fi
-else
- lose_these_too="${gm_files} ${lose_these_too}"
- if [ -n "${verbose}" ] ; then
- echo Deleting ${gm_files}
- fi
-fi
-
hpread_files="hpread.c ChangeLog.hpread"
if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+Mon Sep 12 17:44:58 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * mpw-config.in: Use nm-empty.h if host is not target.
+ (xdepfiles): Add mac-xdep.c.o.
+ (xm_file): Remove.
+ * mpw-make.in: Add Fortran files.
+ (XDEPFILES): Remove.
+
Fri Aug 19 15:23:40 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-init.c (initialize_all_files): Remove inits of utils and
* mpw-make.in: New file, MPW makefile fragment.
* config/m68k/xm-mpw.h: New file, MPW host definitions.
* ser-mac.c: New file, Mac serial interface.
+ * mpw-init.c: New file, MPW x mips version of init.c.
forward-include "{srcdir}"config:m68k:xm-m68k.h 'm68k/xm-m68k.h'
+Set xdepfiles '"{o}"mac-xdep.c.o'
+
# Make a copy of this file and give it a different name, so it
# won't be confused with GDB's serial.h.
Echo "/* dummy */" >termio.h
-Set xdepfiles " "
-Set natdepfiles " "
-Set tdepfiles " "
+If "{target_canonical}" =~ /mips-idt-ecoff/
+ forward-include "{srcdir}"config:mips:tm-idt.h tm.h
+
+ forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
+ forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
+
+ Set tdepfiles '"{o}"mips-pinsn.c.o "{o}"mips-tdep.c.o "{o}"exec.c.o "{o}"remote-mips.c.o'
+End If
+
+If "{target_canonical}" != "{host_canonical}"
+ forward-include "{srcdir}"config:nm-empty.h nm.h
+ Set natdepfiles " "
+End If
-Set xm_file '"{s}"xm-mpw.h'
TM_CDEPS =
NAT_CDEPS =
-XDEPFILES = "{o}"mac-xdep.c.o
-
CC_LD = Link
gC = gC1
"{o}"utils.c.o "{o}"expprint.c.o "{o}"environ.c.o "{o}"gdbtypes.c.o "{o}"copying.c.o {DEPFILES} \Option-d
"{o}"mem-break.c.o "{o}"target.c.o "{o}"parse.c.o "{o}"language.c.o {YYOBJ} "{o}"buildsym.c.o \Option-d
"{o}"objfiles.c.o "{o}"minsyms.c.o "{o}"maint.c.o "{o}"demangle.c.o "{o}"dbxread.c.o "{o}"coffread.c.o "{o}"elfread.c.o \Option-d
- "{o}"dwarfread.c.o "{o}"mipsread.c.o "{o}"stabsread.c.o "{o}"core.c.o "{o}"c-lang.c.o "{o}"ch-lang.c.o "{o}"m2-lang.c.o \Option-d
- "{o}"complaints.c.o "{o}"typeprint.c.o "{o}"c-typeprint.c.o "{o}"ch-typeprint.c.o "{o}"m2-typeprint.c.o \Option-d
- "{o}"c-valprint.c.o "{o}"cp-valprint.c.o "{o}"ch-valprint.c.o "{o}"m2-valprint.c.o "{o}"nlmread.c.o \Option-d
+ "{o}"dwarfread.c.o "{o}"mipsread.c.o "{o}"stabsread.c.o "{o}"core.c.o "{o}"c-lang.c.o "{o}"ch-lang.c.o "{o}"f-lang.c.o "{o}"m2-lang.c.o \Option-d
+ "{o}"complaints.c.o "{o}"typeprint.c.o "{o}"c-typeprint.c.o "{o}"ch-typeprint.c.o "{o}"f-typeprint.c.o "{o}"m2-typeprint.c.o \Option-d
+ "{o}"c-valprint.c.o "{o}"cp-valprint.c.o "{o}"ch-valprint.c.o "{o}"f-valprint.c.o "{o}"m2-valprint.c.o "{o}"nlmread.c.o \Option-d
"{o}"serial.c.o "{o}"mdebugread.c.o "{o}"annotate.c.o
TSOBS =
# For now, shortcut the "configure GDB for fewer languages" stuff.
YYFILES = "{o}"c-exp.tab.c "{o}"m2-exp.tab.c "{o}"ch-exp.tab.c
-YYOBJ = "{o}"c-exp.tab.c.o "{o}"m2-exp.tab.c.o "{o}"ch-exp.tab.c.o
+YYOBJ = "{o}"c-exp.tab.c.o "{o}"m2-exp.tab.c.o "{o}"ch-exp.tab.c.o "{o}"f-exp.tab.c.o
# Prevent Sun make from putting in the machine type. Setting
# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
Delete -y y.tab.c
Rename -y c-exp.new "{o}"c-exp.tab.c
+"{o}"f-exp.tab.c.o \Option-f "{o}"f-exp.tab.c
+
+"{o}"f-exp.tab.c \Option-f "{s}"f-exp.y
+ {YACC} {YFLAGS} "{s}"f-exp.y
+ sed -e ':extern.*malloc:d' \Option-d
+ -e ':extern.*realloc:d' \Option-d
+ -e ':extern.*free:d' \Option-d
+ -e ':include.*malloc.h:d' \Option-d
+ -e 's:malloc:xmalloc:g' \Option-d
+ -e 's:realloc:xrealloc:g' \Option-d
+ < y.tab.c > f-exp.new
+ Delete -y y.tab.c
+ Rename -y f-exp.new "{o}"f-exp.tab.c
+
# ch-exp.tab.c is generated in objdir from "{s}"ch-exp.y if it doesn't exist
# in srcdir, then compiled in objdir to ch-exp.tab.c.o.
# Remove bogus decls for malloc:realloc:free which conflict with everything
"{o}"expprint.c.o \Option-f "{s}"expprint.c {defs_h} {expression_h} {gdbtypes_h} \Option-d
"{s}"language.h "{s}"parser-defs.h {symtab_h} {value_h}
+"{o}"f-lang.c.o \Option-f "{s}"f-lang.c "{s}"f-lang.h {defs_h} {expression_h} {gdbtypes_h} \Option-d
+ "{s}"language.h "{s}"parser-defs.h {symtab_h}
+
+"{o}"f-typeprint.c.o \Option-f "{s}"f-typeprint.c "{s}"f-lang.h {defs_h} {expression_h} \Option-d
+ {gdbcmd_h} {gdbcore_h} {gdbtypes_h} "{s}"language.h {symtab_h} "{s}"target.h \Option-d
+ "{s}"typeprint.h {value_h}
+
+"{o}"f-valprint.c.o \Option-f "{s}"f-valprint.c {defs_h} {expression_h} {gdbtypes_h} \Option-d
+ "{s}"language.h {symtab_h} "{s}"valprint.h {value_h}
+
"{o}"findvar.c.o \Option-f "{s}"findvar.c {defs_h} {gdbcore_h} {inferior_h} "{s}"target.h
"{o}"fork-child.c.o \Option-f "{s}"fork-child.c {wait_h} {defs_h} {gdbcore_h} \Option-d
{gdbtypes_h} "{s}"language.h "{s}"parser-defs.h {symtab_h} {value_h} \Option-d
{bfd_h} "{s}"objfiles.h "{s}"symfile.h
+f-exp.tab.c.o \Option-f f-exp.tab.c "{s}"f-lang.h {defs_h} {expression_h} \Option-d
+ {gdbtypes_h} "{s}"language.h "{s}"parser-defs.h {symtab_h} {value_h} \Option-d
+ {bfd_h} "{s}"objfiles.h "{s}"symfile.h
+
ch-exp.tab.c.o \Option-f ch-exp.tab.c "{s}"ch-lang.h {defs_h} {expression_h} \Option-d
{gdbtypes_h} "{s}"language.h "{s}"parser-defs.h {symtab_h} {value_h} \Option-d
{bfd_h} "{s}"objfiles.h "{s}"symfile.h