VPATH = /afs/cs/project/midway-4/src/compiler/gcc-1.37/src
#
# Modified 4Sep92 WAS to support version 2.1 gcc
#

# Makefile for GNU C compiler.
#   Copyright (C) 1987, 1988 Free Software Foundation, Inc.

#This file is part of GNU CC.

#GNU CC is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 1, or (at your option)
#any later version.
 
#GNU CC is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with GNU CC; see the file COPYING.  If not, write to
#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.



#
# Set optimization level for the compiler
#
OPT = -O


#VPATH = ../../../../build/src/gcc

midwaydir = /afs/cs/project/midway
#gccdir =/afs/.cs.cmu.edu/misc/gnu-comp/@sys/${cmurelease}
#docdir =/afs/.cs.cmu.edu/misc/gnu-comp/vax_mach/${cmurelease}/doc
#srcdir =/afs/.cs.cmu.edu/misc/gnu-comp/build/src/gcc
#builddir = /afs/.cs.cmu.edu/misc/gnu-comp/build/obj/@sys/$(cmurelease)/gcc
dir = $(midwaydir)/
gccdir = $(midwaydir)/release/@sys
docdir = $(dir)/obj/vax_mach/doc
#WAS-24MAR92#srcdir = $(dir)/src/compiler/gnu-comp/src
#WAS-22MAR94#srcdir = $(dir)/src/compiler/gcc.shread/src
srcdir = /afs/cs/project/midway-4/src/compiler/gcc-1.37/src
builddir = $(dir)/build/obj/@sys/$(cmurelease)/gcc
XCFLAGS = $(OPT)
INSTALL_SW = 
#OLDCC = /usr/cs/bin/cc
#WAS-24MAR92##OLDCC = /usr/misc/.gnu-comp/bin/gcc
#WAS-24MAR92#OLDCC = /afs/cs/project/mach/mach3/latest/release/@sys/bin/gcc
OLDCC = /usr/misc/.gnu-comp/bin/gcc
# This should be the version of ar to use with output from GCC.
# OLDCC should not be the GNU C compiler.

# Directory in which to put the executable for the command `gcc'
bindir = $(gccdir)/bin
# Directory not specified here so that, if a GNU ranlib
# is earlier in the path, it will be used.
# That is likely to be true on systems that have the GNU ar
# installed earlier in the path.
RANLIB = ranlib
# Directory in which to put the subprograms used by the compiler.
libdir = $(gccdir)/lib
# Directory in which to put the test executable for the command `gcc'
tstbindir = $(builddir)/tst/bin
# Directory in which to put the test subprograms used by the compiler.
tstlibdir = $(builddir)/tst/lib
# Directory in which to put man pages.
mandir = $(gccdir)/man
# Number to put in man-page filename.
manext = 1

#CC = $(bindir)/gcc
CC = $(OLDCC)
INSTALL = cp
BISON = $(bindir)/bison
BISONFLAGS = -v
DVIPS = dvips
MAKE = make
AR = /bin/ar
TEX = /afs/cs.cmu.edu/@sys/omega/usr/misc/.tex/bin/tex
SHELL = /bin/sh
# on sysV, define this as cp.
#INSTALL = install -c

std_prefix=truegcc-
# truegcc so that g++ can use the gcc-prefix without conflict
tst_prefix=tstgcc-

GCC_CPP_DEFS =  -DSTANDARD_EXEC_PREFIX=\"${libdir}/${std_prefix}\" \
		-DSTANDARD_STARTFILE_PREFIX=\"${libdir}/\" \
		-DDEFAULT_TARGET_MACHINE=\"\"
TST_GCC_CPP_DEFS =  -DSTANDARD_EXEC_PREFIX=\"${tstlibdir}/${tst_prefix}\" \
		    -DSTANDARD_STARTFILE_PREFIX=\"/usr/cs/lib/\" \
	  	    -DDEFAULT_TARGET_MACHINE=\"\"

# Variables that exist for you to override.
# See below for how to change them for certain systems.

I386_CFLAGS= $(XCFLAGS) -DMIDWAY
PMAX_CFLAGS= $(XCFLAGS) -DMIDWAY
DEFCFLAGS= $(OPT) $(XCFLAGS) -DMIDWAY
CFLAGS = ${$(MACHINE)_CFLAGS?$($(MACHINE)_CFLAGS):$(DEFCFLAGS)}

# to suppress optimizations on the encore compiler (when using OLDCC)
#MMAX_FLAGS= -q nooptimize -tp -B/usr/cs/lib/
MMAX_FLAGS= -q nooptimize 
#PMAX_FLAGS= -O
PMAX_FLAGS= $(OPT)
SUN4_FLAGS= -g -tp -B/usr/cs/lib/

# CFLAGS for use with OLDCC, for compiling gnulib.
# NOTE: -O does not work on some Unix systems!
# On them, you must take it out.

DEFCCLIBFLAGS=-O -tp -B/usr/cs/lib/

CCLIBFLAGS=${$(MACHINE)_FLAGS?$($(MACHINE)_FLAGS):$(DEFCCLIBFLAGS)}

# This should be the version of ar to use with output from $(OLDCC).
OLDAR = ar

