# $NetBSD: Makefile,v 1.8.6.1 2023/06/03 14:24:25 martin Exp $ HOSTPROG_CXX= 1 LIBISPRIVATE= yes .include LIB= cpp SRCS= ${G_libcpp_a_OBJS:.o=.c} CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \ -I${GCCARCH} -I${BACKENDOBJ} -I. \ ${G_INCLUDES:M-I*:N-I.*} \ -DPREFIX=\"/usr\" .include COPTS+= -Wno-stack-protector # Force using C++ for this HOST_CC:= ${HOST_CXX} CC:= ${CXX} CFLAGS:= ${CXXFLAGS} ${OBJS}: ${G_LIBCPP_DEPS} .PATH: ${DIST}/libcpp # ${DIST}/gcc localedir.h: echo '#define LOCALEDIR "/usr/share/locale"' > ${.TARGET} CLEANFILES+= localedir.h init.d init.o: localedir.h