aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/Makefile.fe
blob: 5b23f30f78c1da6693511bae441d1cac35383d1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $FreeBSD: src/gnu/usr.bin/cc/Makefile.fe,v 1.5 2007/05/19 04:25:56 kan Exp $

#	Front-end-only bits

.include "Makefile.ver"

#
# 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.
DRIVER_DEFINES = -DGCC_DRIVER \
	-DDEFAULT_TARGET_VERSION=\"$(BASEVER)\" \
	-DDEFAULT_TARGET_MACHINE=\"$(GCC_TARGET)\"  \
	-DENABLE_SHARED_LIBGCC

CFLAGS+= ${DRIVER_DEFINES}

.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}