# CFLAGS for use with OLDCC, for compiling hard-params.

#MMAX_HARD_PARAMS_FLAGS= -q nooptimize -tp -B/usr/cs/lib/ -DNO_SC
MMAX_HARD_PARAMS_FLAGS= -q nooptimize -DNO_SC
PMAX_HARD_PARAMS_FLAGS= -DNO_SC
DEF_HARD_PARAMS_FLAGS=-tp -B/usr/cs/lib/ -DNO_SC
#HARD_PARAMS_FLAGS=${$(MACHINE)_HARD_PARAMS_FLAGS}
HARD_PARAMS_FLAGS=${$(MACHINE)_HARD_PARAMS_FLAGS?${$(MACHINE)_HARD_PARAMS_FLAGS}:$(DEF_HARD_PARAMS_FLAGS)}


# Change this to a null string if obstacks are installed in the
# system library.
OBSTACK=obstack.o

# Directory to link to, when using the target `maketest'.
DIR = ../gcc

# End of variables for you to override.


# Variables you should change for certain systems.

# These are what you would need on HPUX:
# CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300
# If you are using the GNU assembler and linker on HPUX,
# add -I../hp-include to CFLAGS.
# -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
# bites whenever tree.def, rtl.def or machmode.def is included
# (ie., on every source file).
# If you have a floating point accelerator, you might want -lsetjmp as well.
# CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -O
# HARD_PARAMS_FLAGS = -Wc,-Ns2000 -Wc,-Ne700
# INSTALL = cp
# For CCLIBFLAGS you might want to specify the switch that
# forces only 68000 instructions to be used.
# If using the GNU assembler and linker, set AR to the GNU ar program,
# wherever that is.
# To get a working alloca, you may need to get alloca.s from Emacs
# and assemble it into alloca.o rather than using alloca.c.

# On the Sequent, you may need to set CCLIBFLAG to empty.

# On the 3b1, this line may help you compile gnulib
# if you already have a prior version of gcc installed.
# CCLIBFLAGS = -B/usr/local/lib/gcc- -tp -Wp,-traditional

# On SysV from SCO, uncomment these lines as well as those for SysV in general.
# You might also want to remove limits.h from the definition of USER_H,
# since the one that comes with the system is good for POSIX.
# RANLIB = :
# CC = rcc
# OLDCC = rcc

# On a 386 running an ISC system, uncomment the following lines.
# You also need to add -D_POSIX_SOURCE to CFLAGS
# when compiling with GCC.
# INSTALL = cp
# CLIB = -lPW -lcposix

# If you are making gcc for the first time, and if you are compiling it with
# a non-gcc compiler, and if your system doesn't have a working alloca() in any
# of the standard libraries (as is true for HP/UX or Genix),
# then un-comment the following line when compiling with the system's cc:
# temporary to bootstrap encore - lingsy

MMAX_ALLOCA = alloca.o
DEFALLOCA=
ALLOCA=${$(MACHINE)_ALLOCA?$($(MACHINE)_ALLOCA):$(DEFALLOCA)}
# But don't do that if compiling using GCC.

# If your system has a working alloca in /lib/libPW.a,
# un-comment the following line.  Note that -lPW doesn't work on HPUX or IRIX.
# CLIB= -lPW

# On SysV R4, when compiling with PCC, you can get alloca as follows:
# CLIB = -lc /usr/ucblib/libucb.a
# -lc is needed because if libucb.a were searched before libc.a,
# you would get an incompatible stdio package that won't work.

# On the NCR Tower 32 running SVR3, says ra@intsys.no :
# Do *not* enable optimization in CFLAGS when using the native cc, because:
# a) The optimizer seems to loop when invoked with -O2.
# b) The -O1 level does stack/frame pointer optimizations that make the
#    assembler alloca in libPW.a fail, and the C alloca eats *lots* of memory.
# c) gcc will eventually be recompiled with itself, so all this doesn't matter.
# CFLAGS = -g -O0
# HARD_PARAMS_FLAGS = -O0
# CCLIBFLAGS = -O2
# CLIB = -lmalloc -lPW
 
# On a pyramid, you need to uncomment the following line:
# CLIB = -lc /usr/.attlib/libPW.a

# If your system's malloc() routine fails for any reason (as it does on
# certain versions of Genix), try getting the files
# malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
# MALLOC = malloc.o

# To build gcc for Apollo 68K machines you must be running at least SR10.2
# with the 6.7 version of the C compiler. Use 'apollo68' as the argument to
# config.gcc, then go into a bsd4.3 environment and use this:
# CFLAGS = -g -O -Acpu,3000 -Arun,bsd4.3 -Asys,any -Anansi $(XCFLAGS)
# CCLIBFLAGS = -O -Acpu,3000 -Arun,bsd4.3 -Asys,any -Anansi
# HARD_PARAMS_FLAGS= -Anansi
# (Says vasta@apollo.com.)


# Dependency on obstack, alloca, malloc or whatever library facilities
# are not installed in the system libraries.
LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)

# How to link with both our special library facilities
# and the system's installed libraries.
LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(CLIB)

SUN4_EXTRALIBS= -lm
DEFEXTRALIBS= 
EXTRALIBS = ${$(MACHINE)_EXTRALIBS?$($(MACHINE)_EXTRALIBS):$(DEFEXTRALIBS)}


