diff options
author | jb <jb@FreeBSD.org> | 1998-01-11 04:10:26 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-01-11 04:10:26 +0000 |
commit | 309ec7a4ef6918ce873c9faaf794717fe858b3ce (patch) | |
tree | f26cdc271e06235deac50fd9cf32d1900569f970 /gnu | |
parent | c22d9c68f74fe9841a920b0652c059c88bff01c0 (diff) | |
download | FreeBSD-src-309ec7a4ef6918ce873c9faaf794717fe858b3ce.zip FreeBSD-src-309ec7a4ef6918ce873c9faaf794717fe858b3ce.tar.gz |
Replace i386 references with ${MACHINE} to make this makefile almost
machine independent, with the only dependency being the binary format
to build. We only expect to build ELF on alpha although we'll need
ECOFF compatibility with Digital Unix.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 1b4fd4e..3707b2d 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -1,5 +1,5 @@ # -# $Id: Makefile.inc,v 1.19 1997/02/22 15:44:48 peter Exp $ +# $Id: Makefile.inc,v 1.20 1997/03/28 04:45:30 jdp Exp $ # # Sometimes this is .include'd several times... @@ -10,22 +10,26 @@ GCCDIR= ${.CURDIR}/../../../../contrib/gcc BISON?= bison # Machine description. -MD_FILE= ${GCCDIR}/config/i386/i386.md -OUT_FILE= i386.c -OUT_OBJ= i386 -.PATH: ${GCCDIR}/config/i386 +MD_FILE= ${GCCDIR}/config/${MACHINE}/${MACHINE}.md +OUT_FILE= ${MACHINE}.c +OUT_OBJ= ${MACHINE} +.PATH: ${GCCDIR}/config/${MACHINE} +.if ${MACHINE} == "alpha" +BINFORMAT= elf +.else # Pick aout for now. the elf config is not binary compatable. BINFORMAT?= aout #BINFORMAT?= elf +.endif .if ${BINFORMAT} == aout CFLAGS+= -DFREEBSD_AOUT -target= i386-unknown-freebsd +target= ${MACHINE}-unknown-freebsd .endif .if ${BINFORMAT} == elf CFLAGS+= -DFREEBSD_ELF -target= i386-unknown-freebsdelf +target= ${MACHINE}-unknown-freebsdelf .endif version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c |