old-cross-binutils/gas/Makefile.in

544 lines
17 KiB
Makefile
Raw Normal View History

1991-04-04 18:19:53 +00:00
# Makefile for GNU Assembler
# Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
1991-04-04 18:19:53 +00:00
# This file is part of GNU GAS.
1991-04-04 18:19:53 +00:00
# GNU GAS 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 2, or (at your option)
# any later version.
1991-04-04 18:19:53 +00:00
# GNU GAS 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.
1991-04-04 18:19:53 +00:00
# You should have received a copy of the GNU General Public License
# along with GNU GAS; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
1991-04-04 18:19:53 +00:00
# The targets for external use include:
# all, doc, proto, install, uninstall, includes, TAGS,
# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
# Variables that exist for you to override.
# See below for how to change them for certain systems.
srcdir = .
srcroot = $(srcdir)/..
prefix = /usr/local
program_transform_name =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(libdir)/$(target_alias)
datadir = $(prefix)/lib
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
VERSION=cygnus-2.2.1
1991-04-04 18:19:53 +00:00
SHELL = /bin/sh
INSTALL = $${srcroot}/install.sh -c
1991-04-04 18:19:53 +00:00
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
1993-06-18 19:25:38 +00:00
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
1991-04-04 18:19:53 +00:00
AR = ar
AR_FLAGS = qv
BISON = bison
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
1991-04-04 18:19:53 +00:00
RANLIB = ranlib
CFLAGS = -g
MAKEOVERRIDES=
AS_FOR_TARGET = $${here}/as.new
CC_FOR_TARGET = ` \
if [ -f $${here}/../gcc/Makefile ] ; then \
echo $${here}/../gcc/xgcc -B$${here}/../gcc/; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(CC); \
else \
t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
fi; \
fi`
NM_FOR_TARGET = ` \
if [ -f $${here}/../binutils/Makefile ] ; then \
echo $${here}/../binutils/nm ; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(NM); \
else \
t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
fi; \
fi`
OBJDUMP=objdump
OBJDUMP_FOR_TARGET = ` \
if [ -f $${here}/../binutils/Makefile ] ; then \
echo $${here}/../binutils/objdump ; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(OBJDUMP); \
else \
t='$(program_transform_name)'; echo objdump | sed -e 's/brokensed/brokensed/' $$t ; \
fi; \
fi`
FLAGS_TO_PASS = \
"prefix=$(prefix)" \
"exec_prefix=$(exec_prefix)" \
"tooldir=$(tooldir)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"LEX=$(LEX)" \
"MAKEINFO=$(MAKEINFO)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
1991-04-04 18:19:53 +00:00
RUNTEST=runtest
CHECKFLAGS= \
"AS_FOR_TARGET=$(AS_FOR_TARGET)" \
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
"OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
"RUNTEST=$(RUNTEST)"
1991-04-04 18:19:53 +00:00
# Lists of files for various purposes.
REAL_SOURCES = \
$(srcdir)/app.c \
$(srcdir)/as.c \
$(srcdir)/atof-generic.c \
$(srcdir)/bignum-copy.c \
$(srcdir)/cond.c \
$(srcdir)/expr.c \
$(srcdir)/flonum-konst.c \
1991-04-04 18:19:53 +00:00
$(srcdir)/flonum-copy.c \
$(srcdir)/flonum-mult.c \
$(srcdir)/frags.c \
$(srcdir)/hash.c \
$(srcdir)/hex-value.c \
$(srcdir)/input-file.c \
$(srcdir)/input-scrub.c \
1994-01-06 01:16:51 +00:00
$(srcdir)/literal.c \
1991-04-04 18:19:53 +00:00
$(srcdir)/messages.c \
$(srcdir)/output-file.c \
$(srcdir)/read.c \
$(srcdir)/subsegs.c \
$(srcdir)/symbols.c \
$(srcdir)/write.c \
$(srcdir)/listing.c \
$(srcdir)/ecoff.c \
$(srcdir)/stabs.c \
$(srcdir)/xmalloc.c
1991-04-04 18:19:53 +00:00
# in an expedient order
LINKED_SOURCES = \
targ-cpu.c \
obj-format.c \
atof-targ.c
SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
REAL_HEADERS = \
$(srcdir)/as.h \
$(srcdir)/bignum.h \
$(srcdir)/expr.h \
$(srcdir)/flonum.h \
$(srcdir)/frags.h \
$(srcdir)/hash.h \
$(srcdir)/input-file.h \
1992-02-17 15:54:49 +00:00
$(srcdir)/listing.h \
1991-04-04 18:19:53 +00:00
$(srcdir)/tc.h \
$(srcdir)/obj.h \
$(srcdir)/read.h \
$(srcdir)/struc-symbol.h \
$(srcdir)/subsegs.h \
$(srcdir)/symbols.h \
$(srcdir)/write.h \
$(srcdir)/ecoff.h
1991-04-04 18:19:53 +00:00
LINKED_HEADERS = \
a.out.gnu.h \
a.out.h \
host.h \
targ-env.h \
targ-cpu.h \
obj-format.h \
atof-targ.h
HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
#### host, target, and site specific Makefile frags come in here.
1991-04-04 18:19:53 +00:00
OBJS = \
targ-cpu.o \
obj-format.o \
atof-targ.o \
app.o \
as.o \
atof-generic.o \
bignum-copy.o \
cond.o \
expr.o \
flonum-konst.o \
1991-04-04 18:19:53 +00:00
flonum-copy.o \
flonum-mult.o \
frags.o \
hash.o \
hex-value.o \
input-file.o \
input-scrub.o \
1994-01-06 01:16:51 +00:00
literal.o \
1991-04-04 18:19:53 +00:00
messages.o \
output-file.o \
read.o \
subsegs.o \
symbols.o \
write.o \
listing.o \
ecoff.o \
stabs.o \
xmalloc.o \
$(TE_OBJS)
# These are objects we know we'll be pulling in from other directories.
# For VMS, we have to build them explicitly.
VMS_OTHER_OBJS = \
../libiberty/obstack.o \
../libiberty/strdup.o \
../libiberty/strncasecmp.o \
../libiberty/getruntime.o
1994-01-31 16:44:53 +00:00
all: as.new gasp.new
@srcroot=`cd $(srcroot); pwd`; export srcroot; \
(cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
1992-02-21 09:05:26 +00:00
dvi info install-info clean-info:
@srcroot=`cd $(srcroot); pwd`; export srcroot; \
(cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
1991-04-04 18:19:53 +00:00
make-gas.com: stamp-mk.com
stamp-mk.com: vmsconf.sh Makefile
sh $(srcdir)/vmsconf.sh $(OBJS) $(VMS_OTHER_OBJS) > new-make.com
$(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
touch stamp-mk.com
1991-04-04 18:19:53 +00:00
# Now figure out from those variables how to compile and link.
# This is the variable actually used when we compile.
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
1991-04-04 18:19:53 +00:00
# How to link with both our special library facilities
# and the system's installed libraries.
LIBS = $(OPCODES_LIB) $(BFDLIB) $(LOCAL_LOADLIBES) \
../libiberty/libiberty.a
1991-04-04 18:19:53 +00:00
# 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../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/..
SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
1991-04-04 18:19:53 +00:00
# Always use -I$(srcdir)/config when compiling.
.c.o:
$(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
# This tells GNU make version 3 not to export all the variables
# defined in this file into the environment.
.NOEXPORT:
1992-02-17 15:54:49 +00:00
1991-04-04 18:19:53 +00:00
# Files to be copied away after each stage in building.
STAGESTUFF = *.o as.new gasp.new
1991-04-04 18:19:53 +00:00
$(OBJS): $(ALL_OBJ_DEPS)
as.new: $(OBJS) $(LIBS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
1991-04-04 18:19:53 +00:00
1994-01-31 16:44:53 +00:00
gasp.new: gasp.o
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
installcheck:
@echo No installcheck target is available yet for the GNU assembler.
check: as.new
@(here=`pwd` ; export here ; \
cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
1991-04-04 18:19:53 +00:00
config.status:
@echo You must configure gas. Look at the INSTALL file for details.
@false
config.h: config-stamp ; @true
config-stamp: Makefile
-rm -f config.new config-stamp
echo '#ifndef TARGET_CPU' > config.new
echo '#define TARGET_CPU "$(target_cpu)"' >> config.new
echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
echo '#define GAS_VERSION "$(VERSION)"' >> config.new
if [ "$(defs)" != "" ]; then \
echo '#define $(defs)' >> config.new ; \
else true; fi
echo '#endif /* TARGET_CPU */' >> config.new
$(srcdir)/../move-if-change config.new config.h
touch config-stamp
1991-04-04 18:19:53 +00:00
# Compiling object files from source files.
1994-01-31 16:44:53 +00:00
gasp.o : gasp.c
1991-04-04 18:19:53 +00:00
app.o : app.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
as.o : as.c as.h host.h targ-env.h obj-format.h output-file.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
tc.h obj.h config.h
1991-04-04 18:19:53 +00:00
atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
bignum-copy.o : bignum-copy.c as.h host.h \
targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
cond.o : cond.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
1991-04-04 18:19:53 +00:00
debug.o : debug.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h
expr.o : expr.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
flonum-konst.o : flonum-konst.c flonum.h bignum.h
1991-04-04 18:19:53 +00:00
flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
flonum-mult.o : flonum-mult.c flonum.h bignum.h
frags.o : frags.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h
1991-04-04 18:19:53 +00:00
hash.o : hash.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
hex-value.o : hex-value.c
input-file.o : input-file.c as.h host.h \
targ-env.h obj-format.h targ-cpu.h \
struc-symbol.h write.h flonum.h bignum.h expr.h \
1991-04-04 18:19:53 +00:00
frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
input-file.h
listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
literal.o : literal.c subsegs.h as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
1991-04-04 18:19:53 +00:00
messages.o : messages.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
output-file.h
read.o : read.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
1991-04-04 18:19:53 +00:00
subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h
1991-04-04 18:19:53 +00:00
symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h
1991-04-04 18:19:53 +00:00
write.o : write.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h output-file.h
ecoff.o : ecoff.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
ecoff.h $(srcdir)/../include/coff/internal.h \
$(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
$(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
stabs.o : stabs.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
subsegs.h $(srcdir)/../include/aout/stab_gnu.h
1991-04-04 18:19:53 +00:00
xmalloc.o : xmalloc.c
atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
symbols.h tc.h obj.h
obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
subsegs.h symbols.h tc.h obj.h
targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
1991-04-04 18:19:53 +00:00
write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
1991-04-04 18:19:53 +00:00
# Remake the info files.
doc: $(srcdir)/as.info
1991-04-04 18:19:53 +00:00
$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
@(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
1991-04-04 18:19:53 +00:00
clean-here:
1992-02-17 15:54:49 +00:00
-rm -f $(STAGESTUFF) core
1991-04-04 18:19:53 +00:00
clean: clean-here
@cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean
@if [ -d testsuite ] ; then \
cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean ; \
else true; fi
1991-04-04 18:19:53 +00:00
# Like clean but also delete the links made to configure gas.
distclean: clean-here
@cd doc ; $(MAKE) $(FLAGS_TO_PASS) distclean
@if [ -d testsuite ] ; then \
cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) distclean ; \
else true; fi
1992-02-17 15:54:49 +00:00
-rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
config-stamp config.h
1992-02-17 15:54:49 +00:00
1991-04-04 18:19:53 +00:00
# Entry points `install', `includes' and `uninstall'.
# Copy the files into directories where they will be run.
1992-02-17 15:54:49 +00:00
install:
srcroot=`cd $(srcroot); pwd`; export srcroot; \
$(INSTALL_XFORM) as.new $(bindir)/as; \
$(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
if [ -d $(tooldir) ]; then \
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
rm -f $(tooldir)/bin/as; \
ln $(bindir)/$$n $(tooldir)/bin/as \
|| $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
else true; fi
1994-01-31 16:44:53 +00:00
srcroot=`cd $(srcroot); pwd`; export srcroot; \
$(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
1994-01-31 16:44:53 +00:00
if [ -d $(tooldir) ]; then \
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
rm -f $(tooldir)/bin/gasp; \
ln $(bindir)/$$n $(tooldir)/bin/gasp \
|| $(INSTALL_PROGRAM) gasp $(tooldir)/bin/gasp; \
else true; fi
1991-04-04 18:19:53 +00:00
# Cancel installation by deleting the installed files.
uninstall:
-n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
rm -f $(bindir)/$$n; \
rm -f $(mandir)/$$n.1
-n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
1994-01-31 16:44:53 +00:00
rm -f $(bindir)/$$n; \
1992-02-17 15:54:49 +00:00
1991-04-04 18:19:53 +00:00
# These exist for maintenance purposes.
tags TAGS: force
etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
1991-04-04 18:19:53 +00:00
1992-02-17 15:54:49 +00:00
bootstrap: as.new force
1991-04-04 18:19:53 +00:00
$(MAKE) stage1
1992-02-17 15:54:49 +00:00
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
1991-04-04 18:19:53 +00:00
$(MAKE) stage2
1992-02-17 15:54:49 +00:00
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
1991-06-09 20:27:20 +00:00
$(MAKE) comparison against=stage2
1991-04-04 18:19:53 +00:00
bootstrap2: force
1992-02-17 15:54:49 +00:00
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
1991-04-04 18:19:53 +00:00
$(MAKE) stage2
1992-02-17 15:54:49 +00:00
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
$(MAKE) comparison against=stage2
1991-04-04 18:19:53 +00:00
bootstrap3: force
1992-02-17 15:54:49 +00:00
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
1991-06-09 20:27:20 +00:00
$(MAKE) comparison against=stage2
1991-04-04 18:19:53 +00:00
# Copy the object files from a particular stage into a subdirectory.
stage1: force
-mkdir stage1
-mv $(STAGESTUFF) stage1
if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
1991-04-04 18:19:53 +00:00
stage2: force
-mkdir stage2
-mv $(STAGESTUFF) stage2
if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
1991-04-04 18:19:53 +00:00
stage3: force
-mkdir stage3
1991-04-24 16:52:32 +00:00
-mv $(STAGESTUFF) stage3
if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
1991-04-04 18:19:53 +00:00
1991-06-09 20:27:20 +00:00
against=stage2
comparison: force
for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
1991-04-24 16:52:32 +00:00
de-stage1: force
- (cd stage1 ; rm -f as ; mv -f * ..)
1991-04-24 16:52:32 +00:00
- rmdir stage1
de-stage2: force
- (cd stage2 ; rm -f as ; mv -f * ..)
1991-04-24 16:52:32 +00:00
- rmdir stage2
de-stage3: force
- (cd stage3 ; rm -f as ; mv -f * ..)
1991-04-24 16:52:32 +00:00
- rmdir stage3
1991-04-04 18:19:53 +00:00
#In GNU Make, ignore whether `stage*' exists.
.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
force:
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
$(srcdir)/configure.in
$(SHELL) ./config.status