1 # Despite the .c extension, these files and headers must be built by c++
7 .include "../../../Makefile.inc"
8 .include "../../../Makefile.langs"
13 # note C_TARGET_OBJS == CXX_TARGET_OBJS
14 .for object in ${CXX_AND_OBJCXX_OBJS}
15 . if ! ${C_COMMON_OBJS:M${object}}
16 . if ! ${C_TARGET_OBJS:M${object}}
17 GUTS_CXXO+= ${object:T}
24 # hack to force c++ compiler to compile *.c files to create library
25 .for cfile in ${GUTS_CXXO}
26 ${cfile}: ${cfile:.o=.c}
27 ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}