gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc44 / cc / Makefile
1 .include "../Makefile.inc"
2 .include "../Makefile.langs"
3 .include "../../Makefile.cco"
4
5 PROG=   cc
6 LINKS=  ${BINDIR}/cc ${BINDIR}/gcc
7 MFILE=  gcc${MANPAGEVER}.1
8 MAN=    ${MFILE}
9
10 SRCS=   ${GCC_SRCS} gccspec.c intl.c prefix.c version.c
11 SRCS+=  ${EXTRA_GCC_SRCS}
12
13 CFLAGS+= -DGCC_DRIVER
14
15 ${MFILE}: ${GCCDIR}/gcc/doc/gcc.1
16         cp ${.ALLSRC} ${.TARGET}
17
18 CLEANFILES+=    ${MFILE}
19
20 MLINKS+= ${MFILE} cc${MANPAGEVER}.1
21 MLINKS+= ${MFILE} CC${MANPAGEVER}.1
22 MLINKS+= ${MFILE} c++${MANPAGEVER}.1
23 MLINKS+= ${MFILE} g++${MANPAGEVER}.1
24         
25 .if defined(IS_PRIMARY)
26 MLINKS+= ${MFILE} cc.1
27 MLINKS+= ${MFILE} CC.1
28 MLINKS+= ${MFILE} gcc.1
29 MLINKS+= ${MFILE} c++.1
30 MLINKS+= ${MFILE} g++.1
31 .endif
32
33 .include <bsd.prog.mk>