freebsd-dev/gnu/usr.bin/cc/Makefile.inc

56 lines
1.4 KiB
PHP
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
.include "../Makefile.inc"
# Sometimes this is .include'd several times...
.if !defined(__CC_MAKEFILE_INC__)
__CC_MAKEFILE_INC__= ${MFILE}
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
2002-04-06 23:18:01 +00:00
.include "Makefile.tgt"
# Machine description.
MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
target= ${TARGET_ARCH}-undermydesk-freebsd
CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
#CFLAGS+= -DWANT_COMPILER_INVARIANTS
# If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
# to get the proper sizes in limits.h
.if defined(LONG_TYPE_SIZE)
CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
.endif
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
CFLAGS+= -DCROSS_COMPILE
.endif
.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
.endif
.if exists(${.OBJDIR}/../cc_tools)
CFLAGS+= -I${.OBJDIR}/../cc_tools
.endif
CFLAGS+= -I${.CURDIR}/../cc_tools
# This must go after the -I for cc_tools to resolve ambiguities for hash.h
# correctly.
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
.if exists(${.OBJDIR}/../cc_fbsd)
1999-12-22 05:34:56 +00:00
LIBCC_FBSD= ${.OBJDIR}/../cc_fbsd/libcc_fbsd.a
.else
1999-12-22 05:34:56 +00:00
LIBCC_FBSD= ${.CURDIR}/../cc_fbsd/libcc_fbsd.a
.endif
.if exists(${.OBJDIR}/../cc_int)
LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a
.else
LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a
.endif
.endif # !__CC_MAKEFILE_INC__