1 # $NetBSD: Makefile,v 1.3 2014/03/15 23:12:58 mrg Exp $ 2 3 LIBISPRIVATE= yes 4 5 # For ../Makefile.inc and bsd.own.mk 6 .include <bsd.init.mk> 7 8 LIB= common-target 9 10 SRCS= prefix.c params.c opts.c opts-common.c options.c vec.c \ 11 hooks.c common-targhooks.c hash-table.c file-find.c \ 12 ${G_common_out_file:T} 13 14 CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ 15 ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \ 16 -DPREFIX=\"/usr\" \ 17 -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ 18 -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \ 19 -DCONFIGURE_SPECS="\"\"" \ 20 -I${BACKENDOBJ} 21 22 COPTS.prefix.c= -Wno-stack-protector 23 COPTS.opts-common.c= -Wno-stack-protector 24 25 GENPROG_ERROR_DEPENDS=errors.lo 26 27 .include "../Makefile.options" 28 .include "../../Makefile.hooks" 29 30 ${G_common_out_file:T:R}.o: common/common-target-hooks-def.h 31 32 DPSRCS+= options.h 33 34 HOST_CPPFLAGS+= -I${BACKENDOBJ} -I${GCCARCH} -I. -I${DIST}/include -I${DIST}/gcc 35 HOST_CPPFLAGS+= -DGENERATOR_FILE 36 37 MKPIC:= no 38 MKPICLIB:= no 39 40 HOSTPROG_CXX= 1 41 42 .include <bsd.lib.mk> 43 44 # Force using C++ for this 45 HOST_CC:= ${HOST_CXX} 46 CC:= ${CXX} 47 CFLAGS:= ${CXXFLAGS} 48 49 .PATH: ${DIST}/gcc ${DIST}/gcc/common 50 .PATH: ${G_common_out_file:H} 51