+Fri Apr 10 22:29:18 1992 Fred Fish (fnf@cygnus.com)
+
+ * configure.in: Recognize ncr3000 config
+ * Makefile.in (MINUS_G): Pass on to recursive makes.
+ * hosts/ncr3000.h, config/ncr3000.mh: Add host config files.
+
+Thu Apr 2 17:42:45 1992 John Gilmore (gnu at cygnus.com)
+
+ * Makefile.in: Now that we have sym.h and symconst.h, compile
+ coff-msym.c on all systems.
+ * config/{decstation.mh, irix3.mh, irix4.mh}: Remove coff-msym.o dep.
+ * coff-msym.c: Update include files and comments; add weakext bit.
+
Wed Apr 1 23:16:38 1992 John Gilmore (gnu at cygnus.com)
* archive.c, bfd.c, bout.c, coffcode.h, init.c, reloc.c,
# Makefile template for Configure for the BFD library.
-# Copyright (C) 1990, 1991 Free Software Foundation, Inc.
+# Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
# Written by Cygnus Support.
#
# This file is part of BFD, the Binary File Descriptor library.
prefix = /usr/local
-bindir = $(prefix)/bin
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+libdir = $(exec_prefix)/lib
+
datadir = $(prefix)/lib
-libdir = $(prefix)/lib
-mandir = $(datadir)/man
+mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
-infodir = $(datadir)/info
+infodir = $(prefix)/info
includedir = $(prefix)/include
+oldincludedir =
docdir = $(srcdir)/doc
SHELL = /bin/sh
INSTALL_DATA = $(INSTALL)
AR = ar
-AR_FLAGS = qv
+AR_FLAGS = qc
BISON = bison
MAKEINFO = makeinfo
RANLIB = ranlib
BFD_BACKENDS = oasys.o ieee.o srec.o elf.o stab-syms.o\
aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
- coff-mips.o coff-rs6000.o coff-h8300.o
+ coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o
OPTIONAL_BACKENDS = trad-core.o
# C source files that correspond to .o's.
CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
- oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \
+ oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
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 bout.c elf.c \
cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
all: $(TARGETLIB)
$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)"
+check:
+
info: force
- $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
+ $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
+clean-info:
+ $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
+
install-info: force
$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
subdir_do: force
for i in $(DODIRS); do \
- if [ -d $(unsubdir)/$$i ] ; then \
- if (cd $(unsubdir)/$$i$(subdir); \
+ if [ -d ./$$i ] ; then \
+ if (cd ./$$i; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
+ "MINUS_G=$(MINUS_G)" \
"RANLIB=$(RANLIB)" \
+ "MAKEINFO=$(MAKEINFO)" \
"BISON=$(BISON)" $(DO)) ; then true ; \
else exit 1 ; fi ; \
else true ; fi ; \
$(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
$(RANLIB) $(libdir)/libbfd.a
$(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h
+ [ -z "$(oldincludedir)" ] || $(INSTALL_DATA) $(INCDIR)/bfd.h $(oldincludedir)/bfd.h
$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)"
# Target to uncomment host-specific lines in this makefile. Such lines must
dep: $(CFILES)
mkdep $(CFLAGS) $?
-gen-aout: $(srcdir)/gen-aout.c
- $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
+host-aout.o: Makefile
+# 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.
aout-params.h: gen-aout
./gen-aout > aout-params.h
-
-host-aout.o: aout-params.h
+gen-aout: $(srcdir)/gen-aout.c Makefile
+ $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
headers:
(cd $(docdir); $(MAKE) protos)
trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
libbfd.h libaout.h
+
+coff-msym.o: coff-msym.c $(INCDIR)/bfd.h $(INCDIR)/coff/ecoff-ext.h \
+ $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h
+
newsos3.o : newsos3.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
mips)
case "${host_vendor}" in
dec) my_host=decstation ;;
- sgi) my_host=irix3 ;;
+ sgi)
+ case "${host_os}" in
+ irix3) my_host=irix3 ;;
+ irix4) my_host=irix4 ;;
+ esac
+ ;;
esac
;;
sun) my_host=sun3 ;;
apollo*)
case "${host_os}" in
- sysv*) my_host=apollo68v ;;
+ sysv*) my_host=apollov68 ;;
esac
;;
esac
i386)
case "${host_vendor}" in
+ ncr*)
+ case "${host_os}" in
+ sysv4*) my_host=ncr3000 ;;
+ esac
+ ;;
*)
case "${host_os}" in
sysv4*) my_host=i386v4 ;;
sparc)
case "${host_os}" in
sunos64) my_host=sparc-ll ;;
+ sysv4) my_host=sysv4 ;;
+ sysv64) my_host=sysv4-ll ;;
*) my_host=sparc ;;
esac
;;
esac
# Set up to make a link between the host's include file and "sysdep.h".
-files="hosts/h-${my_host}.h"
+files="hosts/${my_host}.h"
links="sysdep.h"
if [ ! -f ${srcdir}/${files} ] ; then
fi
host_makefile_frag=
-if [ -f ${srcdir}/config/mh-${my_host} ] ; then
- host_makefile_frag=config/mh-${my_host}
+if [ -f ${srcdir}/config/${my_host}.mh ] ; then
+ host_makefile_frag=config/${my_host}.mh
fi
# per-target:
sun)
case "${target_cpu}" in
m68k) bfd_target=m68k-aout ;;
- sparc) bfd_target=sparc-aout ;;
+ sparc) case "${target_os}" in
+ sysv4) bfd_target=sparc-elf ;;
+ *) bfd_target=sparc-aout ;;
+ esac
+ ;;
esac
;;
dec)
;;
esac
-if [ ! -f ${srcdir}/config/mt-${bfd_target} ] ; then
+if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
if [ -n "${bfd_target}" ] ; then
- echo '***' No file ${srcdir}/config/mt-${bfd_target}
+ echo '***' No file ${srcdir}/config/${bfd_target}.mt
fi
echo '***' BFD does not support target ${target}
echo '***' Look in bfd/configure.in for supported targets
exit 1
fi
-target_makefile_frag=config/mt-${bfd_target}
+target_makefile_frag=config/${bfd_target}.mt
# We don't do any links based on the target system, just very minor makefile
# config.