World - Change default compiler from gcc-5 to gcc-8
[dragonfly.git] / gnu / usr.bin / cc80 / drivers / c++ / Makefile
CommitLineData
2233c95b 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)
2a89766a 9LINKS+= ${BINDIR}/c++ ${BINDIR}/CC
2233c95b 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>