# Specify the directories to be searched for header files.
# Both . and srcdir are used, in that order,
# so that tm.h and config.h will be found in the compilation
# subdirectory rather than in the source directory.
INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config

# Always use -I$(srcdir)/config when compiling.
.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< 

# Language-specific object files for C.
C_OBJS = c-parse.tab.o c-decl.o c-typeck.o c-convert.o

# Language-specific object files for C++.
# (These are not yet released.)
CPLUS_OBJS = cplus-parse.o cplus-decl.o cplus-typeck.o \
   cplus-cvt.o cplus-search.o cplus-lex.o \
   cplus-class.o cplus-init.o cplus-method.o

# Language-independent object files.
OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
 rtl.o rtlanal.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o \
 symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o \
 integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o \
 regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
 insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o

# Files to be copied away after each stage in building.
STAGE_GCC=tstgcc
STAGE_CPP=tstcpp
STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
 insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
 stamp-flags stamp-config stamp-codes \
 stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
 genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
 cc1 tstcccp # cc1plus

# Members of gnulib.
LIBFUNCS = _eprintf _builtin_new _builtin_New _builtin_del _bb \
   _umulsi3 _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
   _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
   _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 \
   _fixunsdfsi _fixdfsi _floatsidf _truncdfsf2 _extendsfdf2 \
   _addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3

# Library members defined in gnulib2.c.
LIB2FUNCS = _adddi3 _subdi3 _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
    _anddi3 _iordi3 _xordi3 _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _one_cmpldi2  \
    _bdiv _cmpdi2 _ucmpdi2 _fixunsdfdi _fixdfdi _floatdidf _varargs

# Header files that are made available to programs compiled with gcc.
USER_H = stddef.h assert.h va-i860.h va-mips.h va-pyr.h va-sparc.h \
    va-spur.h limits.h proto.h

# The files that "belong" in CONFIG_H are deliberately omitted
# because having them there would not be useful in actual practice.
# All they would do is cause complete recompilation every time
# one of the machine description files is edited.
# That may or may not be what one wants to do.
# If it is, rm *.o is an easy way to do it.
# CONFIG_H = config.h tm.h
CONFIG_H =
RTL_H = rtl.h rtl.def machmode.def
TREE_H = tree.h real.h tree.def machmode.def
CPLUS_TREE_H = $(TREE_H) cplus-tree.h c-tree.h

# Note that dependencies on obstack.h are not written
# because that file is not part of GCC.
# Dependencies on gvarargs.h are not written
# because all that file does, when not compiling with GCC,
# is include the system varargs.h.

tstall: config.status gnulib tstgcc cc1 tstcpp float.h tstgnulib2  # cc1plus 

all: config.status gnulib gcc cc1 cpp float.h gnulib2  # cc1plus 

tstlang-c: config.status gnulib tstgcc cc1 tstcpp tstgnulib2
# tstlang-cplus: config.status gnulib tstgcc cc1plus tstcpp tstgnulib2

# Use this instead of `all' if you need to convert the libraries
# before you can use the compiler.
# Don't forget to do `make gnulib2' before installation.
all-libconvert: config.status gnulib gcc cc1 cpp float.h # cc1plus

lang-c: config.status gnulib gcc cc1 cpp gnulib2 
# lang-cplus: config.status gnulib gcc cc1plus cpp gnulib2 

config.status:
	@echo You must configure gcc.  Look at the INSTALL file for details.
	@false

doc: $(srcdir)/cpp.info $(srcdir)/gcc.info $(srcdir)/gplus.info

compilations: ${OBJS}

tstgcc: tstgcc.o version.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o gccnew tstgcc.o version.o $(LIBS)
# Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
	mv gccnew tstgcc

gcc: gcc.o version.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
# Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
	mv gccnew gcc
# Dump a specs file to make -B./ read these specs over the installed ones
	./gcc -dumpspecs > specs



cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS) $(EXTRALIBS)

cc1plus: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)

#Library of arithmetic subroutines
# Don't compile this with gcc!
# (That would cause most arithmetic functions to call themselves.)
gnulib: gnulib.c $(CONFIG_H) config.status
	-rm -f stamp-gnulib2
	-rm -f stamp-tstgnulib2
	rm -f tmpgnulib gnulib; \
	for name in $(LIBFUNCS); \
	do \
	  echo $${name}; \
	  rm -f $${name}.c; \
	  cp $(srcdir)/gnulib.c $${name}.c; \
	  $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $${name}.c; \
	  $(OLDAR) qc tmpgnulib $${name}.o; \
	  rm -f $${name}.[co]; \
	done
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ;then $(RANLIB) tmpgnulib; else true; fi
# Actually build it in tmpgnulib above, then rename now,
# so that gnulib itself remains nonexistent if compilation is aborted.
	mv tmpgnulib gnulib
	-if [ -f /usr/bin/ranlib ] ; then ranlib gnulib ;fi
# On HPUX, if you are working with the GNU assembler and linker,
# the previous two command lines must be replaced with the following line.
# No change is needed here if you are using the HPUX assembler and linker.
#	../hp-bin/hpxt tmpgnulib gnulib

