Deleted Added
sdiff udiff text old ( 54991 ) new ( 55220 )
full compact
1# $FreeBSD: head/gnu/usr.bin/cc/Makefile.inc 54991 1999-12-22 05:34:56Z obrien $
2
3.include "../Makefile.inc"
4
5# Sometimes this is .include'd several times...
6.if !defined(GCCDIR)
7GCCDIR= ${.CURDIR}/../../../../contrib/gcc
8
9.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
10GCC_ARCH= mips
11.else
12GCC_ARCH= ${MACHINE_ARCH}
13.endif
14
15# Machine description.
16MD_FILE= ${GCCDIR}/config/${GCC_ARCH}/${GCC_ARCH}.md
17OUT_FILE= ${GCC_ARCH}.c
18OUT_OBJ= ${GCC_ARCH}
19target= ${MACHINE_ARCH}-unknown-freebsd
20
21# These architectures are Cygnus's default for enabling Haifa.
22.if ${GCC_ARCH} == "alpha" || ${GCC_ARCH} == "sparc"
23USE_EGCS_HAIFA= 1
24.endif
25
26version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c
27
28CFLAGS+= -DFREEBSD_NATIVE -DIN_GCC -DHAVE_CONFIG_H
29CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
30CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
31.if defined(LONG_TYPE_SIZE)
32CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
33.endif
34
35.if defined(USE_EGCS_HAIFA)
36CFLAGS+= -DHAIFA
37.endif
38
39# If hw.machine_arch doesn't match ${MACHINE_ARCH}, then we're cross
40# compiling. gcc needs to know about this, so we set the -DCROSS_COMPILE
41# define.
42__M!= /sbin/sysctl -b hw.machine_arch
43.if ${__M} != ${MACHINE_ARCH}
44CFLAGS+= -DCROSS_COMPILE
45.endif
46
47.if exists(${.OBJDIR}/../cc_tools)
48CFLAGS+= -I${.OBJDIR}/../cc_tools
49.endif
50CFLAGS+= -I${.CURDIR}/../cc_tools
51# This must go after the -I for cc_tools to resolve ambiguities for hash.h

--- 22 unchanged lines hidden ---