1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1994-08-02 20:15:59 +00:00
|
|
|
|
1999-04-18 09:36:11 +00:00
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
1996-09-19 15:53:53 +00:00
|
|
|
# Sometimes this is .include'd several times...
|
2002-04-23 00:10:18 +00:00
|
|
|
.if !defined(__CC_MAKEFILE_INC__)
|
|
|
|
__CC_MAKEFILE_INC__= ${MFILE}
|
|
|
|
|
2002-05-07 01:26:58 +00:00
|
|
|
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
|
1996-09-19 15:53:53 +00:00
|
|
|
|
2002-04-06 23:18:01 +00:00
|
|
|
.include "Makefile.tgt"
|
1999-04-22 19:35:16 +00:00
|
|
|
|
1996-09-19 15:53:53 +00:00
|
|
|
# Machine description.
|
2002-05-07 01:26:58 +00:00
|
|
|
MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
|
|
|
|
target= ${TARGET_ARCH}-undermydesk-freebsd
|
1996-09-19 15:53:53 +00:00
|
|
|
|
2001-03-02 02:56:59 +00:00
|
|
|
CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
|
1999-12-29 14:42:46 +00:00
|
|
|
CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
|
2002-05-10 08:54:50 +00:00
|
|
|
#CFLAGS+= -DWANT_COMPILER_INVARIANTS
|
2000-11-10 16:56:38 +00:00
|
|
|
|
|
|
|
# If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
|
|
|
|
# to get the proper sizes in limits.h
|
1999-12-22 02:03:28 +00:00
|
|
|
.if defined(LONG_TYPE_SIZE)
|
|
|
|
CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
|
|
|
|
.endif
|
1996-09-19 15:53:53 +00:00
|
|
|
|
1999-12-29 14:42:46 +00:00
|
|
|
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
|
1999-04-22 19:35:16 +00:00
|
|
|
CFLAGS+= -DCROSS_COMPILE
|
|
|
|
.endif
|
|
|
|
|
2001-08-16 06:05:18 +00:00
|
|
|
.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
|
|
|
|
CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
|
|
|
|
.endif
|
|
|
|
|
1996-09-19 15:53:53 +00:00
|
|
|
.if exists(${.OBJDIR}/../cc_tools)
|
|
|
|
CFLAGS+= -I${.OBJDIR}/../cc_tools
|
|
|
|
.endif
|
1999-04-04 17:11:00 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../cc_tools
|
1999-12-22 02:03:28 +00:00
|
|
|
# This must go after the -I for cc_tools to resolve ambiguities for hash.h
|
|
|
|
# correctly.
|
1999-10-12 20:22:38 +00:00
|
|
|
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
|
1994-08-28 18:49:06 +00:00
|
|
|
|
1999-12-22 01:56:57 +00:00
|
|
|
.if exists(${.OBJDIR}/../cc_int)
|
|
|
|
LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a
|
|
|
|
.else
|
|
|
|
LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a
|
|
|
|
.endif
|
1996-09-19 15:53:53 +00:00
|
|
|
|
2002-04-23 00:10:18 +00:00
|
|
|
.endif # !__CC_MAKEFILE_INC__
|