1 # $DragonFly: src/gnu/usr.bin/cc34/Makefile.inc,v 1.5 2007/01/20 03:51:33 corecode Exp $
3 BINDIR?= /usr/libexec/gcc34
4 .include "../Makefile.inc"
6 GCCDIR= ${.CURDIR}/${TOP_PREFIX}/../../../../contrib/gcc-3.4
7 OTOPDIR= ${.OBJDIR}/${TOP_PREFIX}/..
8 STOPDIR= ${.CURDIR}/${TOP_PREFIX}/..
10 TOOLDIR= ${OTOPDIR}/cc_tools
11 SRC_TOOLDIR= ${STOPDIR}/cc_tools
13 CFLAGS+= -I${OTOPDIR}/cc_prep -I${STOPDIR}/cc_prep -I${STOPDIR}/cc_prep/config
14 CFLAGS+= -I${GCCDIR}/gcc -I${GCCDIR}/gcc/config -I${GCCDIR}/include
16 CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
17 CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
18 CFLAGS+= -DPREFIX1=\"${TOOLS_PREFIX}/usr\"
19 CFLAGS+= -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
20 CFLAGS+= -DSTACK_PROTECTOR
22 .include "Makefile.tgt"
24 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
25 CFLAGS+= -DCROSS_COMPILE
28 MD_FILE= ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
30 .if defined(GCC_LANG_DIR)
31 .PATH: ${GCCDIR}/${GCC_LANG_DIR}
34 .if !defined(GCC_NO_PATH)
35 .PATH: ${OTOPDIR}/cc_prep ${STOPDIR}/cc_prep ${GCCDIR}/gcc ${GCCDIR}/libiberty
38 LIBBACKEND= ${.OBJDIR}/../libbackend/libbackend.a
39 LIBCPP= ${.OBJDIR}/../libcpp/libcpp.a