gcc44: Update version from 4.4.6-RELEASE to 4.4.7-20111025
[dragonfly.git] / gnu / usr.bin / cc44 / Makefile.inc
1 .if !target(__<cc.Makefile.inc>__)
2 __<cc.Makefile.inc>__:
3
4 GCCCOMPLETEVER= 4.4.7
5 GCCDATESTAMP=   2011.10.25
6 GCCPOINTVER=    ${GCCCOMPLETEVER:R}
7 GCCSHORTVER=    ${GCCPOINTVER:S/.//}
8
9 GCCDOCSUFFIX=   ${GCCSHORTVER}
10
11 CSTD?=          gnu89
12
13 CFLAGS+=        -DGCCPOINTVER=\"${GCCPOINTVER}\"
14 CFLAGS+=        -DGCCSHORTVER=\"${GCCSHORTVER}\"
15 CFLAGS+=        -DBASEVER=\"${GCCCOMPLETEVER}\"
16
17 CFLAGS+=        -DDEFAULT_TARGET_VERSION=\"${version}\"
18 CFLAGS+=        -DDEFAULT_TARGET_MACHINE=\"${target_machine}\"
19
20 BINDIR?=        /usr/libexec/gcc${GCCSHORTVER}
21 .include "../Makefile.inc"
22
23 GCCDIR=         ${.CURDIR}/${TOP_PREFIX}/../../../../contrib/gcc-${GCCPOINTVER}
24 OTOPDIR=        ${.OBJDIR}/${TOP_PREFIX}/..
25 STOPDIR=        ${.CURDIR}/${TOP_PREFIX}/..
26
27 TOOLDIR=        ${OTOPDIR}/cc_tools/tools
28
29 CFLAGS+=        -I${OTOPDIR}/cc_prep -I${STOPDIR}/cc_prep -I${STOPDIR}/cc_prep/config
30 CFLAGS+=        -I${GCCDIR}/gcc -I${GCCDIR}/gcc/config -I${GCCDIR}/include
31 CFLAGS+=        -I${GCCDIR}/libcpp/include
32 CFLAGS+=        -I${GCCDIR}/libdecnumber -I${GCCDIR}/libdecnumber/dpd
33 CFLAGS+=        -I${OTOPDIR}/libdecnumber
34 CFLAGS+=        -I${STOPDIR}/gmp
35 CFLAGS+=        -I${.CURDIR}/${TOP_PREFIX}/../../../../contrib/mpfr -I${STOPDIR}/mpfr
36 CFLAGS+=        -I${GCCDIR}/gcc/config/${GCC_CPU} -I${TOOLDIR}
37
38 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
39 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
40 CFLAGS+=        -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
41
42 .include "Makefile.tgt"
43
44 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
45 CFLAGS+=        -DCROSS_COMPILE
46 .endif
47
48 .if defined(GCC_LANG_DIR)
49 .PATH:  ${GCCDIR}/${GCC_LANG_DIR}
50 .endif
51
52 .if !defined(GCC_NO_PATH)
53 .PATH:  ${OTOPDIR}/cc_prep ${STOPDIR}/cc_prep ${GCCDIR}/gcc
54 .PATH:  ${GCCDIR}/gcc/config/${GCC_CPU} ${TOOLDIR}
55 .endif
56
57 LIBIBERTY=      ${OTOPDIR}/libiberty/libiberty.a
58 LIBBACKEND=     ${OTOPDIR}/libbackend/libbackend.a
59 LIBCPP=         ${OTOPDIR}/libcpp/libcpp.a
60 LIBDECNUMBER=   ${OTOPDIR}/libdecnumber/libdecnumber.a
61
62 LIBGMP=         ${OTOPDIR}/gmp/libgmp.a
63 LIBMPFR=        ${OTOPDIR}/mpfr/libmpfr.a
64
65 GMPLIBS=        ${LIBMPFR} ${LIBGMP}
66 STDLIBS=        ${LIBCPP} ${LIBIBERTY} ${LIBDECNUMBER} 
67 BACKENDLIBS=    ${GMPLIBS}
68
69 .if !defined(GCC_NO_LIBS)
70 LDADD+= ${STDLIBS}
71 DPADD+= ${STDLIBS}
72 .endif
73
74 .endif