# $NetBSD: Makefile,v 1.11.2.1 2023/05/28 09:47:27 martin Exp $ HOSTPROG_CXX= 1 LIBISPRIVATE= yes # For ../Makefile.inc and bsd.own.mk .include LIB= common .include "${.CURDIR}/defs.mk" SRCS= ${G_OBJS-libcommon:S/memory-block.o/memory-block.cc/:S/diagnostic-format-json.o/diagnostic-format-json.cc/:S/sort.o/sort.cc/:S/json.o/json.cc/:.o=.c} # XXX make sure this doesn't have more than it needs CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \ -DPREFIX=\"/usr\" \ -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \ -DCONFIGURE_SPECS="\"\"" MKPIC:= no MKPICLIB:= no COPTS.diagnostic.c= -Wno-stack-protector COPTS.intl.c= -Wno-stack-protector version.c: ${GCCARCH}/defs.mk ${TOP}/tools/gcc/gcc-version.mk ${SRCS}: ${GCCARCH}/defs.mk .include # Force using C++ for this HOST_CC:= ${HOST_CXX} HOST_CFLAGS:= ${HOST_CXXFLAGS} CC:= ${CXX} CFLAGS:= ${CXXFLAGS} .PATH: ${DIST}/gcc