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 16CFLAGS+= -DBOOTSTRAPPING 17 18SRCS= charset.c \ 19 directives-only.c \ 20 directives.c \ 21 errors.c \ 22 expr.c \ 23 files.c \ 24 identifiers.c \ 25 init.c \ 26 lex.c \ 27 line-map.c \ 28 macro.c \ 29 mkdeps.c \ 30 pch.c \ 31 symtab.c \ 32 traditional.c 33 34localedir.h: 35 touch $@ 36 37config.h: ${GOOD_CONFIG} 38 cp ${.ALLSRC} . 39 40beforedepend: localedir.h config.h 41afterdepend: libcpp.na 42 43CLEANFILES= localedir.h config.h 44 45.include "../../Makefile.intcxx_lib" 46