1# Despite the source files ending in ".c", the c++ compiler needs to build 2# everything. We have to roll our own targets to properly support this. 3 4GCC_NO_PATH= yes 5LOCAL_CONFIG= yes 6.include "../Makefile.inc" 7.PATH: ${GCCDIR}/libcpp 8 9LIB= cpp 10 11CFLAGS+= -I${.CURDIR} 12CFLAGS+= -Duchar="unsigned char" 13CXXFLAGS+= ${NOEXCEPTION_FLAGS} 14GOOD_CONFIG= ${.CURDIR}/../../support-libs/libcpp/config.h 15 16SRCS= charset.c \ 17 directives-only.c \ 18 directives.c \ 19 errors.c \ 20 expr.c \ 21 files.c \ 22 identifiers.c \ 23 init.c \ 24 lex.c \ 25 line-map.c \ 26 macro.c \ 27 mkdeps.c \ 28 pch.c \ 29 symtab.c \ 30 traditional.c 31 32localedir.h: 33 touch $@ 34 35config.h: ${GOOD_CONFIG} 36 cp ${.ALLSRC} . 37 38beforedepend: localedir.h config.h 39afterdepend: libcpp.na 40 41CLEANFILES= localedir.h config.h 42 43.include "../../Makefile.intcxx_lib" 44