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

--- 22 unchanged lines hidden ---