1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.7 2014/03/05 21:37:02 tron Exp $ 218a5822eSThomas Veerman 318a5822eSThomas VeermanLIBISPRIVATE= yes 418a5822eSThomas Veerman 518a5822eSThomas VeermanLIB= cpp 618a5822eSThomas Veerman 718a5822eSThomas VeermanSRCS= ${G_libcpp_a_OBJS:.o=.c} 818a5822eSThomas Veerman 984d9c625SLionel SambucCPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \ 1018a5822eSThomas Veerman -I${GCCARCH} -I${BACKENDOBJ} -I. \ 1118a5822eSThomas Veerman ${G_INCLUDES:M-I*:N-I.*} \ 1218a5822eSThomas Veerman -DPREFIX=\"/usr\" 1318a5822eSThomas Veerman 14*0a6a1f1dSLionel SambucHOSTPROG_CXX= 1 15*0a6a1f1dSLionel Sambuc 1618a5822eSThomas Veerman.include <bsd.lib.mk> 17*0a6a1f1dSLionel Sambuc 1818a5822eSThomas VeermanCOPTS+= -Wno-stack-protector 1918a5822eSThomas Veerman 20*0a6a1f1dSLionel Sambuc# Force using C++ for this 21*0a6a1f1dSLionel SambucHOST_CC:= ${HOST_CXX} 22*0a6a1f1dSLionel SambucCC:= ${CXX} 23*0a6a1f1dSLionel SambucCFLAGS:= ${CXXFLAGS} 24*0a6a1f1dSLionel Sambuc 2518a5822eSThomas Veerman${OBJS}: ${G_LIBCPP_DEPS} 2618a5822eSThomas Veerman 2718a5822eSThomas Veerman.PATH: ${DIST}/libcpp 2818a5822eSThomas Veerman# ${DIST}/gcc 2918a5822eSThomas Veerman 3018a5822eSThomas Veermanlocaledir.h: 3118a5822eSThomas Veerman echo '#define LOCALEDIR "/usr/share/locale"' > ${.TARGET} 3284d9c625SLionel SambucCLEANFILES+= localedir.h 3318a5822eSThomas Veerman 3418a5822eSThomas Veermaninit.d init.o: localedir.h 35