1991-07-31 18:58:05 +02:00
|
|
|
|
# Makefile template for Configure for the BFD library.
|
1992-04-11 07:38:40 +02:00
|
|
|
|
# Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
|
1991-07-31 18:58:05 +02:00
|
|
|
|
# Written by Cygnus Support.
|
|
|
|
|
#
|
|
|
|
|
# This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
|
#
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
1991-04-04 20:37:36 +02:00
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
1991-07-31 18:58:05 +02:00
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
1991-04-04 20:37:36 +02:00
|
|
|
|
# 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-07-31 18:58:05 +02:00
|
|
|
|
#
|
1991-04-04 20:37:36 +02:00
|
|
|
|
# You should have received a copy of the GNU General Public License
|
1991-07-31 18:58:05 +02:00
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
srcdir = .
|
1991-12-07 08:01:15 +01:00
|
|
|
|
|
|
|
|
|
prefix = /usr/local
|
|
|
|
|
|
1992-04-11 07:38:40 +02:00
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
|
|
1991-12-07 08:01:15 +01:00
|
|
|
|
datadir = $(prefix)/lib
|
1992-04-11 07:38:40 +02:00
|
|
|
|
mandir = $(prefix)/man
|
1991-12-07 08:01:15 +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-04-11 07:38:40 +02:00
|
|
|
|
infodir = $(prefix)/info
|
1991-12-07 08:01:15 +01:00
|
|
|
|
includedir = $(prefix)/include
|
1992-04-11 07:38:40 +02:00
|
|
|
|
oldincludedir =
|
1992-08-11 18:57:29 +02:00
|
|
|
|
docdir = $(srcdir)/doc
|
1991-12-07 08:01:15 +01:00
|
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
|
|
INSTALL = install -c
|
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
|
INSTALL_DATA = $(INSTALL)
|
|
|
|
|
|
1991-05-14 18:30:22 +02:00
|
|
|
|
AR = ar
|
1992-04-11 07:38:40 +02:00
|
|
|
|
AR_FLAGS = qc
|
1992-04-21 07:27:57 +02:00
|
|
|
|
CFLAGS = -g
|
1991-12-07 08:01:15 +01:00
|
|
|
|
BISON = bison
|
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
|
1991-04-25 06:22:55 +02:00
|
|
|
|
INCDIR = $(srcdir)/../include
|
1991-11-05 01:06:29 +01:00
|
|
|
|
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
1991-05-08 21:07:10 +02:00
|
|
|
|
DEP = mkdep
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
1991-11-14 01:16:05 +01:00
|
|
|
|
SUBDIRS = doc
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
1991-11-22 06:00:08 +01:00
|
|
|
|
# Change this (to MINIMIZE=1) to save space in executables.
|
|
|
|
|
# Currently, all this does is control the target_vector in targets.c.
|
|
|
|
|
MINIMIZE=0
|
|
|
|
|
|
1991-04-18 03:51:01 +02:00
|
|
|
|
TARGETLIB = libbfd.a
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
|
1991-04-08 18:02:27 +02:00
|
|
|
|
BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
|
1992-01-29 06:16:49 +01:00
|
|
|
|
archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o
|
Insert the incidentals and things I forgot to ci last time, same log message:
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com)
* cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c,
cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These
files will eventually contain processor specific bits for bfd,
like strange relocation information and dis/assembly. So far only
the H8 has been even partially done. This work also ties in with
the change in handling architectures.
* amdcoff.c: (a29k_reloc) fix error message.
* aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to
discover the architecture of the bfd. (sunos4_callback) calls the
function bfd_set_arch_mach rather than stuffing stuff directly
into the bfd. (sunos4_write_object_contents), changed names of
accessor functions.
* aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to
setup the environment.
* archive.c: (bfd_slurp_coff_armap) coff archives always have the
headers in big endian format, regardless of the endianess of the
host or target.
* archures.c: totally changed. Now an architecture is represented
with a pointer to an info structure rather than an enumerated type
and a long. The old info is available as two elements in the
structure. Future enhancements to architecure support will
involve pointers to methods being placed into the info structure.
* bfd.c: changed the definition of the bfd structure for the new
architecture stuff.
* bout.c: (b_out_set_arch_mach) changed to use the new
architecture mechanism.
* coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use
the new architecture mechanism.
* configure.in: added h8 stuff.
* ieee.c: too many changes to note. Now ieee files written with
bfd gas and ld can be read by gld and ieee only linkers and
simulators.
* libbfd.c, libbfd.h: changed prototype of bfd_write.
* newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather
than fixing the structure directly.
* oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather
than fixing the structure directly.
* opncls.c: (new_bfd) makes sure that bfd_init has been called
before opening a bfd.
* srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach
rather than fixing the structure directly.
* targets.c: (target_vector) now by defining SELECT_VECS (perhaps
in the t/hmake file) a user can select which backends they want
linked with bfd without changing the source.
* init.c: new, looks after initializing modules.
* howto.c: for future use, will allow an application to work out
what cookie to use as a handle on a relcoatio howto.
1991-10-01 04:55:40 +01:00
|
|
|
|
|
1992-08-11 18:57:29 +02:00
|
|
|
|
# This is an independent variable so that targets can override it if
|
|
|
|
|
# they want. Until we get around to fixing the defaults for various targets,
|
|
|
|
|
# default to all opcode tables.
|
|
|
|
|
OPC = opc-sparc.o
|
|
|
|
|
|
1991-10-25 08:06:02 +01:00
|
|
|
|
BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
|
1992-08-11 18:57:29 +02:00
|
|
|
|
cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o cpu-hppa.o \
|
1992-08-28 00:09:30 +02:00
|
|
|
|
cpu-z8k.o cpu-we32k.o \
|
1992-08-11 18:57:29 +02:00
|
|
|
|
$(OPC)
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
1992-05-02 03:41:33 +02:00
|
|
|
|
BFD_BACKENDS = oasys.o ieee.o srec.o elf.o stab-syms.o\
|
1991-10-08 23:31:52 +01:00
|
|
|
|
aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
|
1991-10-25 11:17:52 +01:00
|
|
|
|
coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
|
1992-08-28 00:09:30 +02:00
|
|
|
|
coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o hppa.o i386linux.o \
|
|
|
|
|
coff-z8k.o coff-we32k.o
|
Insert the incidentals and things I forgot to ci last time, same log message:
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com)
* cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c,
cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These
files will eventually contain processor specific bits for bfd,
like strange relocation information and dis/assembly. So far only
the H8 has been even partially done. This work also ties in with
the change in handling architectures.
* amdcoff.c: (a29k_reloc) fix error message.
* aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to
discover the architecture of the bfd. (sunos4_callback) calls the
function bfd_set_arch_mach rather than stuffing stuff directly
into the bfd. (sunos4_write_object_contents), changed names of
accessor functions.
* aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to
setup the environment.
* archive.c: (bfd_slurp_coff_armap) coff archives always have the
headers in big endian format, regardless of the endianess of the
host or target.
* archures.c: totally changed. Now an architecture is represented
with a pointer to an info structure rather than an enumerated type
and a long. The old info is available as two elements in the
structure. Future enhancements to architecure support will
involve pointers to methods being placed into the info structure.
* bfd.c: changed the definition of the bfd structure for the new
architecture stuff.
* bout.c: (b_out_set_arch_mach) changed to use the new
architecture mechanism.
* coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use
the new architecture mechanism.
* configure.in: added h8 stuff.
* ieee.c: too many changes to note. Now ieee files written with
bfd gas and ld can be read by gld and ieee only linkers and
simulators.
* libbfd.c, libbfd.h: changed prototype of bfd_write.
* newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather
than fixing the structure directly.
* oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather
than fixing the structure directly.
* opncls.c: (new_bfd) makes sure that bfd_init has been called
before opening a bfd.
* srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach
rather than fixing the structure directly.
* targets.c: (target_vector) now by defining SELECT_VECS (perhaps
in the t/hmake file) a user can select which backends they want
linked with bfd without changing the source.
* init.c: new, looks after initializing modules.
* howto.c: for future use, will allow an application to work out
what cookie to use as a handle on a relcoatio howto.
1991-10-01 04:55:40 +01:00
|
|
|
|
|
1991-08-21 06:07:18 +02:00
|
|
|
|
OPTIONAL_BACKENDS = trad-core.o
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
1991-12-01 01:40:39 +01:00
|
|
|
|
#### host and target dependent Makefile fragments come in here.
|
|
|
|
|
###
|
|
|
|
|
|
1992-08-28 00:09:30 +02:00
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
|
"against=$(against)" \
|
|
|
|
|
"AR=$(AR)" \
|
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
|
"CC=$(CC)" \
|
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
|
"RANLIB=$(RANLIB)" \
|
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
|
"BISON=$(BISON)"
|
|
|
|
|
|
1992-04-21 07:27:57 +02:00
|
|
|
|
.c.o:
|
1992-05-05 22:54:18 +02:00
|
|
|
|
$(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
|
1992-04-21 07:27:57 +02:00
|
|
|
|
|
1991-04-04 20:37:36 +02:00
|
|
|
|
BFD_H=$(INCDIR)/bfd.h
|
|
|
|
|
|
|
|
|
|
# C source files that correspond to .o's.
|
|
|
|
|
CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
|
1992-04-21 07:27:57 +02:00
|
|
|
|
coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c tekhex.c \
|
1992-04-11 07:38:40 +02:00
|
|
|
|
oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
|
1992-08-11 18:57:29 +02:00
|
|
|
|
format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \
|
|
|
|
|
seclet.c coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c \
|
|
|
|
|
i386linux.c bout.c elf.c \
|
1992-06-20 00:24:13 +02:00
|
|
|
|
cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c cpu-vax.c \
|
|
|
|
|
cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c hppa.c \
|
1992-08-28 00:09:30 +02:00
|
|
|
|
cpu-hppa.c coff-we32k.c cpu-we32k.c \
|
1992-08-11 18:57:29 +02:00
|
|
|
|
opc-sparc.c opc-i960.c
|
Insert the incidentals and things I forgot to ci last time, same log message:
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com)
* cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c,
cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These
files will eventually contain processor specific bits for bfd,
like strange relocation information and dis/assembly. So far only
the H8 has been even partially done. This work also ties in with
the change in handling architectures.
* amdcoff.c: (a29k_reloc) fix error message.
* aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to
discover the architecture of the bfd. (sunos4_callback) calls the
function bfd_set_arch_mach rather than stuffing stuff directly
into the bfd. (sunos4_write_object_contents), changed names of
accessor functions.
* aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to
setup the environment.
* archive.c: (bfd_slurp_coff_armap) coff archives always have the
headers in big endian format, regardless of the endianess of the
host or target.
* archures.c: totally changed. Now an architecture is represented
with a pointer to an info structure rather than an enumerated type
and a long. The old info is available as two elements in the
structure. Future enhancements to architecure support will
involve pointers to methods being placed into the info structure.
* bfd.c: changed the definition of the bfd structure for the new
architecture stuff.
* bout.c: (b_out_set_arch_mach) changed to use the new
architecture mechanism.
* coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use
the new architecture mechanism.
* configure.in: added h8 stuff.
* ieee.c: too many changes to note. Now ieee files written with
bfd gas and ld can be read by gld and ieee only linkers and
simulators.
* libbfd.c, libbfd.h: changed prototype of bfd_write.
* newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather
than fixing the structure directly.
* oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather
than fixing the structure directly.
* opncls.c: (new_bfd) makes sure that bfd_init has been called
before opening a bfd.
* srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach
rather than fixing the structure directly.
* targets.c: (target_vector) now by defining SELECT_VECS (perhaps
in the t/hmake file) a user can select which backends they want
linked with bfd without changing the source.
* init.c: new, looks after initializing modules.
* howto.c: for future use, will allow an application to work out
what cookie to use as a handle on a relcoatio howto.
1991-10-01 04:55:40 +01:00
|
|
|
|
|
1991-04-18 03:51:01 +02:00
|
|
|
|
STAGESTUFF = $(TARGETLIB) $(OFILES)
|
|
|
|
|
|
|
|
|
|
all: $(TARGETLIB)
|
1992-08-28 00:09:30 +02:00
|
|
|
|
@$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-04-18 03:51:01 +02:00
|
|
|
|
|
1992-04-16 03:23:41 +02:00
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
1992-04-11 07:38:40 +02:00
|
|
|
|
check:
|
|
|
|
|
|
1991-12-07 08:01:15 +01:00
|
|
|
|
info: force
|
1992-08-28 00:09:30 +02:00
|
|
|
|
@$(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-11-15 21:26:52 +01:00
|
|
|
|
|
1992-04-11 07:38:40 +02:00
|
|
|
|
clean-info:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
@$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1992-04-11 07:38:40 +02:00
|
|
|
|
|
1991-11-15 21:26:52 +01:00
|
|
|
|
install-info: force
|
1992-08-28 00:09:30 +02:00
|
|
|
|
@$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-11-15 21:26:52 +01:00
|
|
|
|
|
1991-10-11 05:51:42 +01:00
|
|
|
|
# HDEPFILES comes from the host config; TDEPFILES from the target config.
|
|
|
|
|
OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
|
1991-04-18 03:51:01 +02:00
|
|
|
|
|
|
|
|
|
$(TARGETLIB): $(OFILES)
|
|
|
|
|
rm -f $(TARGETLIB)
|
1991-05-14 18:30:22 +02:00
|
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
|
|
|
|
|
$(RANLIB) $(TARGETLIB)
|
1991-04-18 03:51:01 +02:00
|
|
|
|
|
1992-08-28 00:09:30 +02:00
|
|
|
|
# When compiling archures.c and targets.c, supply the default target
|
|
|
|
|
# info from configure.
|
|
|
|
|
|
|
|
|
|
|
1991-10-25 10:49:37 +01:00
|
|
|
|
targets.o: targets.c
|
1992-04-21 07:27:57 +02:00
|
|
|
|
$(CC) $(CFLAGS) -c $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
|
1991-10-25 10:49:37 +01:00
|
|
|
|
|
1992-08-28 00:09:30 +02:00
|
|
|
|
archures.o: archures.c
|
|
|
|
|
$(CC) $(CFLAGS) -c $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
|
|
|
|
|
|
1991-11-14 01:16:05 +01:00
|
|
|
|
subdir_do: force
|
1992-04-21 07:27:57 +02:00
|
|
|
|
@for i in $(DODIRS); do \
|
1992-04-11 07:38:40 +02:00
|
|
|
|
if [ -d ./$$i ] ; then \
|
|
|
|
|
if (cd ./$$i; \
|
1992-08-28 00:09:30 +02:00
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
|
1991-11-14 01:16:05 +01:00
|
|
|
|
else exit 1 ; fi ; \
|
|
|
|
|
else true ; fi ; \
|
|
|
|
|
done
|
|
|
|
|
|
1991-04-04 20:37:36 +02:00
|
|
|
|
tags etags: TAGS
|
|
|
|
|
|
1991-04-18 03:51:01 +02:00
|
|
|
|
TAGS: force
|
1991-04-24 22:52:21 +02:00
|
|
|
|
etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
clean:
|
1992-01-29 06:16:49 +01:00
|
|
|
|
rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
|
1992-08-28 00:09:30 +02:00
|
|
|
|
$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
clobber realclean: clean
|
|
|
|
|
rm -f libbfd.a TAGS
|
1992-08-28 00:09:30 +02:00
|
|
|
|
$(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
1991-10-11 13:48:25 +01:00
|
|
|
|
# Mark everything as depending on config.status, since the timestamp on
|
|
|
|
|
# sysdep.h might actually move backwards if we reconfig and relink it
|
|
|
|
|
# to a different hosts/h-xxx.h file. This will force a recompile anyway.
|
|
|
|
|
RECONFIG = config.status
|
|
|
|
|
$(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG)
|
|
|
|
|
$(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG)
|
|
|
|
|
$(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG)
|
|
|
|
|
$(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG)
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
1991-10-25 08:06:02 +01:00
|
|
|
|
# Get around a Sun Make bug in SunOS 4.1.1 with VPATH
|
|
|
|
|
cpu-i386.o:cpu-i386.c
|
|
|
|
|
|
1991-04-04 20:37:36 +02:00
|
|
|
|
saber:
|
|
|
|
|
#suppress 65 on bfd_map_over_sections
|
|
|
|
|
#suppress 66 on bfd_map_over_sections
|
|
|
|
|
#suppress 67 on bfd_map_over_sections
|
|
|
|
|
#suppress 68 on bfd_map_over_sections
|
|
|
|
|
#suppress 69 on bfd_map_over_sections
|
|
|
|
|
#suppress 70 on bfd_map_over_sections
|
|
|
|
|
#suppress 110 in bfd_map_over_sections
|
|
|
|
|
#suppress 112 in bfd_map_over_sections
|
|
|
|
|
#suppress 530
|
|
|
|
|
#suppress 590 in swap_exec_header
|
|
|
|
|
#suppress 590 in _bfd_dummy_core_file_matches_executable_p
|
|
|
|
|
#suppress 590 in bfd_dont_truncate_arname
|
|
|
|
|
#suppress 590 on ignore
|
|
|
|
|
#suppress 590 on abfd
|
|
|
|
|
#setopt load_flags $(CFLAGS)
|
|
|
|
|
#load $(CFILES)
|
1991-05-08 21:07:10 +02:00
|
|
|
|
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
|
|
|
|
|
#
|
|
|
|
|
# 'VERSION' file must be present and contain a string of the form "x.y"
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
ver960.c: FORCE
|
|
|
|
|
rm -f ver960.c
|
|
|
|
|
echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This target should be invoked before building a new release.
|
|
|
|
|
# 'VERSION' file must be present and contain a string of the form "x.y"
|
|
|
|
|
#
|
|
|
|
|
roll:
|
|
|
|
|
@V=`cat VERSION` ; \
|
|
|
|
|
MAJ=`sed 's/\..*//' VERSION` ; \
|
|
|
|
|
MIN=`sed 's/.*\.//' VERSION` ; \
|
|
|
|
|
V=$$MAJ.`expr $$MIN + 1` ; \
|
|
|
|
|
rm -f VERSION ; \
|
|
|
|
|
echo $$V >VERSION ; \
|
|
|
|
|
echo Version $$V
|
|
|
|
|
|
|
|
|
|
# Dummy target to force execution of dependent targets.
|
|
|
|
|
#
|
1991-04-18 03:51:01 +02:00
|
|
|
|
force:
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
install:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
-parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
|
|
|
|
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
|
|
|
|
-if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
|
|
|
|
|
$(RANLIB) $(libdir)/libbfd.a
|
1992-08-28 00:09:30 +02:00
|
|
|
|
-parent=`echo $(includedir)|sed -e 's@/[^/]*$$@@'`; \
|
|
|
|
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
|
|
|
|
-if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; fi
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h
|
1992-08-28 00:09:30 +02:00
|
|
|
|
-if [ -z "$(oldincludedir)" ] ; then true ; else if [ -d $(oldincludedir) ] ; then true ; else mkdir $(oldincludedir) ; fi ; $(INSTALL_DATA) $(INCDIR)/bfd.h $(oldincludedir)/bfd.h ; fi
|
|
|
|
|
@$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
1991-04-04 20:37:36 +02:00
|
|
|
|
|
|
|
|
|
# Target to uncomment host-specific lines in this makefile. Such lines must
|
|
|
|
|
# have the following string beginning in column 1: #__<hostname>__#
|
|
|
|
|
# Original Makefile is backed up as 'Makefile.old'.
|
|
|
|
|
#
|
|
|
|
|
# Invoke with: make make HOST=xxx
|
|
|
|
|
#
|
|
|
|
|
make:
|
|
|
|
|
-@if test $(HOST)x = x ; then \
|
|
|
|
|
echo 'Specify "make make HOST=???"'; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi ; \
|
|
|
|
|
grep -s "^#The next line was generated by 'make make'" Makefile; \
|
|
|
|
|
if test $$? = 0 ; then \
|
|
|
|
|
echo "Makefile has already been processed with 'make make'";\
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi ; \
|
|
|
|
|
mv -f Makefile Makefile.old; \
|
|
|
|
|
echo "#The next line was generated by 'make make'" >Makefile ; \
|
|
|
|
|
echo "HOST=$(HOST)" >>Makefile ; \
|
|
|
|
|
echo >>Makefile ; \
|
|
|
|
|
sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
|
|
|
|
|
|
1991-10-08 23:31:52 +01:00
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(SHELL) ./config.status
|
1991-05-08 21:07:10 +02:00
|
|
|
|
|
|
|
|
|
dep: $(CFILES)
|
|
|
|
|
mkdep $(CFLAGS) $?
|
1991-07-04 18:52:56 +02:00
|
|
|
|
|
1992-04-11 07:38:40 +02:00
|
|
|
|
host-aout.o: Makefile
|
1991-07-04 18:52:56 +02:00
|
|
|
|
|
1992-04-11 07:38:40 +02:00
|
|
|
|
# The following program can be used to generate a simple config file
|
|
|
|
|
# which can be folded into an h-XXX file for a new host, with some editing.
|
1992-01-29 06:16:49 +01:00
|
|
|
|
aout-params.h: gen-aout
|
|
|
|
|
./gen-aout > aout-params.h
|
1992-04-11 07:38:40 +02:00
|
|
|
|
gen-aout: $(srcdir)/gen-aout.c Makefile
|
|
|
|
|
$(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
|
1991-07-04 18:52:56 +02:00
|
|
|
|
|
1991-09-04 09:52:46 +02:00
|
|
|
|
headers:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
(cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
|
1992-08-11 18:57:29 +02:00
|
|
|
|
# Could really use a "copy-if-change"...
|
|
|
|
|
cp $(docdir)/bfd.h bfd.h-new
|
|
|
|
|
$(srcdir)/../move-if-change bfd.h-new $(BFD_H)
|
|
|
|
|
cp $(docdir)/libbfd.h libbfd.h-new
|
|
|
|
|
$(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
|
|
|
|
cp $(docdir)/libcoff.h libcoff.h-new
|
|
|
|
|
$(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
|
|
|
|
bfd.info:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
( cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
|
|
|
|
bfd.dvi:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
(cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS))
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
|
|
|
|
bfd.ps:
|
1992-08-28 00:09:30 +02:00
|
|
|
|
(cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS))
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
|
|
|
|
# What appears below is generated by a hacked mkdep using gcc -MM.
|
|
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
|
|
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
|
|
|
|
1991-10-01 04:46:00 +01:00
|
|
|
|
libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h
|
1991-10-01 04:46:00 +01:00
|
|
|
|
targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h
|
1991-09-04 09:52:46 +02:00
|
|
|
|
aout64.o : aout64.c
|
1991-10-01 04:46:00 +01:00
|
|
|
|
aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
|
|
|
|
|
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
|
1991-10-01 04:46:00 +01:00
|
|
|
|
sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
|
|
|
|
|
$(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
|
1991-09-04 09:52:46 +02:00
|
|
|
|
demo64.o : demo64.c
|
1991-11-27 17:56:08 +01:00
|
|
|
|
|
1991-10-01 04:46:00 +01:00
|
|
|
|
srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
|
|
|
|
|
oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/oasys.h liboasys.h
|
|
|
|
|
ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/ieee.h libieee.h
|
1991-11-27 17:56:08 +01:00
|
|
|
|
coff-h8300.o: coff-h8300.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
1992-01-29 06:16:49 +01:00
|
|
|
|
coff-a29k.o: coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-i386.o: coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-i960.o: coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-m68k.o: coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-m88k.o: coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-mips.o: coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
|
|
|
|
coff-rs6000.o: coff-rs6000.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h
|
1991-10-11 13:48:25 +01:00
|
|
|
|
format.o : format.c $(INCDIR)/bfd.h \
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(INCDIR)/obstack.h libbfd.h
|
1991-10-11 13:48:25 +01:00
|
|
|
|
section.o : section.c $(INCDIR)/bfd.h \
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(INCDIR)/obstack.h libbfd.h
|
1991-10-11 13:48:25 +01:00
|
|
|
|
core.o : core.c $(INCDIR)/bfd.h \
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(INCDIR)/obstack.h libbfd.h
|
1991-10-11 13:48:25 +01:00
|
|
|
|
syms.o : syms.c $(INCDIR)/bfd.h \
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(INCDIR)/obstack.h libbfd.h
|
1991-11-22 06:00:08 +01:00
|
|
|
|
syms.o : stab-syms.c
|
1991-10-11 13:48:25 +01:00
|
|
|
|
reloc.o : reloc.c $(INCDIR)/bfd.h \
|
1991-10-01 04:46:00 +01:00
|
|
|
|
$(INCDIR)/obstack.h libbfd.h
|
1991-11-27 17:56:08 +01:00
|
|
|
|
|
1991-10-01 04:46:00 +01:00
|
|
|
|
trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
|
1991-09-04 09:52:46 +02:00
|
|
|
|
libbfd.h libaout.h
|
1992-04-11 07:38:40 +02:00
|
|
|
|
|
|
|
|
|
coff-msym.o: coff-msym.c $(INCDIR)/bfd.h $(INCDIR)/coff/ecoff-ext.h \
|
|
|
|
|
$(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h
|
|
|
|
|
|
1991-10-01 04:46:00 +01:00
|
|
|
|
newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
|
|
|
|
|
$(INCDIR)/aout/ar.h libaout.h
|
1991-10-08 23:31:52 +01:00
|
|
|
|
i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
1991-12-07 08:01:15 +01:00
|
|
|
|
$(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
|
|
|
|
|
$(INCDIR)/aout/ar.h libaout.h
|
1992-08-11 18:57:29 +02:00
|
|
|
|
i386linux.o : i386linux.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
|
|
|
|
$(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
|
|
|
|
|
$(INCDIR)/aout/ar.h libaout.h
|
1991-10-01 04:46:00 +01:00
|
|
|
|
bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
|
1992-08-11 18:57:29 +02:00
|
|
|
|
$(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h
|
|
|
|
|
|
|
|
|
|
opc-sparc.o : opc-sparc.c $(INCDIR)/opcode/sparc.h
|
1991-09-04 09:52:46 +02:00
|
|
|
|
|
|
|
|
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
1991-10-01 04:46:00 +01:00
|
|
|
|
|