2 .include "../Makefile.langs"
8 # The cnfs.gperf file has a bug in the generator that is masked when built
9 # with std=gnu89. Since gcc is built with this standard by default, the
10 # gcc devs have never bothered to fix it.
14 # The compiler itself, modified from gcc/cp/Make-lang.in
15 # Currently CXX_TARGET_OBJS is the same as C_TARGTET_OBJS, but to ensure this
16 # code is future proof, rebuild the object files instead of using the object
18 COMMOBJS= ${C_COMMON_OBJS:S/^/..\/cc1\//:.c=.o} \
22 CXX_C_SRC= attribs.c ${CXX_TARGET_OBJS}
24 # Language-specific object files for C++ and Objective C++.
25 CXX_AND_OBJCXX_OBJS= \
55 FULLSRC= ${CXX_C_SRC} ${CXX_AND_OBJCXX_OBJS} cp-lang.c
57 OBJS= ${COMMOBJS} cc1plus-checksum.o
59 BACKEND= ${LIBBACKEND} ${LIBCOMMONTARG} ${LIBCOMMON} ${LIBCPP} ${LIBDECNUMBER}
60 LDADD= ${BACKEND} ${LIBIBERTY} ${BACKENDLIBS}
61 DPADD= ${BACKEND} ${LIBIBERTY} ${BACKENDLIBS}
63 CFLAGS+= -DIN_GCC_FRONTEND
66 echo "${LD} ${LDFLAGS}" > ${.TARGET}
68 cc1plus-checksum.o: ${COMMOBJS} ${FULLSRC:.c=.o} checksum-options
69 ${TOOLDIR}/genchecksum.nx ${COMMOBJS} ${FULLSRC:.c=.o} \
70 ${BACKEND} checksum-options > ${.TARGET:.o=.c}
71 ${CC} ${CFLAGS} -c ${.TARGET:.o=.c}
73 CLEANFILES+= cc1plus-checksum.* checksum-options
75 .include <bsd.prog.mk>