| @@ -1,36 +1,37 @@ | | | @@ -1,36 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.4 2014/05/31 22:55:17 mrg Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2016/10/06 02:58:32 christos Exp $ |
2 | | | 2 | |
3 | LIBISPRIVATE= yes | | 3 | LIBISPRIVATE= yes |
4 | | | 4 | |
5 | # For ../Makefile.inc and bsd.own.mk | | 5 | # For ../Makefile.inc and bsd.own.mk |
6 | .include <bsd.init.mk> | | 6 | .include <bsd.init.mk> |
7 | | | 7 | |
8 | LIB= common-target | | 8 | LIB= common-target |
9 | | | 9 | |
10 | SRCS= prefix.c params.c opts.c opts-common.c options.c vec.c \ | | 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 \ | | 11 | hooks.c common-targhooks.c hash-table.c file-find.c \ |
12 | ${G_common_out_file:T} | | 12 | ${G_common_out_file:T} |
13 | | | 13 | |
14 | CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ | | 14 | CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ |
15 | ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \ | | 15 | ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \ |
16 | -DPREFIX=\"/usr\" \ | | 16 | -DPREFIX=\"/usr\" \ |
17 | -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ | | 17 | -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ |
18 | -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \ | | 18 | -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \ |
19 | -DCONFIGURE_SPECS="\"\"" \ | | 19 | -DCONFIGURE_SPECS="\"\"" \ |
20 | -I${BACKENDOBJ} | | 20 | -I${BACKENDOBJ} |
21 | | | 21 | |
22 | COPTS.prefix.c= -Wno-stack-protector | | 22 | COPTS.prefix.c+= -Wno-stack-protector |
23 | COPTS.opts-common.c= -Wno-stack-protector | | 23 | COPTS.opts-common.c+= -Wno-stack-protector |
| | | 24 | COPTS.rs6000-common.c+= -Wno-stack-protector |
24 | | | 25 | |
25 | GENPROG_ERROR_DEPENDS=errors.lo | | 26 | GENPROG_ERROR_DEPENDS=errors.lo |
26 | | | 27 | |
27 | .include "../Makefile.options" | | 28 | .include "../Makefile.options" |
28 | .include "../../Makefile.hooks" | | 29 | .include "../../Makefile.hooks" |
29 | | | 30 | |
30 | ${SRCS}: ${GCCARCH}/defs.mk | | 31 | ${SRCS}: ${GCCARCH}/defs.mk |
31 | | | 32 | |
32 | ${G_common_out_file:T:R}.o: common/common-target-hooks-def.h | | 33 | ${G_common_out_file:T:R}.o: common/common-target-hooks-def.h |
33 | | | 34 | |
34 | DPSRCS+= options.h | | 35 | DPSRCS+= options.h |
35 | | | 36 | |
36 | HOST_CPPFLAGS+= -I${BACKENDOBJ} -I${GCCARCH} -I. -I${DIST}/include -I${DIST}/gcc | | 37 | HOST_CPPFLAGS+= -I${BACKENDOBJ} -I${GCCARCH} -I. -I${DIST}/include -I${DIST}/gcc |