1# Despite the .c extension, these files and headers must be built by c++
2
3GCC_NO_LIBS=	yes
4TOP_PREFIX=	../../
5
6.include "../../../Makefile.inc"
7.include "../../../Makefile.langs"
8
9LIB=		guts-target
10INTERNALLIB=
11
12GUTS_TARGETO=	${C_TARGET_OBJS:T}
13
14OBJS=		${GUTS_TARGETO}
15
16# hack to force c++ compiler to compile *.c files to create library
17.for cfile in ${GUTS_TARGETO}
18${cfile}: ${cfile:.o=.c}
19	${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
20.endfor
21
22.include <bsd.lib.mk>
23