xref: /dragonfly/gnu/usr.bin/cc80/drivers/c++/Makefile (revision 335b9e93)
1GCC_LANG_DIR=	gcc/cp
2.include "../Makefile.inc"
3.include "../../Makefile.langs"
4.include "../../../Makefile.cco"
5
6PROG_CXX=	c++
7LINKS=		${BINDIR}/c++ ${BINDIR}/g++
8LINKS+=		${BINDIR}/c++ ${BINDIR}/CC
9MAN=		# man pages installed by cc (MLINK)
10
11SRCS=		${GCC_SRCS} g++spec.c ${EXTRA_GCC_SRCS}
12
13CFLAGS+=	-DCONFIGURE_SPECS="\"\"" \
14		-DACCEL_DIR_SUFFIX="\"\"" \
15		-DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
16
17# hack to force c++ compiler to compile *.c files to create program
18.for cfile in ${SRCS}
19${cfile:.c=.o}: ${cfile}
20	${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
21.endfor
22
23.include <bsd.prog.mk>
24