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-common 10INTERNALLIB= 11 12GUTS_COMMONO= ${C_COMMON_OBJS:T} main.o 13OBJS= ${GUTS_COMMONO} 14SRCS= ${C_COMMON_SRCS} 15 16# hack to force c++ compiler to compile *.c files to create library 17.for cfile in ${GUTS_COMMONO} 18${cfile}: ${cfile:.o=.c} 19 ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} 20.endfor 21 22.include <bsd.lib.mk> 23