Merge branch 'vendor/TOP'
[dragonfly.git] / gnu / usr.bin / cc80 / drivers / cpp / Makefile
1 .include "../Makefile.inc"
2 .include "../../Makefile.langs"
3 .include "../../../Makefile.cco"
4
5 PROG_CXX=       cpp
6 MFILE=          cpp${MANPAGEVER}.1
7 MAN=            ${MFILE}
8
9 SRCS=           ${GCC_SRCS} cppspec.c ${EXTRA_GCC_SRCS}
10
11 CFLAGS+=        -DCONFIGURE_SPECS="\"\"" \
12                 -DACCEL_DIR_SUFFIX="\"\"" \
13                 -DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
14
15 DOC_Release=    cpp.1 #${GCCDIR}/gcc/doc/cpp.1
16 DOC_Snapshot=   cpp.1
17
18 ${MFILE}: ${DOC_${GCCRELEASE}}
19         cp ${.ALLSRC} ${.TARGET}
20
21 CLEANFILES+=    ${MFILE}
22
23 .if defined(IS_PRIMARY)
24 MLINKS+= ${MFILE} cpp.1
25 .endif
26
27 # hack to force c++ compiler to compile *.c files to create program
28 .for cfile in ${SRCS}
29 ${cfile:.c=.o}: ${cfile}
30         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
31 .endfor
32
33 .include <bsd.prog.mk>