]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - gnu/usr.bin/cc/Makefile.fe
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / gnu / usr.bin / cc / Makefile.fe
1 # $FreeBSD$
2
3 #       Front-end-only bits
4
5 .include "Makefile.ver"
6
7 #
8 # These were previously defined in gcc.c.  Just copy previous values from
9 # there. We ifdef most of them out for FREEBSD_NATIVE builds anyway.
10 # gcc.c won't compile without them though.
11 DRIVER_DEFINES = -DGCC_DRIVER \
12         -DDEFAULT_TARGET_VERSION=\"$(BASEVER)\" \
13         -DDEFAULT_TARGET_MACHINE=\"$(GCC_TARGET)\"  \
14         -DENABLE_SHARED_LIBGCC
15
16 CFLAGS+= ${DRIVER_DEFINES}
17
18 .PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/doc ${GCCDIR}/config/${GCC_CPU}
19
20 SRCS=   gcc.c opts-common.c options.c intl.c prefix.c version.c
21
22 # Include -march=native support for native-ish compilers only
23 .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64") && \
24     ${GCC_CPU} == "i386"
25 SRCS+=  driver-${GCC_CPU}.c
26 .endif
27
28 DPADD=  ${LIBCPP} ${LIBIBERTY}
29 LDADD=  ${LIBCPP} ${LIBIBERTY}