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-c
10INTERNALLIB=
11
12.for object in ${C_AND_OBJC_OBJS}
13. if ! ${C_COMMON_OBJS:M${object}}
14.  if ! ${C_TARGET_OBJS:M${object}}
15GUTS_CO+=	${object:T}
16.  endif
17. endif
18.endfor
19
20OBJS=		${GUTS_CO}
21
22# hack to force c++ compiler to compile *.c files to create library
23.for cfile in ${GUTS_CO}
24${cfile}: ${cfile:.o=.c}
25	${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
26.endfor
27
28.include <bsd.lib.mk>
29