1GCC_NO_PATH= yes 2GCC_NO_LIBS= yes 3LOCAL_CONFIG= yes 4.include "../Makefile.inc" 5.PATH: ${GCCDIR}/libcpp 6 7LIB= cpp 8INTERNALLIB= YES 9 10CFLAGS+= -Duchar="unsigned char" 11CXXFLAGS+= ${NOEXCEPTION_FLAGS} 12 13CXX_BUILD= charset.c \ 14 directives-only.c \ 15 directives.c \ 16 errors.c \ 17 expr.c \ 18 files.c \ 19 identifiers.c \ 20 init.c \ 21 lex.c \ 22 line-map.c \ 23 macro.c \ 24 mkdeps.c \ 25 pch.c \ 26 symtab.c \ 27 traditional.c 28 29OBJS= ${CXX_BUILD:.c=.o} 30 31# hack to force c++ compiler to compile *.c files to create library 32.for cfile in ${CXX_BUILD} 33${cfile:.c=.o}: ${cfile} localedir.h 34 ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} 35.endfor 36 37localedir.h: 38 touch $@ 39 40CLEANFILES= localedir.h 41 42.include <bsd.lib.mk> 43