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