diff options
author | jb <jb@FreeBSD.org> | 1998-01-13 06:00:56 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-01-13 06:00:56 +0000 |
commit | 6a931ec2e7c967aeaf125957deb3876d080c8cc1 (patch) | |
tree | 2f2cf780582ccf248582985df608ad141a5564ab | |
parent | 3eb57c0db4c2177c84f4ea4ff8aed9c7c0b29757 (diff) | |
download | FreeBSD-src-6a931ec2e7c967aeaf125957deb3876d080c8cc1.zip FreeBSD-src-6a931ec2e7c967aeaf125957deb3876d080c8cc1.tar.gz |
Choose the default binary format based on machine type.
Alpha is elf, not aout.
-rw-r--r-- | share/mk/bsd.lib.mk | 6 | ||||
-rw-r--r-- | share/mk/sys.mk | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 69c4e1b..9c6e7eb 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.64 1997/12/17 13:36:44 bde Exp $ +# $Id: bsd.lib.mk,v 1.65 1997/12/17 15:18:53 bde Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -7,7 +7,11 @@ .endif # Default executable format +.if ${MACHINE} == "alpha" +BINFORMAT?= elf +.else BINFORMAT?= aout +.endif .if exists(${.CURDIR}/shlib_version) SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 72a5e78..a185f6e 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -1,5 +1,5 @@ # from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 -# $Id: sys.mk,v 1.25 1997/09/05 09:09:56 peter Exp $ +# $Id: sys.mk,v 1.26 1997/09/05 11:45:15 peter Exp $ unix ?= We run FreeBSD, not UNIX. @@ -95,7 +95,11 @@ YFLAGS ?= -d .endif # Default executable format +.if ${MACHINE} == "alpha" +BINFORMAT ?= elf +.else BINFORMAT ?= aout +.endif # For tags rule. GTAGSFLAGS= -se |