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