summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/Makefile.fe
blob: 474548ad7726dcece0a3a3119660dacf0f5472b0 (plain)
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.8.1 2009/04/15 03:14:26 kensmith Exp $
# $OpenBSD: Makefile.fe,v 1.1.1.1 2009/10/15 20:50:19 robert 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)\"

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}