Makefile.inc revision 97830
1# $FreeBSD: head/gnu/usr.bin/cc/Makefile.inc 97830 2002-06-04 19:45:09Z obrien $ 2 3.include "../Makefile.inc" 4 5# Sometimes this is .include'd several times... 6.if !defined(__CC_MAKEFILE_INC__) 7__CC_MAKEFILE_INC__= ${MFILE} 8 9GCCDIR= ${.CURDIR}/../../../../contrib/gcc 10 11.include "Makefile.tgt" 12 13# Machine description. 14MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md 15target= ${TARGET_ARCH}-undermydesk-freebsd 16 17CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H 18CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\" 19#CFLAGS+= -DWANT_COMPILER_INVARIANTS 20 21# If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined 22# to get the proper sizes in limits.h 23.if defined(LONG_TYPE_SIZE) 24CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE} 25.endif 26 27.if ${TARGET_ARCH} != ${MACHINE_ARCH} 28CFLAGS+= -DCROSS_COMPILE 29.endif 30 31.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE) 32CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE} 33.endif 34 35.if exists(${.OBJDIR}/../cc_tools) 36CFLAGS+= -I${.OBJDIR}/../cc_tools 37.endif 38CFLAGS+= -I${.CURDIR}/../cc_tools 39# This must go after the -I for cc_tools to resolve ambiguities for hash.h 40# correctly. 41CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config 42 43.if exists(${.OBJDIR}/../cc_int) 44LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a 45.else 46LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a 47.endif 48 49.endif # !__CC_MAKEFILE_INC__ 50