1994-08-02 20:15:59 +00:00
|
|
|
#
|
1996-09-21 14:27:38 +00:00
|
|
|
# $Id: Makefile.inc,v 1.15 1996/09/19 15:38:01 peter Exp $
|
1994-08-02 20:15:59 +00:00
|
|
|
#
|
|
|
|
|
1996-09-19 15:53:53 +00:00
|
|
|
# Sometimes this is .include'd several times...
|
|
|
|
.if !defined(GCCDIR)
|
|
|
|
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
|
|
|
|
.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/cp ${GCCDIR}/objc
|
|
|
|
|
|
|
|
BISON?= bison
|
|
|
|
|
|
|
|
# Machine description.
|
|
|
|
MD_FILE= ${GCCDIR}/config/i386/i386.md
|
|
|
|
OUT_FILE= ${GCCDIR}/config/i386/i386.c
|
|
|
|
OUT_OBJ= i386
|
|
|
|
|
|
|
|
# Pick aout for now. the elf config is not binary compatable.
|
|
|
|
BINFORMAT= aout
|
|
|
|
#BINFORMAT= elf
|
|
|
|
|
|
|
|
.if ${BINFORMAT} == aout
|
|
|
|
CFLAGS+= -DFREEBSD_AOUT
|
|
|
|
target= i386-unknown-freebsd
|
|
|
|
.endif
|
|
|
|
.if ${BINFORMAT} == elf
|
|
|
|
CFLAGS+= -DFREEBSD_ELF
|
|
|
|
target= i386-unknown-freebsdelf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c
|
|
|
|
|
|
|
|
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
|
|
|
|
CFLAGS+= -DFREEBSD_NATIVE
|
|
|
|
CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
|
|
|
|
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../cc_tools)
|
|
|
|
CFLAGS+= -I${.OBJDIR}/../cc_tools
|
|
|
|
.else
|
|
|
|
CFLAGS+= -I${.CURDIR}/../cc_tools
|
|
|
|
.endif
|
1994-08-28 18:49:06 +00:00
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
.if exists(${.OBJDIR}/../cc_int)
|
|
|
|
LIBDESTDIR= ${.OBJDIR}/../cc_int
|
1994-08-28 18:49:06 +00:00
|
|
|
.else
|
|
|
|
LIBDESTDIR= ${.CURDIR}/../cc_int
|
|
|
|
.endif
|
|
|
|
|
1994-09-19 21:37:50 +00:00
|
|
|
LIBCC_INT= ${LIBDESTDIR}/libcc_int.a
|
1996-09-19 15:53:53 +00:00
|
|
|
|
|
|
|
.endif
|