tstgnulib2: stamp-tstgnulib2;
stamp-tstgnulib2: gnulib2.c gnulib cc1 tstgcc tstcpp $(CONFIG_H)
	-rm cpp
	-ln tstcpp cpp
	for name in $(LIB2FUNCS); \
	do \
	  echo $${name}; \
	  ./tstgcc -B./ -fstrength-reduce -O $(INCLUDES) $(GNULIB2_CFLAGS) -c -DL$${name} $(srcdir)/gnulib2.c -o $${name}.o; \
	  $(AR) rc gnulib $${name}.o; \
	  rm -f $${name}.o; \
	done
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then $(RANLIB) gnulib; else true; fi
# On HPUX, if you are working with the GNU assembler and linker,
# the previous line must be commented out.
# No change is needed here if you are using the HPUX assembler and linker.
	-rm -f cpp
	touch stamp-tstgnulib2


gnulib2: stamp-gnulib2;
stamp-gnulib2: gnulib2.c gnulib cc1 gcc cpp $(CONFIG_H)
	for name in $(LIB2FUNCS); \
	do \
	  echo $${name}; \
	  ./gcc -B./ -fstrength-reduce -O $(INCLUDES) $(GNULIB2_CFLAGS) -c -DL$${name} $(srcdir)/gnulib2.c -o $${name}.o; \
	  $(AR) rc gnulib $${name}.o; \
	  rm -f $${name}.o; \
	done
	if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then  ranlib gnulib ;fi
# On HPUX, if you are working with the GNU assembler and linker,
# the previous line must be commented out.
# No change is needed here if you are using the HPUX assembler and linker.
	touch stamp-gnulib2



float.h: hard-params
# Originally, we used `make' rather than $(MAKE), to avoid propagating
# a CC=gcc command option.  However, since hard-params is now made
# with $(OLDCC) explicitly, this is no longer important.
# However, $(MAKE) fails on some systems where it isn't defined.
# `make' has the disadvantage of sometimes running the system's make,
# instead of GNU make.  And the system's make might not support VPATH.
# However, the compilation of hard-params should not need to use VPATH,
# due to the explicit use of `$(srcdir)'.
	-./hard-params -f > float.h
 
# Compile hard-params with standard cc.  It avoids some headaches.
hard-params: hard-params.o
	$(OLDCC) $(HARD_PARAMS_FLAGS) $(LDFLAGS) hard-params.o -o $@
hard-params.o: $(srcdir)/hard-params.c
	-cp $(srcdir)/hard-params.c . > /dev/null 2>&1
	$(OLDCC) $(HARD_PARAMS_FLAGS) $(CPPFLAGS) -c hard-params.c -o $@
  
# C language specific files.

c-parse.tab.o : $(srcdir)/c-parse.tab.c $(CONFIG_H) $(TREE_H) c-parse.h c-tree.h input.h
	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.tab.c
$(srcdir)/c-parse.tab.c : $(srcdir)/c-parse.y
	$(BISON) $(BISONFLAGS) $(srcdir)/c-parse.y -o $@

c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h \
	   c-parse.h flags.h
c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H)\
	   c-tree.h flags.h
c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H)

# C++ language specific files.

cplus-parse.o : $(srcdir)/cplus-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
	$(CC) -c $(CFLAGS) $(INCLUDES) \
  -DPARSE_OUTPUT=\"$(PWD)/cplus-parse.output\" \
  `echo $(srcdir)/cplus-parse.c | sed 's,^\./,,'`
  
$(srcdir)/cplus-parse.h $(srcdir)/cplus-parse.c : $(srcdir)/cplus-parse.y
	@echo expect 49 shift/reduce conflicts and 4 reduce/reduce conflicts
	$(BISON) $(BISONFLAGS) -d -o $(srcdir)/cplus-parse.c $(srcdir)/cplus-parse.y

cplus-lex.o : cplus-lex.c $(CONFIG_H) $(CPLUS_TREE_H) $(srcdir)/cplus-parse.h

cplus-decl.o : cplus-decl.c $(CONFIG_H) $(CPLUS_TREE_H) \
	flags.h
cplus-typeck.o : cplus-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) \
	flags.h
cplus-class.o : cplus-class.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-init.o : cplus-init.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-method.o : cplus-method.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-cvt.o : cplus-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-search.o : cplus-search.c $(CONFIG_H) $(CPLUS_TREE_H)
new-method.o : new-method.c $(CONFIG_H) $(CPLUS_TREE_H)

# Language-independent files.

tstgcc.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
	cp gcc.c tstgcc.c
	$(CC) $(CFLAGS) $(INCLUDES) $(TST_GCC_CPP_DEFS) -c tstgcc.c 

gcc.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
	$(CC) $(CFLAGS) $(INCLUDES) \
	$(GCC_CPP_DEFS) -E -c \
	`echo $(srcdir)/gcc.c | sed 's,^\./,,'`

version.o: version.c
obstack.o: obstack.c
 

tree.o : tree.c $(CONFIG_H) $(TREE_H) flags.h
print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) $(RTL_H)
fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H)
toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h

rtl.o : rtl.c $(CONFIG_H) $(RTL_H)

rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
 
varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h expr.h \
	insn-codes.h hard-reg-set.h
stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
	insn-flags.h insn-config.h insn-codes.h expr.h regs.h hard-reg-set.h recog.h
expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
	insn-flags.h insn-codes.h expr.h insn-config.h recog.h typeclass.h
expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
	insn-flags.h insn-codes.h expr.h insn-config.h recog.h
explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
	expr.h insn-codes.h
optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
	insn-flags.h insn-codes.h expr.h insn-config.h recog.h
symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h gdbfiles.h
dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h 
sdbout.o : sdbout.c $(CONFIG.H) $(TREE_H) $(RTL_H) 

emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) \
	regs.h insn-config.h real.h

integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
	flags.h expr.h insn-flags.h insn-codes.h

jump.o : jump.c $(CONFIG_H) $(RTL_H) \
	flags.h regs.h
stupid.o : stupid.c $(CONFIG_H) $(RTL_H) \
	regs.h hard-reg-set.h

cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h
loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
	regs.h hard-reg-set.h recog.h flags.h expr.h
flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h
combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h  \
	insn-config.h regs.h basic-block.h recog.h
regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
	basic-block.h regs.h insn-config.h recog.h 
local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h regs.h \
	hard-reg-set.h insn-config.h recog.h
global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h \
	basic-block.h regs.h hard-reg-set.h insn-config.h

reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
	reload.h recog.h hard-reg-set.h insn-config.h regs.h
reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h  \
	reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
	reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
final.o : final.c $(CONFIG_H) $(RTL_H) flags.h regs.h recog.h conditions.h \
	gdbfiles.h insn-config.h real.h output.h
recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
	regs.h recog.h hard-reg-set.h insn-config.h real.h

