4359ff87e0
In case of installation of both clang and GCC, we want to be able to switch which one is the default by adapting the cc, c++ & cpp symlinks. The default behaviour implemented here is to prefer clang over gcc if they are both installed. Change-Id: Ic14720cd876d2bf934d345a955cb5789378209e6
28 lines
512 B
Makefile
28 lines
512 B
Makefile
# $NetBSD: Makefile,v 1.2 2011/06/29 02:00:09 mrg Exp $
|
|
|
|
PROG= gplusplus
|
|
PROGNAME= g++
|
|
SRCS= g++spec.c
|
|
|
|
NOMAN= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
CPPFLAGS+= -I${BACKENDOBJ}
|
|
|
|
.if defined(__MINIX)
|
|
.if ${HAVE_LLVM:Uno} == "no"
|
|
SYMLINKS+= g++ ${BINDIR}/c++
|
|
.endif # ${HAVE_LLVM:Uno} == "no"
|
|
.else
|
|
LINKS+= ${BINDIR}/g++ ${BINDIR}/c++
|
|
.endif # defined(__MINIX)
|
|
|
|
.include "../Makefile.frontend"
|
|
|
|
.PATH: ${DIST}/gcc ${DIST}/gcc/cp
|
|
|
|
.if !defined(__MINIX)
|
|
LDADD+= -lintl
|
|
DPADD+= ${LIBINTL}
|
|
.endif # !defined(__MINIX)
|