1991-04-04 20:19:53 +02:00
|
|
|
# Makefile for GNU Assembler
|
1992-02-21 10:05:26 +01:00
|
|
|
# Copyright (C) 1987-1992 Free Software Foundation, Inc.
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
#This file is part of GNU GAS.
|
|
|
|
|
|
|
|
#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
|
1991-12-07 08:19:08 +01:00
|
|
|
#the Free Software Foundation; either version 2, or (at your option)
|
1991-04-04 20:19:53 +02:00
|
|
|
#any later version.
|
|
|
|
|
|
|
|
#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.
|
|
|
|
|
|
|
|
#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.
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
1991-12-07 08:19:08 +01:00
|
|
|
srcdir = .
|
|
|
|
|
|
|
|
prefix = /usr/local
|
|
|
|
|
1992-03-08 08:47:55 +01:00
|
|
|
program_prefix =
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
tooldir = $(libdir)
|
|
|
|
|
1991-12-07 08:19:08 +01:00
|
|
|
datadir = $(prefix)/lib
|
1992-03-08 08:47:55 +01:00
|
|
|
mandir = $(prefix)/man
|
1991-12-07 08:19:08 +01:00
|
|
|
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
|
1992-03-08 08:47:55 +01:00
|
|
|
infodir = $(prefix)/info
|
1991-12-07 08:19:08 +01:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
docdir = $(datadir)/doc
|
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
SHELL = /bin/sh
|
1991-12-07 08:19:08 +01:00
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
INSTALL = install -c
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
1991-12-07 08:19:08 +01:00
|
|
|
INSTALL_DATA = $(INSTALL)
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1991-12-07 08:19:08 +01:00
|
|
|
AR = ar
|
|
|
|
AR_FLAGS = qv
|
|
|
|
BISON = bison
|
|
|
|
MAKEINFO = makeinfo
|
1991-04-04 20:19:53 +02:00
|
|
|
RANLIB = ranlib
|
1992-02-21 12:04:51 +01:00
|
|
|
MINUS_G = -g
|
1991-04-04 20:19:53 +02: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 \
|
1992-03-13 17:04:21 +01:00
|
|
|
$(srcdir)/flonum-konst.c \
|
1991-04-04 20:19:53 +02: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 \
|
|
|
|
$(srcdir)/messages.c \
|
1992-02-17 16:54:49 +01:00
|
|
|
$(srcdir)/obstack.c \
|
1991-04-04 20:19:53 +02:00
|
|
|
$(srcdir)/output-file.c \
|
|
|
|
$(srcdir)/read.c \
|
1992-02-17 16:54:49 +01:00
|
|
|
$(srcdir)/strerror.c \
|
1991-04-04 20:19:53 +02:00
|
|
|
$(srcdir)/strstr.c \
|
|
|
|
$(srcdir)/subsegs.c \
|
|
|
|
$(srcdir)/symbols.c \
|
|
|
|
$(srcdir)/version.c \
|
|
|
|
$(srcdir)/write.c \
|
1992-02-15 22:13:03 +01:00
|
|
|
$(srcdir)/listing.c \
|
1991-04-04 20:19:53 +02:00
|
|
|
$(srcdir)/xmalloc.c \
|
|
|
|
$(srcdir)/xrealloc.c
|
|
|
|
|
|
|
|
# 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 16:54:49 +01:00
|
|
|
$(srcdir)/listing.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
$(srcdir)/tc.h \
|
|
|
|
$(srcdir)/obj.h \
|
1992-02-17 16:54:49 +01:00
|
|
|
$(srcdir)/obstack.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
$(srcdir)/read.h \
|
|
|
|
$(srcdir)/struc-symbol.h \
|
|
|
|
$(srcdir)/subsegs.h \
|
|
|
|
$(srcdir)/symbols.h \
|
|
|
|
$(srcdir)/write.h
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
targ-cpu.o \
|
|
|
|
obj-format.o \
|
|
|
|
atof-targ.o \
|
|
|
|
app.o \
|
|
|
|
as.o \
|
|
|
|
atof-generic.o \
|
|
|
|
bignum-copy.o \
|
|
|
|
cond.o \
|
|
|
|
expr.o \
|
1992-03-13 17:04:21 +01:00
|
|
|
flonum-konst.o \
|
1991-04-04 20:19:53 +02:00
|
|
|
flonum-copy.o \
|
|
|
|
flonum-mult.o \
|
|
|
|
frags.o \
|
|
|
|
hash.o \
|
|
|
|
hex-value.o \
|
|
|
|
input-file.o \
|
|
|
|
input-scrub.o \
|
|
|
|
messages.o \
|
1992-02-17 16:54:49 +01:00
|
|
|
obstack.o \
|
1991-04-04 20:19:53 +02:00
|
|
|
output-file.o \
|
|
|
|
read.o \
|
1992-02-17 16:54:49 +01:00
|
|
|
strerror.o \
|
1991-04-04 20:19:53 +02:00
|
|
|
strstr.o \
|
|
|
|
subsegs.o \
|
|
|
|
symbols.o \
|
|
|
|
version.o \
|
|
|
|
write.o \
|
1992-02-15 22:13:03 +01:00
|
|
|
listing.o \
|
1991-04-04 20:19:53 +02:00
|
|
|
xmalloc.o \
|
|
|
|
xrealloc.o
|
|
|
|
|
1991-10-10 05:56:18 +01:00
|
|
|
#### host, target, and site specific Makefile frags come in here.
|
|
|
|
|
1992-02-17 16:54:49 +01:00
|
|
|
all: as.new
|
1992-02-21 10:05:26 +01:00
|
|
|
(cd doc ; $(MAKE) all)
|
|
|
|
|
1991-12-07 08:19:08 +01:00
|
|
|
info:
|
1992-03-14 04:08:29 +01:00
|
|
|
(cd doc ; $(MAKE) info "MAKEINFO=$(MAKEINFO)")
|
1992-02-21 10:05:26 +01:00
|
|
|
|
1991-11-20 04:46:20 +01:00
|
|
|
install-info:
|
1992-02-21 10:05:26 +01:00
|
|
|
(cd doc ; $(MAKE) install-info)
|
|
|
|
|
|
|
|
clean-info:
|
|
|
|
(cd doc ; $(MAKE) clean-info)
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
# Now figure out from those variables how to compile and link.
|
|
|
|
|
|
|
|
# This is the variable actually used when we compile.
|
1992-02-21 12:04:51 +01:00
|
|
|
ALL_CFLAGS = $(MINUS_G) $(INTERNAL_CFLAGS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
# How to link with both our special library facilities
|
|
|
|
# and the system's installed libraries.
|
1991-10-10 05:56:18 +01:00
|
|
|
|
1992-02-17 16:54:49 +01:00
|
|
|
LIBS = $(LOCAL_LOADLIBES) $(CLIB) # ../libiberty/libiberty.a
|
1991-04-04 20:19:53 +02: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.
|
1991-12-07 08:19:08 +01:00
|
|
|
INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config -I$(srcdir)/../include
|
|
|
|
SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
|
1991-04-04 20:19:53 +02: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 16:54:49 +01:00
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
# Files to be copied away after each stage in building.
|
1991-09-02 01:38:30 +02:00
|
|
|
STAGESTUFF = *.o as.new
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1991-09-02 01:38:30 +02:00
|
|
|
as.new: $(OBJS) $(LIBDEPS)
|
1992-03-13 17:04:21 +01:00
|
|
|
[ ! -f as.new ] || mv as.new as.old
|
1991-09-02 01:38:30 +02:00
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1992-03-08 08:47:55 +01:00
|
|
|
check:
|
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
config.status:
|
|
|
|
@echo You must configure gas. Look at the INSTALL file for details.
|
|
|
|
@false
|
|
|
|
|
|
|
|
# Compiling object files from source files.
|
|
|
|
|
|
|
|
app.o : app.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
|
|
|
|
atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1992-04-08 00:16:41 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
|
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
debug.o : debug.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1992-04-08 00:16:41 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
|
|
|
|
|
1992-03-13 17:04:21 +01:00
|
|
|
flonum-konst.o : flonum-konst.c flonum.h bignum.h
|
1991-04-04 20:19:53 +02:00
|
|
|
flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
subsegs.h
|
1991-04-04 20:19:53 +02:00
|
|
|
hash.o : hash.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
struc-symbol.h write.h flonum.h bignum.h expr.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
|
|
|
input-file.h
|
1992-02-15 22:13:03 +01:00
|
|
|
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
|
1991-04-04 20:19:53 +02:00
|
|
|
messages.o : messages.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
|
1991-05-18 04:15:32 +02:00
|
|
|
obstack.o : obstack.c
|
1991-04-04 20:19:53 +02:00
|
|
|
output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1992-04-08 00:16:41 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
|
|
|
|
|
1992-03-08 08:47:55 +01:00
|
|
|
strerror.o : strerror.c
|
1991-04-04 20:19:53 +02:00
|
|
|
strstr.o : strstr.c
|
|
|
|
subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
subsegs.h
|
1991-04-04 20:19:53 +02:00
|
|
|
symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
subsegs.h
|
1991-04-04 20:19:53 +02:00
|
|
|
version.o : version.c
|
|
|
|
write.o : write.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
subsegs.h output-file.h
|
1991-04-04 20:19:53 +02:00
|
|
|
xmalloc.o : xmalloc.c
|
|
|
|
xrealloc.o : xrealloc.c
|
|
|
|
atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02: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 \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
symbols.h tc.h obj.h
|
1991-04-04 20:19:53 +02:00
|
|
|
targ-cpu.o : targ-cpu.c targ-env.h obj-format.h \
|
1991-05-18 04:15:32 +02:00
|
|
|
targ-cpu.h struc-symbol.h \
|
1991-04-04 20:19:53 +02:00
|
|
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
|
1991-09-02 01:38:30 +02:00
|
|
|
symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
|
1991-05-18 04:15:32 +02:00
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
# Remake the info files.
|
|
|
|
|
1991-10-12 02:20:38 +01:00
|
|
|
doc: $(srcdir)/as.info
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1991-10-12 02:20:38 +01:00
|
|
|
$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
|
|
|
|
(cd doc; make as.info; mv as.info $srcdir)
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
clean:
|
1992-02-21 10:05:26 +01:00
|
|
|
(cd doc ; $(MAKE) clean)
|
1992-02-17 16:54:49 +01:00
|
|
|
-rm -f $(STAGESTUFF) core
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
# Like clean but also delete the links made to configure gas.
|
1992-02-17 16:54:49 +01:00
|
|
|
distclean: clean
|
|
|
|
-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 \
|
|
|
|
gas.aux gas.cps gas.fns gas.info gas.kys gas.pgs
|
|
|
|
gas.tps gas.vrs TAGS gas.info* gas.?? gas.??s gas.log \
|
|
|
|
gas.toc gas.*aux *.dvi
|
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
# Entry points `install', `includes' and `uninstall'.
|
|
|
|
|
|
|
|
# Copy the files into directories where they will be run.
|
1992-02-17 16:54:49 +01:00
|
|
|
install:
|
1992-03-08 08:47:55 +01:00
|
|
|
-rm -f $(bindir)/$(program_prefix)as
|
|
|
|
$(INSTALL_PROGRAM) as.new $(bindir)/$(program_prefix)as
|
|
|
|
-rm -f $(tooldir)/as
|
|
|
|
ln $(bindir)/$(program_prefix)as $(tooldir)/as
|
1992-04-08 00:16:41 +02:00
|
|
|
-rm -f $(man1dir)/$(program_prefix)as.1
|
|
|
|
$(INSTALL_DATA) $(srcdir)/doc/as.1 $(man1dir)/$(program_prefix)as.1
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
# Create the installation directory.
|
|
|
|
install-dir:
|
|
|
|
-mkdir $(libdir)
|
|
|
|
-mkdir $(libdir)/gcc
|
|
|
|
-mkdir $(libdir)/gcc/$(target)
|
|
|
|
-mkdir $(libdir)/gcc/$(target)/$(version)
|
|
|
|
|
|
|
|
# Cancel installation by deleting the installed files.
|
|
|
|
uninstall:
|
|
|
|
-rm -rf $(libsubdir)
|
1991-04-24 18:52:32 +02:00
|
|
|
-rm -rf $(bindir)/as
|
1991-04-04 20:19:53 +02:00
|
|
|
-rm -rf $(mandir)/gas.$(manext)
|
|
|
|
|
1992-02-17 16:54:49 +01:00
|
|
|
|
1991-04-04 20:19:53 +02:00
|
|
|
# These exist for maintenance purposes.
|
|
|
|
|
|
|
|
tags TAGS: force
|
1992-03-08 08:47:55 +01:00
|
|
|
etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1992-02-17 16:54:49 +01:00
|
|
|
bootstrap: as.new force
|
1991-04-04 20:19:53 +02:00
|
|
|
$(MAKE) stage1
|
1992-02-17 16:54:49 +01:00
|
|
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
|
1991-04-04 20:19:53 +02:00
|
|
|
$(MAKE) stage2
|
1992-02-17 16:54:49 +01:00
|
|
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
|
1991-06-09 22:27:20 +02:00
|
|
|
$(MAKE) comparison against=stage2
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
bootstrap2: force
|
1992-02-17 16:54:49 +01:00
|
|
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
|
1991-04-04 20:19:53 +02:00
|
|
|
$(MAKE) stage2
|
1992-02-17 16:54:49 +01:00
|
|
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
|
1991-09-02 01:38:30 +02:00
|
|
|
$(MAKE) comparison against=stage2
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
bootstrap3: force
|
1992-02-17 16:54:49 +01:00
|
|
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
|
1991-06-09 22:27:20 +02:00
|
|
|
$(MAKE) comparison against=stage2
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
# Copy the object files from a particular stage into a subdirectory.
|
|
|
|
stage1: force
|
|
|
|
-mkdir stage1
|
|
|
|
-mv $(STAGESTUFF) stage1
|
1991-11-20 04:46:20 +01:00
|
|
|
if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
stage2: force
|
|
|
|
-mkdir stage2
|
|
|
|
-mv $(STAGESTUFF) stage2
|
1991-11-20 04:46:20 +01:00
|
|
|
if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
stage3: force
|
|
|
|
-mkdir stage3
|
1991-04-24 18:52:32 +02:00
|
|
|
-mv $(STAGESTUFF) stage3
|
1991-11-20 04:46:20 +01:00
|
|
|
if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
|
1991-04-04 20:19:53 +02:00
|
|
|
|
1991-06-09 22:27:20 +02:00
|
|
|
against=stage2
|
|
|
|
|
|
|
|
comparison: force
|
|
|
|
for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
|
|
|
|
|
1991-04-24 18:52:32 +02:00
|
|
|
de-stage1: force
|
1991-09-02 01:38:30 +02:00
|
|
|
- (cd stage1 ; rm as ; mv -f * ..)
|
1991-04-24 18:52:32 +02:00
|
|
|
- rmdir stage1
|
|
|
|
|
|
|
|
de-stage2: force
|
1991-09-02 01:38:30 +02:00
|
|
|
- (cd stage2 ; rm as ; mv -f * ..)
|
1991-04-24 18:52:32 +02:00
|
|
|
- rmdir stage2
|
|
|
|
|
|
|
|
de-stage3: force
|
1991-09-02 01:38:30 +02:00
|
|
|
- (cd stage3 ; rm as ; mv -f * ..)
|
1991-04-24 18:52:32 +02:00
|
|
|
- rmdir stage3
|
1991-04-04 20:19:53 +02:00
|
|
|
|
|
|
|
#In GNU Make, ignore whether `stage*' exists.
|
|
|
|
.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
|
|
|
|
|
|
|
|
force:
|
|
|
|
|
1991-10-02 08:24:45 +01:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
1991-10-01 04:46:00 +01:00
|
|
|
$(SHELL) ./config.status
|
1991-04-11 04:24:30 +02:00
|
|
|
|