| @@ -1,176 +1,173 @@ | | | @@ -1,176 +1,173 @@ |
1 | # $NetBSD: tools.NetBSD.mk,v 1.64 2019/09/06 03:52:55 ryoon Exp $ | | 1 | # $NetBSD: tools.NetBSD.mk,v 1.65 2019/11/21 21:11:22 tnn Exp $ |
2 | # | | 2 | # |
3 | # System-supplied tools for the NetBSD operating system. | | 3 | # System-supplied tools for the NetBSD operating system. |
4 | | | 4 | |
5 | TOOLS_PLATFORM.[?= [ # shell builtin | | 5 | TOOLS_PLATFORM.[?= [ # shell builtin |
6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | | 6 | TOOLS_PLATFORM.awk?= /usr/bin/awk |
7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | | 7 | TOOLS_PLATFORM.basename?= /usr/bin/basename |
8 | .if empty(MACHINE_PLATFORM:MNetBSD-[0-8].*-*) | | | |
9 | TOOLS_PLATFORM.bsdtar?= /bin/tar | | | |
10 | .endif | | | |
11 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | | 8 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc |
12 | .if exists(/usr/bin/bzcat) | | 9 | .if exists(/usr/bin/bzcat) |
13 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | | 10 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat |
14 | .endif | | 11 | .endif |
15 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | | 12 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 |
16 | TOOLS_PLATFORM.cat?= /bin/cat | | 13 | TOOLS_PLATFORM.cat?= /bin/cat |
17 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | | 14 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp |
18 | TOOLS_PLATFORM.chmod?= /bin/chmod | | 15 | TOOLS_PLATFORM.chmod?= /bin/chmod |
19 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | | 16 | TOOLS_PLATFORM.chown?= /usr/sbin/chown |
20 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | | 17 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp |
21 | TOOLS_PLATFORM.cp?= /bin/cp | | 18 | TOOLS_PLATFORM.cp?= /bin/cp |
22 | TOOLS_PLATFORM.csh?= /bin/csh | | 19 | TOOLS_PLATFORM.csh?= /bin/csh |
23 | .if exists(/usr/bin/ctfconvert) | | 20 | .if exists(/usr/bin/ctfconvert) |
24 | TOOLS_PLATFORM.ctfconvert?= /usr/bin/ctfconvert | | 21 | TOOLS_PLATFORM.ctfconvert?= /usr/bin/ctfconvert |
25 | .endif | | 22 | .endif |
26 | .if exists(/usr/bin/ctfmerge) | | 23 | .if exists(/usr/bin/ctfmerge) |
27 | TOOLS_PLATFORM.ctfmerge?= /usr/bin/ctfmerge | | 24 | TOOLS_PLATFORM.ctfmerge?= /usr/bin/ctfmerge |
28 | .endif | | 25 | .endif |
29 | TOOLS_PLATFORM.cut?= /usr/bin/cut | | 26 | TOOLS_PLATFORM.cut?= /usr/bin/cut |
30 | TOOLS_PLATFORM.date?= /bin/date | | 27 | TOOLS_PLATFORM.date?= /bin/date |
31 | TOOLS_PLATFORM.diff?= /usr/bin/diff | | 28 | TOOLS_PLATFORM.diff?= /usr/bin/diff |
32 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | | 29 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 |
33 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | | 30 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname |
34 | TOOLS_PLATFORM.echo?= echo # shell builtin | | 31 | TOOLS_PLATFORM.echo?= echo # shell builtin |
35 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | | 32 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep |
36 | TOOLS_PLATFORM.env?= /usr/bin/env | | 33 | TOOLS_PLATFORM.env?= /usr/bin/env |
37 | TOOLS_PLATFORM.expr?= /bin/expr | | 34 | TOOLS_PLATFORM.expr?= /bin/expr |
38 | TOOLS_PLATFORM.false?= false # shell builtin | | 35 | TOOLS_PLATFORM.false?= false # shell builtin |
39 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | | 36 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep |
40 | TOOLS_PLATFORM.file?= /usr/bin/file | | 37 | TOOLS_PLATFORM.file?= /usr/bin/file |
41 | TOOLS_PLATFORM.find?= /usr/bin/find | | 38 | TOOLS_PLATFORM.find?= /usr/bin/find |
42 | TOOLS_PLATFORM.flex?= /usr/bin/lex | | 39 | TOOLS_PLATFORM.flex?= /usr/bin/lex |
43 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp | | 40 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp |
44 | .if exists(/usr/bin/gettext) | | 41 | .if exists(/usr/bin/gettext) |
45 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | | 42 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext |
46 | .endif | | 43 | .endif |
47 | TOOLS_PLATFORM.gegrep?= /usr/bin/egrep | | 44 | TOOLS_PLATFORM.gegrep?= /usr/bin/egrep |
48 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep | | 45 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep |
49 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | | 46 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep |
50 | TOOLS_PLATFORM.grep?= /usr/bin/grep | | 47 | TOOLS_PLATFORM.grep?= /usr/bin/grep |
51 | TOOLS_PLATFORM.groff?= /usr/bin/groff | | 48 | TOOLS_PLATFORM.groff?= /usr/bin/groff |
52 | TOOLS_PLATFORM.gsoelim?= ${TOOLS_PLATFORM.soelim} # GNUish | | 49 | TOOLS_PLATFORM.gsoelim?= ${TOOLS_PLATFORM.soelim} # GNUish |
53 | TOOLS_PLATFORM.gstrip?= /usr/bin/strip | | 50 | TOOLS_PLATFORM.gstrip?= /usr/bin/strip |
54 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | | 51 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f |
55 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | | 52 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat |
56 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | | 53 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} |
57 | TOOLS_PLATFORM.head?= /usr/bin/head | | 54 | TOOLS_PLATFORM.head?= /usr/bin/head |
58 | TOOLS_PLATFORM.hostname?= /bin/hostname | | 55 | TOOLS_PLATFORM.hostname?= /bin/hostname |
59 | TOOLS_PLATFORM.id?= /usr/bin/id | | 56 | TOOLS_PLATFORM.id?= /usr/bin/id |
60 | TOOLS_PLATFORM.ident?= /usr/bin/ident | | 57 | TOOLS_PLATFORM.ident?= /usr/bin/ident |
61 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 58 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
62 | TOOLS_PLATFORM.install?= /usr/bin/install | | 59 | TOOLS_PLATFORM.install?= /usr/bin/install |
63 | .else | | 60 | .else |
64 | TOOLS_PLATFORM.install?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | | 61 | TOOLS_PLATFORM.install?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install |
65 | .endif | | 62 | .endif |
66 | .if exists(/usr/bin/install-info) | | 63 | .if exists(/usr/bin/install-info) |
67 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | | 64 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info |
68 | .endif | | 65 | .endif |
69 | .if exists(/sbin/ldconfig) && ${OBJECT_FMT} == "a.out" | | 66 | .if exists(/sbin/ldconfig) && ${OBJECT_FMT} == "a.out" |
70 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | | 67 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig |
71 | .endif | | 68 | .endif |
72 | TOOLS_PLATFORM.ksh?= /bin/ksh | | 69 | TOOLS_PLATFORM.ksh?= /bin/ksh |
73 | TOOLS_PLATFORM.lex?= /usr/bin/lex | | 70 | TOOLS_PLATFORM.lex?= /usr/bin/lex |
74 | TOOLS_PLATFORM.ln?= /bin/ln | | 71 | TOOLS_PLATFORM.ln?= /bin/ln |
75 | TOOLS_PLATFORM.ls?= /bin/ls | | 72 | TOOLS_PLATFORM.ls?= /bin/ls |
76 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | | 73 | TOOLS_PLATFORM.m4?= /usr/bin/m4 |
77 | TOOLS_PLATFORM.mail?= /usr/bin/mail | | 74 | TOOLS_PLATFORM.mail?= /usr/bin/mail |
78 | .if exists(/usr/bin/makeinfo) | | 75 | .if exists(/usr/bin/makeinfo) |
79 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | | 76 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo |
80 | .endif | | 77 | .endif |
81 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | | 78 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p |
82 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | | 79 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp |
83 | .if exists(/usr/bin/msgconv) | | 80 | .if exists(/usr/bin/msgconv) |
84 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv | | 81 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv |
85 | .endif | | 82 | .endif |
86 | .if exists(/usr/bin/msgfmt) | | 83 | .if exists(/usr/bin/msgfmt) |
87 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | | 84 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt |
88 | .endif | | 85 | .endif |
89 | .if exists(/usr/bin/msgmerge) | | 86 | .if exists(/usr/bin/msgmerge) |
90 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge | | 87 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge |
91 | .endif | | 88 | .endif |
92 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | | 89 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree |
93 | TOOLS_PLATFORM.mv?= /bin/mv | | 90 | TOOLS_PLATFORM.mv?= /bin/mv |
94 | TOOLS_PLATFORM.nice?= /usr/bin/nice | | 91 | TOOLS_PLATFORM.nice?= /usr/bin/nice |
95 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | | 92 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff |
96 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | | 93 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl |
97 | TOOLS_PLATFORM.patch?= /usr/bin/patch | | 94 | TOOLS_PLATFORM.patch?= /usr/bin/patch |
98 | TOOLS_PLATFORM.pax?= /bin/pax | | 95 | TOOLS_PLATFORM.pax?= /bin/pax |
99 | .if exists(/usr/sbin/paxctl) | | 96 | .if exists(/usr/sbin/paxctl) |
100 | TOOLS_PLATFORM.paxctl?= /usr/sbin/paxctl | | 97 | TOOLS_PLATFORM.paxctl?= /usr/sbin/paxctl |
101 | .endif | | 98 | .endif |
102 | TOOLS_PLATFORM.printf?= /usr/bin/printf | | 99 | TOOLS_PLATFORM.printf?= /usr/bin/printf |
103 | TOOLS_PLATFORM.pwd?= /bin/pwd | | 100 | TOOLS_PLATFORM.pwd?= /bin/pwd |
104 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 101 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
105 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf | | 102 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf |
106 | .else | | 103 | .else |
107 | TOOLS_PLATFORM.readelf?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf | | 104 | TOOLS_PLATFORM.readelf?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf |
108 | .endif | | 105 | .endif |
109 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | | 106 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink |
110 | TOOLS_PLATFORM.rm?= /bin/rm | | 107 | TOOLS_PLATFORM.rm?= /bin/rm |
111 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | | 108 | TOOLS_PLATFORM.rmdir?= /bin/rmdir |
112 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | | 109 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff |
113 | TOOLS_PLATFORM.sed?= /usr/bin/sed | | 110 | TOOLS_PLATFORM.sed?= /usr/bin/sed |
114 | TOOLS_PLATFORM.sh?= /bin/sh | | 111 | TOOLS_PLATFORM.sh?= /bin/sh |
115 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock | | 112 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock |
116 | TOOLS_PLATFORM.sleep?= /bin/sleep | | 113 | TOOLS_PLATFORM.sleep?= /bin/sleep |
117 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | | 114 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim |
118 | TOOLS_PLATFORM.sort?= /usr/bin/sort | | 115 | TOOLS_PLATFORM.sort?= /usr/bin/sort |
119 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 116 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
120 | TOOLS_PLATFORM.strip?= /usr/bin/strip | | 117 | TOOLS_PLATFORM.strip?= /usr/bin/strip |
121 | .else | | 118 | .else |
122 | TOOLS_PLATFORM.strip?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | | 119 | TOOLS_PLATFORM.strip?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip |
123 | .endif | | 120 | .endif |
124 | | | 121 | |
125 | TOOLS_PLATFORM.tail?= /usr/bin/tail | | 122 | TOOLS_PLATFORM.tail?= /usr/bin/tail |
126 | .if exists(/bin/tar) | | 123 | .if exists(/bin/tar) |
127 | TOOLS_PLATFORM.tar?= /bin/tar | | 124 | TOOLS_PLATFORM.tar?= /bin/tar |
128 | .elif exists(/usr/bin/tar) | | 125 | .elif exists(/usr/bin/tar) |
129 | TOOLS_PLATFORM.tar?= /usr/bin/tar | | 126 | TOOLS_PLATFORM.tar?= /usr/bin/tar |
130 | .endif | | 127 | .endif |
131 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | | 128 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl |
132 | TOOLS_PLATFORM.tee?= /usr/bin/tee | | 129 | TOOLS_PLATFORM.tee?= /usr/bin/tee |
133 | TOOLS_PLATFORM.test?= test # shell builtin | | 130 | TOOLS_PLATFORM.test?= test # shell builtin |
134 | TOOLS_PLATFORM.touch?= /usr/bin/touch | | 131 | TOOLS_PLATFORM.touch?= /usr/bin/touch |
135 | TOOLS_PLATFORM.tr?= /usr/bin/tr | | 132 | TOOLS_PLATFORM.tr?= /usr/bin/tr |
136 | TOOLS_PLATFORM.true?= true # shell builtin | | 133 | TOOLS_PLATFORM.true?= true # shell builtin |
137 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | | 134 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort |
138 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | | 135 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq |
139 | .if exists(/usr/bin/unzip) | | 136 | .if exists(/usr/bin/unzip) |
140 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | | 137 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip |
141 | .endif | | 138 | .endif |
142 | TOOLS_PLATFORM.wc?= /usr/bin/wc | | 139 | TOOLS_PLATFORM.wc?= /usr/bin/wc |
143 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | | 140 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs |
144 | .if exists(/usr/bin/xgettext) | | 141 | .if exists(/usr/bin/xgettext) |
145 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext | | 142 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext |
146 | .endif | | 143 | .endif |
147 | .if exists(/usr/bin/xz) | | 144 | .if exists(/usr/bin/xz) |
148 | TOOLS_PLATFORM.xz?= /usr/bin/xz | | 145 | TOOLS_PLATFORM.xz?= /usr/bin/xz |
149 | .endif | | 146 | .endif |
150 | .if exists(/usr/bin/xzcat) | | 147 | .if exists(/usr/bin/xzcat) |
151 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | | 148 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat |
152 | .endif | | 149 | .endif |
153 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | | 150 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc |
154 | | | 151 | |
155 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 152 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
156 | . for _t_ in ar as ld nm objcopy objdump ranlib readelf strip | | 153 | . for _t_ in ar as ld nm objcopy objdump ranlib readelf strip |
157 | TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= \ | | 154 | TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= \ |
158 | ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-${_t_} | | 155 | ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-${_t_} |
159 | TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} | | 156 | TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} |
160 | . endfor | | 157 | . endfor |
161 | | | 158 | |
162 | TOOLS_PATH.ar?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | | 159 | TOOLS_PATH.ar?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar |
163 | TOOLS_CREATE+= ar | | 160 | TOOLS_CREATE+= ar |
164 | TOOLS_PATH.ranlib?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 161 | TOOLS_PATH.ranlib?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
165 | TOOLS_CREATE+= ranlib | | 162 | TOOLS_CREATE+= ranlib |
166 | | | 163 | |
167 | NATIVE_CC:= /usr/bin/cc -B /usr/libexec -B /usr/bin | | 164 | NATIVE_CC:= /usr/bin/cc -B /usr/libexec -B /usr/bin |
168 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 165 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
169 | | | 166 | |
170 | NATIVE_CXX:= /usr/bin/c++ -B /usr/libexec -B /usr/bin | | 167 | NATIVE_CXX:= /usr/bin/c++ -B /usr/libexec -B /usr/bin |
171 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g++ | | 168 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g++ |
172 | | | 169 | |
173 | NATIVE_LD:= /usr/bin/ld | | 170 | NATIVE_LD:= /usr/bin/ld |
174 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | | 171 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld |
175 | | | 172 | |
176 | .endif | | 173 | .endif |