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