gcc4X man pages: Introduce generic MLINK handling
[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
c50f05d2
SW
9CSTD?= gnu89
10
cdefb602
SS
11CFLAGS+= -DGCCPOINTVER=\"${GCCPOINTVER}\"
12CFLAGS+= -DGCCSHORTVER=\"${GCCSHORTVER}\"
13CFLAGS+= -DBASEVER=\"${GCCCOMPLETEVER}\"
14
2f45bf69
SS
15CFLAGS+= -DDEFAULT_TARGET_VERSION=\"${version}\"
16CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"${target_machine}\"
17
cdefb602
SS
18BINDIR?= /usr/libexec/gcc${GCCSHORTVER}
19.include "../Makefile.inc"
20
21GCCDIR= ${.CURDIR}/${TOP_PREFIX}/../../../../contrib/gcc-${GCCPOINTVER}
22OTOPDIR= ${.OBJDIR}/${TOP_PREFIX}/..
23STOPDIR= ${.CURDIR}/${TOP_PREFIX}/..
24
25TOOLDIR= ${OTOPDIR}/cc_tools/tools
26
27CFLAGS+= -I${OTOPDIR}/cc_prep -I${STOPDIR}/cc_prep -I${STOPDIR}/cc_prep/config
28CFLAGS+= -I${GCCDIR}/gcc -I${GCCDIR}/gcc/config -I${GCCDIR}/include
29CFLAGS+= -I${GCCDIR}/libcpp/include
30CFLAGS+= -I${GCCDIR}/libdecnumber -I${GCCDIR}/libdecnumber/dpd
31CFLAGS+= -I${OTOPDIR}/libdecnumber
2290a76e
JM
32CFLAGS+= -I${STOPDIR}/../gmp
33CFLAGS+= -I${.CURDIR}/${TOP_PREFIX}/../../../../contrib/mpfr/src
34CFLAGS+= -I${STOPDIR}/../mpfr
cdefb602
SS
35CFLAGS+= -I${GCCDIR}/gcc/config/${GCC_CPU} -I${TOOLDIR}
36
37CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
38CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
39CFLAGS+= -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
40
41.include "Makefile.tgt"
42
43.if ${TARGET_ARCH} != ${MACHINE_ARCH}
44CFLAGS+= -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
56LIBIBERTY= ${OTOPDIR}/libiberty/libiberty.a
57LIBBACKEND= ${OTOPDIR}/libbackend/libbackend.a
58LIBCPP= ${OTOPDIR}/libcpp/libcpp.a
59LIBDECNUMBER= ${OTOPDIR}/libdecnumber/libdecnumber.a
60
2290a76e
JM
61LIBGMP= ${OTOPDIR}/../gmp/libgmp.a
62LIBMPFR= ${OTOPDIR}/../mpfr/libmpfr.a
cdefb602
SS
63
64GMPLIBS= ${LIBMPFR} ${LIBGMP}
65STDLIBS= ${LIBCPP} ${LIBIBERTY} ${LIBDECNUMBER}
66BACKENDLIBS= ${GMPLIBS}
67
68.if !defined(GCC_NO_LIBS)
69LDADD+= ${STDLIBS}
70DPADD+= ${STDLIBS}
71.endif
72
73.endif