gcc50: Bring in makefiles but leave them unhooked
[dragonfly.git] / gnu / usr.bin / cc50 / drivers / gcov / Makefile
1 .include "../Makefile.inc"
2 .include "../Makefile.langs"
3 .include "../../Makefile.cco"
4
5 PROG_CXX=       gcov
6 MFILE=          gcov${MANPAGEVER}.1
7 MAN=            ${MFILE}
8
9 SRCS=           gcov.c
10
11 DOC_Release=    ${GCCDIR}/gcc/doc/gcov.1
12 DOC_Snapshot=   gcov.1
13
14 ${MFILE}: ${DOC_${GCCRELEASE}}
15         cp ${.ALLSRC} ${.TARGET}
16
17 CLEANFILES+=    ${MFILE}
18
19 .if defined(IS_PRIMARY)
20 MLINKS+= ${MFILE} gcov.1
21 .endif
22
23 # hack to force c++ compiler to compile *.c files to create program
24 .for cfile in ${SRCS}
25 ${cfile:.c=.o}: ${cfile}
26         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
27 .endfor
28
29 .include <bsd.prog.mk>