Commit Graph

1687 Commits

Author SHA1 Message Date
John Birrell
d73d5c86a3 Change the order of the include paths so that the architecture specific
directory is searched before the generic one. You can guess what was
happening.. all the world's assumed to be 32-bit.
1998-05-15 06:42:37 +00:00
John Birrell
2abfb02abe perl now works on alpha.
This just leaves gdb to be configured for alpha.
1998-05-12 23:09:36 +00:00
John Birrell
f8fc1eb94b This code casts double -> int -> char *. Ugh. Take a punt and change the
int to a long so that no bits are thrown away on alpha and hope for
the best.
1998-05-12 23:07:07 +00:00
John Birrell
3ef29d3bf0 Change a cast of long * to time_t * in a call to time(); 1998-05-12 23:03:50 +00:00
John Birrell
4baa8a70b5 Allow the makefile to choose the perl executable to run h2ph rather
than relying on the #!/usr/bin/perl in the first line of the script.
1998-05-12 23:02:14 +00:00
John Birrell
ecf85f0379 If perl exists in OBJDIR it has just been built; if it exists in
CURDIR it has been built without an obj directory; however if it is in
neither of those places, we expect it to be in DESTDIR.

Yes Bruce, I know this is broken because the host is not supposed to be
the same as the target, but we need to get the hosted build working
properly first before even attempting a cross compiled operating
system build. That will need to concept of TOOLSDIR or something that
can be mapped to DESTDIR in the case of a hosted build and set to the
installed tools in a cross compiled build. Later, later, later!
1998-05-12 22:51:34 +00:00
John Birrell
b0c3b27388 Change .if to .elif to prevent the current directory path search for a
perl executable from overriding the object directory path search where
perl is most likely to be. Most people haven't seen this because it
defaulted to /usr/bin/perl which might be OK as a fallback, but when
bootstrapping a new version (or the *first* version on alpha), we don't
really want to use /usr/bin/perl.
1998-05-12 22:32:03 +00:00
John Birrell
266f0ba434 awk and groff (et al) now work on alpha as the result of library
fixes.
1998-05-12 21:07:45 +00:00
Bruce Evans
e7c80443b4 Don't attempt to read process context from the kernel when (the
kernel's) curproc is null.  This fixes endless recursion in
xfer_umem() for attempts to read from user addresses, in particular
for attempts to read %fs and %gs from the pcb for `info reg'.
1998-05-12 16:49:13 +00:00
John Birrell
978b3eee15 The yacc makefile changes don't seem to know when to generate the
header file and when not to, so for the time being make sure the
sucker gets generated up front.
1998-05-11 09:33:55 +00:00
John Birrell
6bcce84f32 Add CROSS_TARGETS to the list of GASES to build. We end up with a separate
gas for each target format. So for m68k targets that means several
gases. I wanted a m68k gas for VxWorks which uses aout in sun3 big
endian format, cross compiled on i386 under FreeBSD using libraries
supplied by DEC and intended by them for cross compilation on Alpha
under OSF/1. And it actually works!
1998-05-11 09:31:17 +00:00
John Birrell
292041e5f6 Make a path absolute. 1998-05-11 09:26:39 +00:00
Bruce Evans
645d0c98dd Simplified by using new yacc rules and by not generating y.tab.h. 1998-05-08 06:41:06 +00:00
John Birrell
4d725788f7 Fix the path. 1998-05-05 12:33:21 +00:00
John Birrell
402d0191b4 Specify an absolute include path.
Backout the previous commit in favour of the Makefile.inc added to
the parent directory.
1998-05-05 10:32:47 +00:00
John Birrell
9976c5ebe2 One of those silently included files that just about guarantee that
nobody has any idea how something like BINDIR gets defined.
1998-05-05 10:27:39 +00:00
John Birrell
b09740d425 The BINDIR definition is an extra directory level away, so include it
explicitly.
1998-05-05 08:57:11 +00:00
John Birrell
9b87ba9b0f Oops, missed the common part of gas. 1998-05-05 08:53:27 +00:00
Bruce Evans
14a28dc644 Don't generate a2p.h or y.tab.h from a2p.y. Neither is actually used,
and building a2p.h clobbered the unrelated source file a2p.h if
${.OBJDIR} == ${.CURDIR}.
1998-05-05 05:25:21 +00:00
John Birrell
c6497bae9d Support cross architectures by using specific directories instead of
the ones that match the host.
1998-05-04 22:09:10 +00:00
John Birrell
b967ddfa5c i386 gas config files. 1998-05-04 22:05:54 +00:00
John Birrell
bf28c35750 Alpha gas config files. 1998-05-04 22:04:55 +00:00
John Birrell
3cb3e87019 Support cross-architectures using sub-directories. 1998-05-04 22:03:00 +00:00
John Birrell
7998238373 Add support for cross-architecture gases. Since the GNU code doesn't
support more than one architecture at a time, build as from the
default for the host and if CROSS_TOOLS defines other architectures,
build them as as_${arch}
1998-05-04 22:01:27 +00:00
John Birrell
fea15783d0 BINDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:51:32 +00:00
John Birrell
c8c066f7e3 Work out the list of emulations based on the cross-architectures
defined. The TARGET is now set from an included makefile.
1998-05-04 21:38:46 +00:00
John Birrell
a9ab354c8d Add cross-architecture support. 1998-05-04 21:29:54 +00:00
John Birrell
3e87569545 BINDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:27:17 +00:00
John Birrell
48de30fa9d BIDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:23:23 +00:00
John Birrell
d8db061de4 Evaluate the TARGET from the architecture. We'll assume that FREEBSD
is ELF from here on.
1998-05-04 21:21:17 +00:00
John Birrell
87219aff8e Remote i386 cross-architecture support. It's now configurable, and off
by default.
1998-05-04 21:18:46 +00:00
John Birrell
beb33165cb Add cross-architecture support. 1998-05-04 21:16:46 +00:00
John Birrell
bb91c76f50 Since the makefiles below binutils with the architecture extension
are now included according to the cross-architecture support required,
default the BINDIR for i386 to /usr/libexec/elf here instead of in
all the i386 specific makefiles. For all other architectures, BINDIR
is just /usr/bin.
1998-05-04 21:13:50 +00:00
John Birrell
dd67e6bff7 Add makefile support for cross-architectures. Allow CROSS_TOOLS to
be defined (in /etc/make.conf, say) and set to the additional architectures
that need to be compiled in. So on alpha I set CROSS_TOOLS = i386.
On i386 you can't build alpha due to lack of 64-bit support on 32-bit
architectures, but that's a GNU problem.

This change relies on makefiles in the binutils sub-directories having
the extension defined in the CROSS_TOOLS, instead of those makefiles
being selected based on the host architecture.
1998-05-04 21:10:56 +00:00
Bruce Evans
b681d90662 Fixed races in `make -jN' using new yacc rules. 1998-05-04 20:09:06 +00:00
Bruce Evans
6b40d3ae8b Don't add y.tab.h to CLEANFILES, since this would now be done centrally
if y.tab.h were generated.  Don't generate y.tab.h, since it is not used.
1998-05-04 18:13:54 +00:00
Bruce Evans
e4e61e7b97 Simplified using new yacc rules. This is cosmetic - the old rules
worked because .ORDER prevented problems from concurrent generation
of multiple parsers (and their headers), and there were no missing
dependencies because the generated headers were not actually used.
1998-05-04 17:56:22 +00:00
Bruce Evans
b03605afba Simplified using new yacc rules. This is cosmetic - the old rules worked
with `make -jN' because they did the right things to generate cexp.h
without clobbering cexp.c, and there were no missing dependencies on
cexp.h because cexp.h isn't actually used.

Fixed style bugs.
1998-05-04 16:58:50 +00:00
Bruce Evans
e6abc0de81 Fixed races in `make -jN' using new yacc rules. This also fixes plain
`make' (without a previous `make depend').
1998-05-04 16:31:41 +00:00
Bruce Evans
badaccf0f2 Fixed races in `make -jN' using new yacc rules.
Fixed slightly wrong order of -I's in CFLAGS.

FIxed the usual style bugs in DPADD and LDADD.
1998-05-04 16:22:30 +00:00
Bruce Evans
225e2a04f3 Symlink awk.y to awktab.y so that the default yacc rules apply, and use
the (new) default yacc rules.  This is cosmetic - the special rule was
good enough here because y.tab.h is not used.

Don't generate y.output.
1998-05-04 16:18:57 +00:00
Wolfram Schneider
0efaf64376 Added a alpha category to the list. 1998-05-04 10:13:08 +00:00
Andrey A. Chernov
770f6b3dcf Do not store the same config.h twice - use one from bc directory 1998-05-01 19:20:42 +00:00
Andrey A. Chernov
ec8ce75e89 Add missing -DHAVE_CONFIG_H 1998-05-01 19:13:41 +00:00
Bruce Evans
cca078f55e Inherit BINDIR properly. 1998-05-01 14:48:06 +00:00
Bruce Evans
2b3c4dd72c Fixed apparent bitrot (=' changed to ?=') in the definition of BINDIR
in the previous commit.  Just don't define it here at all.  This works
now that the default is inherited properly.
1998-05-01 14:44:00 +00:00
Bruce Evans
b2198963be Removed self-inclusion-prevention ifdef. It is unnecessary now that
bsd.man.mk doesn't include ${.CURDIR}/../Makefile.inc.

Removed GDBDIR-redefinition-prevention ifdef.  It hasn't done anothing
for a long time, if ever.  The directory is defined to the same value in
each subdir and had the same value because all subdirs are at the same
level.  Keep defining it in the subdirs since that is more flexible and
no more verbose.

Prepare to inherit BINDIR by including ../Makefile.inc.
1998-05-01 14:37:36 +00:00
Bruce Evans
9ca48245eb Oops, This should have been committed with the Makefile change that
requires the new file.

Fixed stale near-copy of contrib/libreadline/doc/hsuser.texinfo.  Patch
it at build ntime, and only keep the patch for it here.

Don't keep a copy of contrib/gdb/gdb/doc/all-cfg.texi here.  Link to it
at build time.
1998-05-01 14:13:00 +00:00
Bruce Evans
5da6b79d47 Fixed dependencies.
Fixed stale near-copy of contrib/libreadline/doc/hsuser.texinfo.  Patch
it at build ntime, and only keep the patch for it here.

Don't keep a copy of contrib/gdb/gdb/doc/all-cfg.texi here.  Link to it
at build time.
1998-05-01 14:08:30 +00:00
Dag-Erling Smørgrav
832984b50e Don't delete man pages with colons in their name (e.g. Perl 5 manpages)
PR:		bin/5439
Submitted by:	Martin Kammerhofer dada@sbox.tu-graz.ac.at
1998-05-01 13:27:27 +00:00