xref: /minix3/external/gpl3/gcc/usr.bin/cpp/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc#	$NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
218a5822eSThomas Veerman
318a5822eSThomas Veerman# For ../Makefile.inc and bsd.own.mk
418a5822eSThomas Veerman.include <bsd.init.mk>
518a5822eSThomas Veerman
64359ff87SLionel Sambuc.if defined(__MINIX)
74359ff87SLionel Sambuc# In case of installation of both clang and GCC, we want to be able to
84359ff87SLionel Sambuc# switch which one is the default by adapting the cc, c++ & cpp symlinks
94359ff87SLionel SambucPROG=		gcpp
104359ff87SLionel Sambuc.else
1118a5822eSThomas VeermanPROG=		cpp
124359ff87SLionel Sambuc.endif # defined(__MINIX)
13*0a6a1f1dSLionel SambucSRCS=		cppspec.c ${G_GCC_OBJS:.o=.c}
1418a5822eSThomas Veerman
1518a5822eSThomas VeermanCPPFLAGS+=	-I${BACKENDOBJ}
16*0a6a1f1dSLionel Sambuc# XXX
17*0a6a1f1dSLionel SambucCPPFLAGS+=	-DCONFIGURE_SPECS="\"\"" \
1818a5822eSThomas Veerman		-DDEFAULT_TARGET_VERSION=\"${G_version}\" \
19*0a6a1f1dSLionel Sambuc		-DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\"
20*0a6a1f1dSLionel Sambuc
21*0a6a1f1dSLionel SambucCOPTS+=		-Wno-stack-protector
2218a5822eSThomas Veerman
234359ff87SLionel Sambuc.if defined(__MINIX)
244359ff87SLionel Sambuc.if ${HAVE_LLVM:Uno} == "no"
25*0a6a1f1dSLionel SambucSYMLINKS=	${BINDIR}/gcpp ${BINDIR}/cpp
264359ff87SLionel Sambuc.endif # ${HAVE_LLVM:Uno} == "no"
274359ff87SLionel Sambuc.else
2818a5822eSThomas VeermanLINKS=		${BINDIR}/cpp ${BINDIR}/gcpp
294359ff87SLionel Sambuc.endif # defined(__MINIX)
3018a5822eSThomas Veerman
3118a5822eSThomas VeermanMAN=		cpp.1
3218a5822eSThomas VeermanMLINKS+=	cpp.1 gcpp.1 cpp.1 cccp.1
3318a5822eSThomas Veerman
34*0a6a1f1dSLionel SambucTEXINFO=	cpp.texi
35*0a6a1f1dSLionel SambucINFOFLAGS=	-I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I.
3618a5822eSThomas Veerman
370cdf705cSLionel Sambuc.if !defined(__MINIX)
3818a5822eSThomas VeermanLDADD+=		-lintl
39*0a6a1f1dSLionel SambucDPADD+=		${LIBINTL}
400cdf705cSLionel Sambuc.endif # !defined(__MINIX)
4118a5822eSThomas Veerman
42*0a6a1f1dSLionel Sambuc.include "../Makefile.frontend"
43*0a6a1f1dSLionel Sambuc
44*0a6a1f1dSLionel Sambuc${SRCS}: ${GCCARCH}/defs.mk
4518a5822eSThomas Veerman
4618a5822eSThomas Veerman.include <bsd.info.mk>
4718a5822eSThomas Veerman
48*0a6a1f1dSLionel SambucCOPTS.gcc.c=	-Wno-stack-protector
49*0a6a1f1dSLionel Sambuc
50*0a6a1f1dSLionel Sambuc.PATH: ${DIST}/gcc ${DIST}/gcc/c-family ${DIST}/gcc/doc
5118a5822eSThomas Veerman
5218a5822eSThomas Veermancpp.info: gcc-vers.texi
53