minix/external/gpl3/gcc/usr.bin/g++/Makefile
Lionel Sambuc 4359ff87e0 Replace cc, c++ & cpp with symlinks
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
2014-07-28 17:06:02 +02:00

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)