xref: /netbsd-src/external/gpl3/gcc/usr.bin/Makefile.prog (revision a04395531661c5e8d314125d5ae77d4cbedd5d73)
1#	$NetBSD: Makefile.prog,v 1.2 2021/09/18 01:47:08 christos Exp $
2
3# common fragment for any thing linking with C++
4
5.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_PROG_
6_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_PROG_=1
7
8HOSTPROG_CXX=	1
9
10.include <bsd.prog.mk>
11
12# Force using C++ for this
13HOST_CC:=	${HOST_CXX}
14HOST_CFLAGS:=	${HOST_CXXFLAGS}
15CC:=		${CXX}
16CFLAGS:=	${CXXFLAGS}
17
18# Don't auto-frob .y or .l files.
19.l.c .y.c .y.h:
20	@true
21
22.endif
23