# Normally this target is not used; but it is used if you
# define ALLOCA=alloca.o.  In that case, you must get a suitable alloca.c
# from the GNU Emacs distribution.
# Note some machines won't allow $(CC) without -S on this source file.
alloca.o:	alloca.c
	$(CC) $(CFLAGS) -S `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
	as alloca.s -o alloca.o

# Now the source files that are generated from the machine description.

.PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c

# The following pair of rules has this effect:
# genconfig is run only if the md has changed since genconfig was last run;
# but the file insn-config.h is touched only when its contents actually change.

# Each of the other insn-* files is handled by a similar pair of rules.

insn-config.h: stamp-config ;
stamp-config : md genconfig $(srcdir)/move-if-change
	./genconfig md > tmp-config.h
	$(srcdir)/move-if-change tmp-config.h insn-config.h
	touch stamp-config

insn-flags.h: stamp-flags ;
stamp-flags : md genflags $(srcdir)/move-if-change
	./genflags md > tmp-flags.h
	$(srcdir)/move-if-change tmp-flags.h insn-flags.h
	touch stamp-flags

insn-codes.h: stamp-codes ;
stamp-codes : md gencodes $(srcdir)/move-if-change
	./gencodes md > tmp-codes.h
	$(srcdir)/move-if-change tmp-codes.h insn-codes.h
	touch stamp-codes

insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) \
	expr.h insn-config.h real.h
	$(CC) $(CFLAGS) $(INCLUDES) -c insn-emit.c

insn-emit.c: stamp-emit ;
stamp-emit : md genemit $(srcdir)/move-if-change
	./genemit md > tmp-emit.c
	$(srcdir)/move-if-change tmp-emit.c insn-emit.c
	touch stamp-emit

insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
	$(CC) $(CFLAGS) $(INCLUDES) -c insn-recog.c

insn-recog.c: stamp-recog ;
stamp-recog : md genrecog $(srcdir)/move-if-change
	./genrecog md > tmp-recog.c
	$(srcdir)/move-if-change tmp-recog.c insn-recog.c
	touch stamp-recog

insn-extract.o : insn-extract.c $(RTL_H)
	$(CC) $(CFLAGS) $(INCLUDES) -c insn-extract.c

insn-extract.c: stamp-extract ;
stamp-extract : md genextract $(srcdir)/move-if-change
	./genextract md > tmp-extract.c
	$(srcdir)/move-if-change tmp-extract.c insn-extract.c
	touch stamp-extract

insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h \
	real.h
	$(CC) $(CFLAGS) $(INCLUDES) -c insn-peep.c

insn-peep.c: stamp-peep ;
stamp-peep : md genpeep $(srcdir)/move-if-change
	./genpeep md > tmp-peep.c
	$(srcdir)/move-if-change tmp-peep.c insn-peep.c
	touch stamp-peep

insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h \
	real.h conditions.h \
	hard-reg-set.h insn-config.h insn-flags.h \
	output.h aux-output.c
	$(CC) $(CFLAGS) $(INCLUDES) -c insn-output.c

insn-output.c: stamp-output ;
stamp-output : md genoutput $(srcdir)/move-if-change
	./genoutput md > tmp-output.c
	$(srcdir)/move-if-change tmp-output.c insn-output.c
	touch stamp-output

# Now the programs that generate those files.
# $(CONFIG_H) is omitted from the deps of the gen*.o
# because these programs don't really depend on anything 
# about the target machine.  They do depend on config.h itself,
# since that describes the host machine.

genconfig : genconfig.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)

genconfig.o : genconfig.c $(RTL_H) config.h

genflags : genflags.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)

genflags.o : genflags.c $(RTL_H) config.h

gencodes : gencodes.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)

gencodes.o : gencodes.c $(RTL_H) config.h

genemit : genemit.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)

genemit.o : genemit.c $(RTL_H) config.h

genrecog : genrecog.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)

genrecog.o : genrecog.c $(RTL_H) config.h

genextract : genextract.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)

genextract.o : genextract.c $(RTL_H) config.h

genpeep : genpeep.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)

genpeep.o : genpeep.c $(RTL_H) config.h

genoutput : genoutput.o rtl.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)

genoutput.o : genoutput.c $(RTL_H) config.h

# Making the preprocessor
cpp: cccp
	-rm -f cpp
	ln cccp cpp
tstcpp: tstcccp
	-rm -f tstcpp
	-ln tstcccp tstcpp
cccp: cccp.o path.o cexp.o version.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o path.o cexp.o version.o $(LIBS)
tstcccp: tstcccp.o path.o cexp.o version.o $(LIBDEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o tstcccp tstcccp.o path.o cexp.o version.o $(LIBS)
cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
#cexp.o: cexp.c $(CONFIG_H)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
$(srcdir)/cexp.c: $(srcdir)/cexp.y
#cexp.c : cexp.y
	$(BISON) $(BISONFLAGS) -o $(srcdir)/cexp.c $(srcdir)/cexp.y
cccp.o: cccp.c $(CONFIG_H)
	$(CC) $(CFLAGS) $(INCLUDES) \
	-DGCC_INCLUDE_DIR=\"$(libdir)/${std_prefix}include\" \
	-DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
	-D__MACH__ -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
tstcccp.o: cccp.c $(CONFIG_H)
	cp cccp.c tstcccp.c
	$(CC) $(CFLAGS) $(INCLUDES) \
	-DGCC_INCLUDE_DIR=\"$(tstlibdir)/${tst_prefix}include\" \
	-DGPLUSPLUS_INCLUDE_DIR=\"$(tstlibdir)/g++-include\" \
	-D__MACH__ -c tstcccp.c 

# The following has the stuff to do CPATH searches.  A real quick hack.
path.o: path.c

cpp.dvi: cpp.texinfo
	ln -s $(srcdir)/texinfo.tex .
	$(TEX) cpp.texinfo
	$(TEX) cpp.texinfo
	rm -f texinfo.tex

cpp.PS: cpp.dvi
	-$(DVIPS) -r cpp.dvi >cpp.PS	

$(srcdir)/cpp.info: cpp.PS cpp.info
	rm -f $(srcdir)/cpp.PS
	mv cpp.PS $(srcdir)
	-mv cpp.dvi $(srcdir)
	touch $(srcdir)/cpp.info

gplus.dvi: gplus.texinfo
	ln -s $(srcdir)/texinfo.tex .
	$(TEX) gplus.texinfo
	$(TEX) gplus.texinfo
	rm -f texinfo.tex

gplus.PS: gcc.dvi
	-$(DVIPS) -r  gplus.dvi >gplus.PS

$(srcdir)/gplus.info: gplus.PS gplus.info
	rm -f $(srcdir)/gplus.PS
	mv gplus.PS $(srcdir)
	-mv gplus.dvi $(srcdir)
	touch $(srcdir)/gplus.info

gcc.dvi: gcc.texinfo
	ln -s $(srcdir)/texinfo.tex .
	$(TEX) gcc.texinfo
	$(TEX) gcc.texinfo
	rm -f texinfo.tex

gcc.PS:	gcc.dvi
	-$(DVIPS) -r gcc.dvi >gcc.PS

$(srcdir)/gcc.info: gcc.PS gcc.info
	rm -f $(srcdir)/gcc.PS
	mv gcc.PS $(srcdir)
	-mv gcc.dvi $(srcdir)
	touch $(srcdir)/gcc.info

man: gcc.1

	

# gnulib is not deleted because deleting it would be inconvenient
# for most uses of this target.
clean:
	-rm -f $(STAGESTUFF) $(STAGE_GCC)
# Delete the temp files made in the course of building gnulib.
	-rm -f tmpgnulib
	for name in $(LIBFUNCS); do rm -f $${name}.c; done
	-rm -f stamp-*.[ch] tmp-*
	-rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop *.dbr *.jump2
	-rm -f core float.h hard-params

# Like clean but also delete the links made to configure gcc.
# Also removes gnulib, since that is desirable if you are changing cpus.
cleanconfig: clean
	-rm -f tm.h aux-output.c config.h md config.status gnulib stamp-gnulib2

# Get rid of every file that's generated from some other file (except INSTALL).
realclean: cleanconfig
	-rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
#	-rm -f cplus-parse.tab.c cplus-parse.output
	-rm -f c-parse.tab.c c-parse.output c-parse.tab.output
	-rm -f gnulib cexp.c TAGS 
	-rm -f cpp.info* cpp.?? cpp.??s cpp.log cpp.toc cpp.*aux
	-rm -f gcc.info* gcc.?? gcc.??s gcc.log gcc.toc gcc.*aux
#	-rm -f gplus.info* gplus.?? gplus.??s gplus.log gplus.toc gplus.*aux
	-rm -f *.dvi
	-rm -f c-parse.tab.c c-parse.output
	-rm -f gnulib cexp.c TAGS 

# Copy the files into directories where they will be run.
tstinstall: tstall $(USER_H) float.h gvarargs.h gstdarg.h gcc.1
	-mkdir $(tstlibdir)
	-if [ -f cc1 ] ; then $(INSTALL) $(INSTALL_SW) cc1 ${tstlibdir}/${tst_prefix}cc1 ; else true; fi
	-if [ -f cc1plus ] ; then $(INSTALL) $(INSTALL_SW) cc1plus ${tstlibdir}/${tst_prefix}cc1plus ; else true; fi
	$(INSTALL) $(INSTALL_SW) gnulib ${tstlibdir}/${tst_prefix}gnulib
	chmod 755 $(tstlibdir)/${tst_prefix}gnulib
	-if [ -f /usr/bin/ranlib ] ; then (cd $(tstlibdir); ranlib ${tst_prefix}gnulib) ; else true; fi
#	$(INSTALL) $(INSTALL_SW) gnulib2 $(tstlibdir)/${tst_prefix}gnulib2
#	chmod 755 $(tstlibdir)/${tst_prefix}gnulib2
#	-if [ -f /usr/bin/ranlib ] ; then (cd $(tstlibdir); ranlib ${tst_prefix}gnulib2) ;fi
	$(INSTALL) $(INSTALL_SW) tstcpp $(tstlibdir)/${tst_prefix}cpp
	$(INSTALL) $(INSTALL_SW) tstgcc $(tstbindir)/gcc
	rm -f $(tstlibdir)/${tst_prefix}as
	rm -f $(tstlibdir)/${tst_prefix}ld
	ln -s /afs/.cs.cmu.edu/misc/gnu-comp/@sys/omega/bin/gas $(tstlibdir)/${tst_prefix}as
	ln -s /usr/cs/bin/ld $(tstlibdir)/${tst_prefix}ld
	-mkdir $(tstlibdir)/${tst_prefix}include
	-chmod ugo+rx $(tstlibdir)/${tst_prefix}include
	for file in $(USER_H); do \
	     for eachfile in $${file} ; do \
		$(INSTALL) $(INSTALL_SW) $(srcdir)/`basename $${eachfile}`  $(tstlibdir)/$(tst_prefix)include/`basename $${eachfile}`; \
	     done ; done
	$(INSTALL) $(INSTALL_SW) float.h $(tstlibdir)/${tst_prefix}include/float.h
	$(INSTALL) $(INSTALL_SW) $(srcdir)/gvarargs.h $(tstlibdir)/${tst_prefix}include/varargs.h
	$(INSTALL) $(INSTALL_SW) $(srcdir)/gstdarg.h $(tstlibdir)/$(tst_prefix)include/stdarg.h
	-chmod a-x $(tstlibdir)/$(tst_prefix)include/*.h
	$(srcdir)/fixincludes $(tstlibdir)/${tst_prefix}include


install: all
	-mkdir $(libdir)
	-if [ -f cc1 ] ; then $(INSTALL) $(INSTALL_SW) cc1 $(libdir)/${std_prefix}cc1 ; else true ; fi
	-if [ -f cc1plus ] ; then $(INSTALL) $(INSTALL_SW) cc1plus $(libdir)/${std_prefix}cc1plus ; else true; fi
	$(INSTALL) $(INSTALL_SW) gnulib $(libdir)/${std_prefix}gnulib
	chmod 755 $(libdir)/${std_prefix}gnulib
	-if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib ${std_prefix}gnulib) ; else true; fi
#	$(INSTALL) $(INSTALL_SW) gnulib2 $(libdir)/${std_prefix}gnulib2
#	chmod 755 $(libdir)/${std_prefix}gnulib2
#	-if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib ${std_prefix}gnulib2) ;fi
	$(INSTALL) $(INSTALL_SW) cpp $(libdir)/${std_prefix}cpp
	$(INSTALL) $(INSTALL_SW) gcc $(bindir)/gcc
	rm -f $(libdir)/${std_prefix}as
	rm -f $(libdir)/${std_prefix}ld
	ln -s /afs/.cs.cmu.edu/misc/gnu-comp/@sys/omega/bin/gas $(libdir)/${std_prefix}as
	ln -s /afs/.cs.cmu.edu/@sys/omega/usr/cs/bin/ld $(libdir)/${std_prefix}ld
	-mkdir $(libdir)/${std_prefix}include
	-chmod ugo+rx $(libdir)/${std_prefix}include
	for file in $(USER_H); do \
	     for eachfile in $${file} ; do \
		$(INSTALL) $(INSTALL_SW) $(srcdir)/`basename $${eachfile}` $(libdir)/${std_prefix}include/`basename $${eachfile}`; \
	     done ; done
	$(INSTALL) $(INSTALL_SW) float.h $(libdir)/${std_prefix}include/float.h
	$(INSTALL) $(INSTALL_SW) $(srcdir)/gvarargs.h $(libdir)/${std_prefix}include/varargs.h
	$(INSTALL) $(INSTALL_SW) $(srcdir)/gstdarg.h $(libdir)/$(std_prefix)include/stdarg.h
	-chmod a-x $(libdir)/$(std_prefix)include/*.h
	$(INSTALL) $(srcdir)/gcc.1 $(mandir)/man${manext}/gcc.$(manext)
	-chmod a-x $(mandir)/man${manext}/gcc.$(manext)
	$(srcdir)/fixincludes $(libdir)/${std_prefix}include

installdoc: doc
	rm -f $(docdir)/cpp/*
	ln -s $(srcdir)/cpp.texinfo $(docdir)/cpp/cpp.texinfo
	ln -s $(srcdir)/cpp.dvi $(docdir)/cpp/cpp.dvi
	ln -s $(srcdir)/cpp.PS $(docdir)/cpp/cpp.PS
	ln -s $(srcdir)/cpp.info $(docdir)/cpp/cpp.info
	rm -f $(docdir)/gcc/*
	ln -s $(srcdir)/gcc.texinfo $(docdir)/gcc/gcc.texinfo 
	ln -s $(srcdir)/gcc.dvi $(docdir)/gcc/gcc.dvi 
	ln -s $(srcdir)/gcc.info $(docdir)/gcc/gcc.info 
	ln -s $(srcdir)/gcc.PS $(docdir)/gcc/gcc.PS 



# do make -f ../gcc/Makefile maketest DIR=../gcc
# in the intended test directory to make it a suitable test directory.
#
#  The following not in use by jl.
maketest:
	ln -s $(DIR)/*.[chy] .
	ln -s $(DIR)/config .
	ln -s $(DIR)/*.def .
	-rm -f =*
	ln -s $(DIR)/.gdbinit .
	-ln -s $(DIR)/bison.simple .
	ln -s $(DIR)/config.gcc .
	ln -s $(DIR)/move-if-change .
# The then and else were swapped to avoid a problem on Ultrix.
	if [ ! -f Makefile ] ; then ln -s $(DIR)/Makefile . ; else false; fi
	-rm tm.h aux-output.c config.h md
	make clean
# You must then run config.gcc to set up for compilation.

bootstrap: # force
	@echo $(ECHOSTART)
	$(MAKE) CC=${OLDCC} CFLAGS="${CCLIBFLAGS}"
	$(MAKE) stage1
	$(MAKE) bootstrap2

bootstrap2: # force
	$(MAKE) CC="stage1/gcc -Bstage1/" tstall
	$(MAKE) stage2
	$(MAKE) bootstrap3

bootstrap3: # force
	$(MAKE) CC="stage2/gcc -Bstage2/" tstall

stage4: force
	-mkdir stage4
	-mv $(STAGESTUFF) $(STAGE_GCC) stage4
	-rm -f stage4/gnulib
	-ln gnulib stage4 || cp gnulib stage4
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then $(RANLIB) stage4/gnulib; else true; fi

	$(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" tstall
	$(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" force
#	$(MAKE) gnulib2

# Copy the object files from a particular stage into a subdirectory.


stage1: force
	-mkdir stage1
	-mv $(STAGESTUFF) stage1
	-mv $(STAGE_GCC) stage1/gcc
	-mv $(STAGE_CPP) stage1/cpp
	-rm -f stage1/gnulib
	-ln gnulib stage1 || cp gnulib stage1
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then $(RANLIB) stage1/gnulib; else true; fi
	cp gnulib stage1
	ranlib stage1/gnulib
	-ln -s $(libdir)/${std_prefix}as stage1/as
	-ln -s $(libdir)/${std_prefix}ld stage1/ld

stage2: force
	-mkdir stage2
	-mv $(STAGESTUFF) stage2
	-mv $(STAGE_GCC) stage2/gcc
	-mv $(STAGE_CPP) stage2/cpp
	-rm -f stage2/gnulib
	-ln gnulib stage2 || cp gnulib stage2
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then $(RANLIB) stage2/gnulib; else true; fi
	cp gnulib stage2
	ranlib stage2/gnulib
	-ln -s $(libdir)/${std_prefix}as stage2/as
	-ln -s $(libdir)/${std_prefix}ld stage2/ld

stage3: force
	-mkdir stage3
	-mv $(STAGESTUFF) stage3
	-mv $(STAGE_GCC) stage3/gcc
	-mv $(STAGE_CPP) stage3/cpp
	-rm -f stage3/gnulib
	-ln gnulib stage3 || cp gnulib stage3
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then $(RANLIB) stage3/gnulib; else true; fi
	cp gnulib stage3
	ranlib stage3/gnulib
	-ln -s $(libdir)/${std_prefix}as stage3/as
	-ln -s $(libdir)/${std_prefix}ld stage3/ld

TAGS:  force
	mkdir temp
	-mv c-parse.tab.c cplus-parse.c cplus-parse.h cexp.c temp
	etags *.y *.h *.c
	mv temp/* .
	rmdir temp

includes: force
	export LIB; LIB=$(libdir)/gcc-include ./fixincludes

force: 
	echo "Forcing"

#In GNU Make, ignore whether `stage*' exists.
.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap

	

