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
|
|
|
|
|
|
|
|
.if exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c)
|
|
|
|
SRCS+= driver-${GCC_CPU}.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD= ${LIBCPP} ${LIBIBERTY}
|
|
|
|
LDADD= ${LIBCPP} ${LIBIBERTY}
|