gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc47 / Makefile.inc
1 .if !target(__<cc.Makefile.inc>__)
2 __<cc.Makefile.inc>__:
3
4 GCCCOMPLETEVER= 4.7.2
5 GCCDATESTAMP=   2012-09-20
6 GCCPOINTVER=    ${GCCCOMPLETEVER:R}
7 GCCSHORTVER=    ${GCCPOINTVER:S/.//}
8
9 CFLAGS+=        -DGCCPOINTVER=\"${GCCPOINTVER}\"
10 CFLAGS+=        -DGCCSHORTVER=\"${GCCSHORTVER}\"
11 CFLAGS+=        -DBASEVER=\"${GCCCOMPLETEVER}\"
12
13 CFLAGS+=        -DDEFAULT_TARGET_VERSION=\"${version}\"
14 CFLAGS+=        -DDEFAULT_TARGET_MACHINE=\"${target_machine}\"
15
16 BINDIR?=        /usr/libexec/gcc${GCCSHORTVER}
17
18 GCCDIR=         ${.CURDIR}/${TOP_PREFIX}../../../../contrib/gcc-${GCCPOINTVER}
19 OTOPDIR=        ${.OBJDIR}/${TOP_PREFIX}..
20 STOPDIR=        ${.CURDIR}/${TOP_PREFIX}..
21
22 TOOLDIR=        ${OTOPDIR}/cc_tools/tools
23
24 .if defined(LOCAL_CONFIG)
25 CFLAGS+=        -I${.CURDIR}
26 CFLAGS+=        -I${.OBJDIR}
27 .endif
28 CFLAGS+=        -I${OTOPDIR}/cc_prep
29 CFLAGS+=        -I${STOPDIR}/cc_prep
30 CFLAGS+=        -I${STOPDIR}/cc_prep/config
31 CFLAGS+=        -I${GCCDIR}/gcc
32 CFLAGS+=        -I${GCCDIR}/gcc/config
33 CFLAGS+=        -I${GCCDIR}/include
34 CFLAGS+=        -I${GCCDIR}/libcpp/include
35 CFLAGS+=        -I${GCCDIR}/libdecnumber
36 CFLAGS+=        -I${GCCDIR}/libdecnumber/dpd
37 CFLAGS+=        -I${OTOPDIR}/libdecnumber
38 CFLAGS+=        -I${STOPDIR}/../gmp
39 CFLAGS+=        -I${STOPDIR}/../../../contrib/mpfr/src
40 CFLAGS+=        -I${STOPDIR}/../mpfr
41 CFLAGS+=        -I${STOPDIR}/../../../contrib/mpc/src
42 CFLAGS+=        -I${GCCDIR}/gcc/config/${GCC_CPU}
43 CFLAGS+=        -I${TOOLDIR}
44
45 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
46 CFLAGS+=        -DPREFIX1=\"${TOOLS_PREFIX}/usr\"
47 CFLAGS+=        -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
48
49 .include "Makefile.tgt"
50
51 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
52 CFLAGS+= -DCROSS_COMPILE
53 .endif
54
55 .if defined(GCC_LANG_DIR)
56 .PATH: ${GCCDIR}/${GCC_LANG_DIR}
57 .endif
58
59 .if !defined(GCC_NO_PATH)
60 .PATH: ${OTOPDIR}/cc_prep
61 .PATH: ${STOPDIR}/cc_prep
62 .PATH: ${GCCDIR}/gcc
63 .PATH: ${GCCDIR}/gcc/c-family
64 .PATH: ${GCCDIR}/gcc/config 
65 .PATH: ${GCCDIR}/gcc/config/${GCC_CPU}
66 .PATH: ${TOOLDIR}
67 .endif
68
69 LIBIBERTY=      ${OTOPDIR}/libiberty/libiberty.a
70 LIBBACKEND=     ${OTOPDIR}/libbackend/libbackend.a
71 LIBCPP=         ${OTOPDIR}/libcpp/libcpp.a
72 LIBDECNUMBER=   ${OTOPDIR}/libdecnumber/libdecnumber.a
73 LIBCOMMON=      ${OTOPDIR}/libcommon/libcommon.a
74 LIBCOMMONTARG=  ${OTOPDIR}/libcommon-target/libcommon-target.a
75
76 LIBGMP=         ${OTOPDIR}/../gmp/libgmp.a
77 LIBMPFR=        ${OTOPDIR}/../mpfr/libmpfr.a
78 LIBMPC=         ${OTOPDIR}/../mpc/libmpc.a
79 LIBZ=           ${OTOPDIR}/../../../lib/libz/libz.a
80
81 GMPLIBS=        ${LIBMPC} ${LIBMPFR} ${LIBGMP}
82 STDLIBS=        ${LIBCOMMONTARG} ${LIBCOMMON} ${LIBCPP} ${LIBIBERTY} ${LIBDECNUMBER} 
83 BACKENDLIBS=    ${GMPLIBS} ${LIBZ}
84
85 .if !defined(GCC_NO_LIBS)
86 LDADD+= ${STDLIBS}
87 DPADD+= ${STDLIBS}
88 .endif
89
90 .endif