Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / usr.bin / cc34 / Makefile.inc
CommitLineData
41724cd9 1# $DragonFly: src/gnu/usr.bin/cc34/Makefile.inc,v 1.5 2007/01/20 03:51:33 corecode Exp $
9c6a5411
JS
2
3BINDIR?= /usr/libexec/gcc34
9c6a5411
JS
4.include "../Makefile.inc"
5
6GCCDIR= ${.CURDIR}/${TOP_PREFIX}/../../../../contrib/gcc-3.4
7OTOPDIR= ${.OBJDIR}/${TOP_PREFIX}/..
8STOPDIR= ${.CURDIR}/${TOP_PREFIX}/..
9
10TOOLDIR= ${OTOPDIR}/cc_tools
11SRC_TOOLDIR= ${STOPDIR}/cc_tools
12
2062943f 13CFLAGS+= -I${OTOPDIR}/cc_prep -I${STOPDIR}/cc_prep -I${STOPDIR}/cc_prep/config
9c6a5411
JS
14CFLAGS+= -I${GCCDIR}/gcc -I${GCCDIR}/gcc/config -I${GCCDIR}/include
15
16CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
17CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
18CFLAGS+= -DPREFIX1=\"${TOOLS_PREFIX}/usr\"
19CFLAGS+= -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
620eab5b 20CFLAGS+= -DSTACK_PROTECTOR
9c6a5411
JS
21
22.include "Makefile.tgt"
23
24.if ${TARGET_ARCH} != ${MACHINE_ARCH}
25CFLAGS+= -DCROSS_COMPILE
26.endif
27
28MD_FILE= ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
29
30.if defined(GCC_LANG_DIR)
31.PATH: ${GCCDIR}/${GCC_LANG_DIR}
32.endif
33
34.if !defined(GCC_NO_PATH)
35.PATH: ${OTOPDIR}/cc_prep ${STOPDIR}/cc_prep ${GCCDIR}/gcc ${GCCDIR}/libiberty
36.endif
41724cd9
SS
37
38LIBBACKEND= ${.OBJDIR}/../libbackend/libbackend.a
39LIBCPP= ${.OBJDIR}/../libcpp/libcpp.a