1 # $FreeBSD: src/gnu/usr.bin/cc/Makefile.inc,v 1.63 2002/06/04 19:45:08 obrien Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/Attic/Makefile.inc,v 1.4 2004/02/02 05:43:12 dillon Exp $
4 BINDIR?=/usr/libexec/gcc3
6 .include "../Makefile.inc"
8 # Sometimes this is .include'd several times...
9 .if !defined(__CC_MAKEFILE_INC__)
10 __CC_MAKEFILE_INC__= ${MFILE}
12 GCCDIR= ${.CURDIR}/../../../../contrib/gcc3
14 .include "Makefile.tgt"
16 # Machine description.
17 MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
18 target= ${TARGET_ARCH}-undermydesk-freebsd
20 CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
21 CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
22 #CFLAGS+= -DWANT_COMPILER_INVARIANTS
24 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
25 # to get the proper sizes in limits.h
26 .if defined(LONG_TYPE_SIZE)
27 CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
30 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
31 CFLAGS+= -DCROSS_COMPILE
34 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
35 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
38 .if exists(${.OBJDIR}/../cc_tools)
39 CFLAGS+= -I${.OBJDIR}/../cc_tools
41 CFLAGS+= -I${.CURDIR}/../cc_tools
42 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
44 CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
46 .if exists(${.OBJDIR}/../cc_int)
47 LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a
49 LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a
52 .endif # !__CC_MAKEFILE_INC__