2002-04-06 23:16:27 +00:00
|
|
|
# $FreeBSD$
|
2002-04-06 23:18:01 +00:00
|
|
|
|
|
|
|
# Front-end-only bits
|
|
|
|
|
2007-05-19 04:25:59 +00:00
|
|
|
.include "Makefile.ver"
|
2004-07-28 05:27:21 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# These were previously defined in gcc.c. Just copy previous values from
|
|
|
|
# there. We ifdef most of them out for FREEBSD_NATIVE builds anyway.
|
|
|
|
# gcc.c won't compile without them though.
|
2007-05-19 04:25:59 +00:00
|
|
|
DRIVER_DEFINES = -DGCC_DRIVER \
|
|
|
|
-DDEFAULT_TARGET_VERSION=\"$(BASEVER)\" \
|
|
|
|
-DDEFAULT_TARGET_MACHINE=\"$(GCC_TARGET)\" \
|
|
|
|
-DENABLE_SHARED_LIBGCC
|
2004-07-28 05:27:21 +00:00
|
|
|
|
|
|
|
CFLAGS+= ${DRIVER_DEFINES}
|
2007-05-19 04:25:59 +00:00
|
|
|
|
|
|
|
.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/doc ${GCCDIR}/config/${GCC_CPU}
|
|
|
|
|
|
|
|
SRCS= gcc.c opts-common.c options.c intl.c prefix.c version.c
|
|
|
|
|
2010-12-02 17:36:47 +00:00
|
|
|
# Include -march=native support for native-ish compilers only
|
|
|
|
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64") && \
|
|
|
|
${GCC_CPU} == "i386"
|
2007-05-19 04:25:59 +00:00
|
|
|
SRCS+= driver-${GCC_CPU}.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD= ${LIBCPP} ${LIBIBERTY}
|
|
|
|
LDADD= ${LIBCPP} ${LIBIBERTY}
|