xref: /dragonfly/gnu/usr.bin/cc80/drivers/c++/Makefile (revision 7bcb6caf)
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++
8# Enable this SGI compat once gcc80 becomes default (DPorts anchor)
9#LINKS+=		${BINDIR}/c++ ${BINDIR}/CC
10MAN=		# man pages installed by cc (MLINK)
11
12SRCS=		${GCC_SRCS} g++spec.c ${EXTRA_GCC_SRCS}
13
14CFLAGS+=	-DCONFIGURE_SPECS="\"\"" \
15		-DACCEL_DIR_SUFFIX="\"\"" \
16		-DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
17
18# hack to force c++ compiler to compile *.c files to create program
19.for cfile in ${SRCS}
20${cfile:.c=.o}: ${cfile}
21	${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
22.endfor
23
24.include <bsd.prog.mk>
25