| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.902 2016/02/23 18:03:31 macallan Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.903 2016/02/27 18:56:33 joerg Exp $ |
2 | | | 2 | |
3 | # This needs to be before bsd.init.mk | | 3 | # This needs to be before bsd.init.mk |
4 | .if defined(BSD_MK_COMPAT_FILE) | | 4 | .if defined(BSD_MK_COMPAT_FILE) |
5 | .include <${BSD_MK_COMPAT_FILE}> | | 5 | .include <${BSD_MK_COMPAT_FILE}> |
6 | .endif | | 6 | .endif |
7 | | | 7 | |
8 | .if !defined(_BSD_OWN_MK_) | | 8 | .if !defined(_BSD_OWN_MK_) |
9 | _BSD_OWN_MK_=1 | | 9 | _BSD_OWN_MK_=1 |
10 | | | 10 | |
11 | MAKECONF?= /etc/mk.conf | | 11 | MAKECONF?= /etc/mk.conf |
12 | .-include "${MAKECONF}" | | 12 | .-include "${MAKECONF}" |
13 | | | 13 | |
14 | # | | 14 | # |
| @@ -87,26 +87,28 @@ EXTERNAL_GCC_SUBDIR= /does/not/exist | | | @@ -87,26 +87,28 @@ EXTERNAL_GCC_SUBDIR= /does/not/exist |
87 | .endif | | 87 | .endif |
88 | .else | | 88 | .else |
89 | MKGCCCMDS?= no | | 89 | MKGCCCMDS?= no |
90 | .endif | | 90 | .endif |
91 | | | 91 | |
92 | .if !empty(MACHINE_ARCH:Mearm*) | | 92 | .if !empty(MACHINE_ARCH:Mearm*) |
93 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes | | 93 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes |
94 | .endif | | 94 | .endif |
95 | | | 95 | |
96 | _LIBC_COMPILER_RT.aarch64= yes | | 96 | _LIBC_COMPILER_RT.aarch64= yes |
97 | _LIBC_COMPILER_RT.i386= yes | | 97 | _LIBC_COMPILER_RT.i386= yes |
98 | _LIBC_COMPILER_RT.powerpc= yes | | 98 | _LIBC_COMPILER_RT.powerpc= yes |
99 | _LIBC_COMPILER_RT.powerpc64= yes | | 99 | _LIBC_COMPILER_RT.powerpc64= yes |
| | | 100 | _LIBC_COMPILER_RT.sparc= yes |
| | | 101 | _LIBC_COMPILER_RT.sparc64= yes |
100 | _LIBC_COMPILER_RT.x86_64= yes | | 102 | _LIBC_COMPILER_RT.x86_64= yes |
101 | | | 103 | |
102 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" | | 104 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" |
103 | HAVE_LIBGCC?= no | | 105 | HAVE_LIBGCC?= no |
104 | .else | | 106 | .else |
105 | HAVE_LIBGCC?= yes | | 107 | HAVE_LIBGCC?= yes |
106 | .endif | | 108 | .endif |
107 | | | 109 | |
108 | | | 110 | |
109 | # ia64 is not support | | 111 | # ia64 is not support |
110 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) | | 112 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) |
111 | HAVE_LIBGCC_EH?= no | | 113 | HAVE_LIBGCC_EH?= no |
112 | .else | | 114 | .else |
| @@ -1162,31 +1164,33 @@ MKOBJDIRS:= no | | | @@ -1162,31 +1164,33 @@ MKOBJDIRS:= no |
1162 | | | 1164 | |
1163 | .if ${MKSHARE} == "no" | | 1165 | .if ${MKSHARE} == "no" |
1164 | MKCATPAGES:= no | | 1166 | MKCATPAGES:= no |
1165 | MKDOC:= no | | 1167 | MKDOC:= no |
1166 | MKINFO:= no | | 1168 | MKINFO:= no |
1167 | MKHTML:= no | | 1169 | MKHTML:= no |
1168 | MKMAN:= no | | 1170 | MKMAN:= no |
1169 | MKNLS:= no | | 1171 | MKNLS:= no |
1170 | .endif | | 1172 | .endif |
1171 | | | 1173 | |
1172 | .if !empty(MACHINE_ARCH:Mearm*) | | 1174 | .if !empty(MACHINE_ARCH:Mearm*) |
1173 | _NEEDS_LIBCXX.${MACHINE_ARCH}= yes | | 1175 | _NEEDS_LIBCXX.${MACHINE_ARCH}= yes |
1174 | .endif | | 1176 | .endif |
| | | 1177 | _NEEDS_LIBCXX.aarch64= yes |
1175 | _NEEDS_LIBCXX.i386= yes | | 1178 | _NEEDS_LIBCXX.i386= yes |
1176 | _NEEDS_LIBCXX.powerpc= yes | | 1179 | _NEEDS_LIBCXX.powerpc= yes |
1177 | _NEEDS_LIBCXX.powerpc64= yes | | 1180 | _NEEDS_LIBCXX.powerpc64= yes |
| | | 1181 | _NEEDS_LIBCXX.sparc= yes |
| | | 1182 | _NEEDS_LIBCXX.sparc64= yes |
1178 | _NEEDS_LIBCXX.x86_64= yes | | 1183 | _NEEDS_LIBCXX.x86_64= yes |
1179 | _NEEDS_LIBCXX.aarch64= yes | | | |
1180 | | | 1184 | |
1181 | .if ${MKLLVM} == "yes" && ${_NEEDS_LIBCXX.${MACHINE_ARCH}:Uno} == "yes" | | 1185 | .if ${MKLLVM} == "yes" && ${_NEEDS_LIBCXX.${MACHINE_ARCH}:Uno} == "yes" |
1182 | MKLIBCXX:= yes | | 1186 | MKLIBCXX:= yes |
1183 | .endif | | 1187 | .endif |
1184 | | | 1188 | |
1185 | # | | 1189 | # |
1186 | # install(1) parameters. | | 1190 | # install(1) parameters. |
1187 | # | | 1191 | # |
1188 | COPY?= -c | | 1192 | COPY?= -c |
1189 | .if ${MKUPDATE} == "no" | | 1193 | .if ${MKUPDATE} == "no" |
1190 | PRESERVE?= | | 1194 | PRESERVE?= |
1191 | .else | | 1195 | .else |
1192 | PRESERVE?= -p | | 1196 | PRESERVE?= -p |