diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-01-11 04:10:26 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-01-11 04:10:26 +0000 |
| commit | df13e7f694c50948c489abf4b3e2afe2d9be5ad7 (patch) | |
| tree | 3fc546096a8da8fb9031049fabb300f41f7ebae4 /gnu/usr.bin/cc/Makefile.inc | |
| parent | b5b4c13254459e4fa4485e87b7555076200f6574 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.inc')
| -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 1b4fd4e4d757..3707b2d5cd23 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 |
