freebsd-nq/gnu/usr.bin/cc/c++/Makefile
Dimitry Andric dfbaea8347 Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that
installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp.

Note this does *not* disable building and installing gcc, which will
still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp.  If
you want to disable gcc completely, you must use WITHOUT_GCC.

MFC after:	2 weeks
2012-02-29 22:58:51 +00:00

22 lines
338 B
Makefile

# $FreeBSD$
.include <bsd.own.mk>
.include "../Makefile.inc"
.include "../Makefile.fe"
.PATH: ${GCCDIR}/cp
PROG= g++
SRCS+= g++spec.c
.if ${MK_CLANG_IS_CC} == "no"
LINKS= ${BINDIR}/g++ ${BINDIR}/c++
LINKS+= ${BINDIR}/g++ ${BINDIR}/CC
.endif
NO_MAN=
DPADD= ${LIBCPP} ${LIBIBERTY}
LDADD= ${LIBCPP} ${LIBIBERTY}
.include <bsd.prog.mk>