1#
| 1#
|
2# $Id: Makefile.inc,v 1.19 1997/02/22 15:44:48 peter Exp $
| 2# $Id: Makefile.inc,v 1.20 1997/03/28 04:45:30 jdp Exp $
|
3# 4 5# Sometimes this is .include'd several times... 6.if !defined(GCCDIR) 7GCCDIR= ${.CURDIR}/../../../../contrib/gcc 8.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/cp ${GCCDIR}/objc 9 10BISON?= bison 11 12# Machine description.
| 3# 4 5# Sometimes this is .include'd several times... 6.if !defined(GCCDIR) 7GCCDIR= ${.CURDIR}/../../../../contrib/gcc 8.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/cp ${GCCDIR}/objc 9 10BISON?= bison 11 12# Machine description.
|
13MD_FILE= ${GCCDIR}/config/i386/i386.md 14OUT_FILE= i386.c 15OUT_OBJ= i386 16.PATH: ${GCCDIR}/config/i386
| 13MD_FILE= ${GCCDIR}/config/${MACHINE}/${MACHINE}.md 14OUT_FILE= ${MACHINE}.c 15OUT_OBJ= ${MACHINE} 16.PATH: ${GCCDIR}/config/${MACHINE}
|
17
| 17
|
| 18.if ${MACHINE} == "alpha" 19BINFORMAT= elf 20.else
|
18# Pick aout for now. the elf config is not binary compatable. 19BINFORMAT?= aout 20#BINFORMAT?= elf
| 21# Pick aout for now. the elf config is not binary compatable. 22BINFORMAT?= aout 23#BINFORMAT?= elf
|
| 24.endif
|
21 22.if ${BINFORMAT} == aout 23CFLAGS+= -DFREEBSD_AOUT
| 25 26.if ${BINFORMAT} == aout 27CFLAGS+= -DFREEBSD_AOUT
|
24target= i386-unknown-freebsd
| 28target= ${MACHINE}-unknown-freebsd
|
25.endif 26.if ${BINFORMAT} == elf 27CFLAGS+= -DFREEBSD_ELF
| 29.endif 30.if ${BINFORMAT} == elf 31CFLAGS+= -DFREEBSD_ELF
|
28target= i386-unknown-freebsdelf
| 32target= ${MACHINE}-unknown-freebsdelf
|
29.endif 30 31version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c 32 33CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config 34CFLAGS+= -DFREEBSD_NATIVE 35CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" 36CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
--- 16 unchanged lines hidden --- | 33.endif 34 35version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c 36 37CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config 38CFLAGS+= -DFREEBSD_NATIVE 39CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" 40CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
--- 16 unchanged lines hidden --- |