| @@ -1,1072 +1,1073 @@ | | | @@ -1,1072 +1,1073 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.611 2009/12/13 09:01:46 mrg Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.612 2009/12/13 09:10:16 mrg 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 | # |
15 | # CPU model, derived from MACHINE_ARCH | | 15 | # CPU model, derived from MACHINE_ARCH |
16 | # | | 16 | # |
17 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} | | 17 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} |
18 | | | 18 | |
19 | # | | 19 | # |
20 | # Subdirectory used below ${RELEASEDIR} when building a release | | 20 | # Subdirectory used below ${RELEASEDIR} when building a release |
21 | # | | 21 | # |
22 | RELEASEMACHINEDIR?= ${MACHINE} | | 22 | RELEASEMACHINEDIR?= ${MACHINE} |
23 | | | 23 | |
24 | # | | 24 | # |
25 | # Subdirectory or path component used for the following paths: | | 25 | # Subdirectory or path component used for the following paths: |
26 | # distrib/${RELEASEMACHINE} | | 26 | # distrib/${RELEASEMACHINE} |
27 | # distrib/notes/${RELEASEMACHINE} | | 27 | # distrib/notes/${RELEASEMACHINE} |
28 | # etc/etc.${RELEASEMACHINE} | | 28 | # etc/etc.${RELEASEMACHINE} |
29 | # Used when building a release. | | 29 | # Used when building a release. |
30 | # | | 30 | # |
31 | RELEASEMACHINE?= ${MACHINE} | | 31 | RELEASEMACHINE?= ${MACHINE} |
32 | | | 32 | |
33 | # | | 33 | # |
34 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to | | 34 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to |
35 | # ensure that things defined by <bsd.own.mk> (default targets, | | 35 | # ensure that things defined by <bsd.own.mk> (default targets, |
36 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. | | 36 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. |
37 | # | | 37 | # |
38 | NEED_OWN_INSTALL_TARGET?= yes | | 38 | NEED_OWN_INSTALL_TARGET?= yes |
39 | | | 39 | |
40 | # | | 40 | # |
41 | # This lists the platforms which do not have working in-tree toolchains. | | 41 | # This lists the platforms which do not have working in-tree toolchains. |
42 | # For the in-tree gcc 3.3.2 toolchain, this list is empty. | | 42 | # For the in-tree gcc 3.3.2 toolchain, this list is empty. |
43 | # If some future port is not supported by the in-tree toolchain, this | | 43 | # If some future port is not supported by the in-tree toolchain, this |
44 | # should be set to "yes" for that port only. | | 44 | # should be set to "yes" for that port only. |
45 | # | | 45 | # |
46 | TOOLCHAIN_MISSING?= no | | 46 | TOOLCHAIN_MISSING?= no |
47 | | | 47 | |
48 | # default to GCC4 | | 48 | # default to GCC4 |
49 | .if !defined(HAVE_GCC) && !defined(HAVE_PCC) | | 49 | .if !defined(HAVE_GCC) && !defined(HAVE_PCC) |
50 | HAVE_GCC= 4 | | 50 | HAVE_GCC= 4 |
51 | .endif | | 51 | .endif |
52 | | | 52 | |
53 | # default to GDB6 | | 53 | # default to GDB6 |
54 | HAVE_GDB?= 6 | | 54 | HAVE_GDB?= 6 |
55 | | | 55 | |
56 | # default to binutils 2.19 | | 56 | # default to binutils 2.19 |
57 | HAVE_BINUTILS?= 219 | | 57 | HAVE_BINUTILS?= 219 |
58 | | | 58 | |
59 | CPPFLAG_ISYSTEM= -isystem | | 59 | CPPFLAG_ISYSTEM= -isystem |
60 | .if defined(HAVE_GCC) | | 60 | .if defined(HAVE_GCC) |
61 | .if ${HAVE_GCC} == 3 | | 61 | .if ${HAVE_GCC} == 3 |
62 | CPPFLAG_ISYSTEMXX= -isystem-cxx | | 62 | CPPFLAG_ISYSTEMXX= -isystem-cxx |
63 | .else # GCC 4 | | 63 | .else # GCC 4 |
64 | CPPFLAG_ISYSTEMXX= -cxx-isystem | | 64 | CPPFLAG_ISYSTEMXX= -cxx-isystem |
65 | .endif | | 65 | .endif |
66 | .endif | | 66 | .endif |
67 | | | 67 | |
68 | .if empty(.MAKEFLAGS:M-V*) | | 68 | .if empty(.MAKEFLAGS:M-V*) |
69 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) | | 69 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) |
70 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx | | 70 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx |
71 | .else | | 71 | .else |
72 | PRINTOBJDIR= ${MAKE} -V .OBJDIR | | 72 | PRINTOBJDIR= ${MAKE} -V .OBJDIR |
73 | .endif | | 73 | .endif |
74 | .else | | 74 | .else |
75 | PRINTOBJDIR= echo # prevent infinite recursion | | 75 | PRINTOBJDIR= echo # prevent infinite recursion |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
78 | # | | 78 | # |
79 | # Determine if running in the NetBSD source tree by checking for the | | 79 | # Determine if running in the NetBSD source tree by checking for the |
80 | # existence of build.sh and tools/ in the current or a parent directory, | | 80 | # existence of build.sh and tools/ in the current or a parent directory, |
81 | # and setting _SRC_TOP_ to the result. | | 81 | # and setting _SRC_TOP_ to the result. |
82 | # | | 82 | # |
83 | .if !defined(_SRC_TOP_) # { | | 83 | .if !defined(_SRC_TOP_) # { |
84 | _SRC_TOP_!= cd ${.CURDIR}; while :; do \ | | 84 | _SRC_TOP_!= cd ${.CURDIR}; while :; do \ |
85 | here=`pwd`; \ | | 85 | here=`pwd`; \ |
86 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ | | 86 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ |
87 | case $$here in /) echo ""; break;; esac; \ | | 87 | case $$here in /) echo ""; break;; esac; \ |
88 | cd ..; done | | 88 | cd ..; done |
89 | | | 89 | |
90 | .MAKEOVERRIDES+= _SRC_TOP_ | | 90 | .MAKEOVERRIDES+= _SRC_TOP_ |
91 | | | 91 | |
92 | .endif # } | | 92 | .endif # } |
93 | | | 93 | |
94 | # | | 94 | # |
95 | # If _SRC_TOP_ != "", we're within the NetBSD source tree, so set | | 95 | # If _SRC_TOP_ != "", we're within the NetBSD source tree, so set |
96 | # defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. | | 96 | # defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. |
97 | # | | 97 | # |
98 | .if (${_SRC_TOP_} != "") # { | | 98 | .if (${_SRC_TOP_} != "") # { |
99 | | | 99 | |
100 | NETBSDSRCDIR?= ${_SRC_TOP_} | | 100 | NETBSDSRCDIR?= ${_SRC_TOP_} |
101 | | | 101 | |
102 | .if !defined(_SRC_TOP_OBJ_) | | 102 | .if !defined(_SRC_TOP_OBJ_) |
103 | _SRC_TOP_OBJ_!= cd ${_SRC_TOP_} && ${PRINTOBJDIR} | | 103 | _SRC_TOP_OBJ_!= cd ${_SRC_TOP_} && ${PRINTOBJDIR} |
104 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ | | 104 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ |
105 | .endif | | 105 | .endif |
106 | | | 106 | |
107 | .endif # _SRC_TOP_ != "" # } | | 107 | .endif # _SRC_TOP_ != "" # } |
108 | | | 108 | |
109 | | | 109 | |
110 | .if (${_SRC_TOP_} != "") && \ | | 110 | .if (${_SRC_TOP_} != "") && \ |
111 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) | | 111 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) |
112 | USETOOLS?= yes | | 112 | USETOOLS?= yes |
113 | .endif | | 113 | .endif |
114 | USETOOLS?= no | | 114 | USETOOLS?= no |
115 | | | 115 | |
116 | | | 116 | |
117 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ | | 117 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ |
118 | ${MACHINE_ARCH} == "sh3" | | 118 | ${MACHINE_ARCH} == "sh3" |
119 | .BEGIN: | | 119 | .BEGIN: |
120 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" | | 120 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" |
121 | @false | | 121 | @false |
122 | .elif defined(REQUIRETOOLS) && \ | | 122 | .elif defined(REQUIRETOOLS) && \ |
123 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ | | 123 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ |
124 | ${USETOOLS} == "no" | | 124 | ${USETOOLS} == "no" |
125 | .BEGIN: | | 125 | .BEGIN: |
126 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" | | 126 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" |
127 | @false | | 127 | @false |
128 | .endif | | 128 | .endif |
129 | | | 129 | |
130 | # | | 130 | # |
131 | # Host platform information; may be overridden | | 131 | # Host platform information; may be overridden |
132 | # | | 132 | # |
133 | .if !defined(HOST_OSTYPE) | | 133 | .if !defined(HOST_OSTYPE) |
134 | _HOST_OSNAME!= uname -s | | 134 | _HOST_OSNAME!= uname -s |
135 | _HOST_OSREL!= uname -r | | 135 | _HOST_OSREL!= uname -r |
136 | # For _HOST_ARCH, if uname -p fails, or prints "unknown", or prints | | 136 | # For _HOST_ARCH, if uname -p fails, or prints "unknown", or prints |
137 | # something that does not look like an identifier, then use uname -m. | | 137 | # something that does not look like an identifier, then use uname -m. |
138 | _HOST_ARCH!= uname -p 2>/dev/null | | 138 | _HOST_ARCH!= uname -p 2>/dev/null |
139 | _HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//} | | 139 | _HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//} |
140 | .if empty(_HOST_ARCH) | | 140 | .if empty(_HOST_ARCH) |
141 | _HOST_ARCH!= uname -m | | 141 | _HOST_ARCH!= uname -m |
142 | .endif | | 142 | .endif |
143 | HOST_OSTYPE:= ${_HOST_OSNAME}-${_HOST_OSREL:C/\([^\)]*\)//g:[*]:C/ /_/g}-${_HOST_ARCH:C/\([^\)]*\)//g:[*]:C/ /_/g} | | 143 | HOST_OSTYPE:= ${_HOST_OSNAME}-${_HOST_OSREL:C/\([^\)]*\)//g:[*]:C/ /_/g}-${_HOST_ARCH:C/\([^\)]*\)//g:[*]:C/ /_/g} |
144 | .MAKEOVERRIDES+= HOST_OSTYPE | | 144 | .MAKEOVERRIDES+= HOST_OSTYPE |
145 | .endif # !defined(HOST_OSTYPE) | | 145 | .endif # !defined(HOST_OSTYPE) |
146 | | | 146 | |
147 | .if ${USETOOLS} == "yes" # { | | 147 | .if ${USETOOLS} == "yes" # { |
148 | | | 148 | |
149 | # | | 149 | # |
150 | # Provide a default for TOOLDIR. | | 150 | # Provide a default for TOOLDIR. |
151 | # | | 151 | # |
152 | .if !defined(TOOLDIR) | | 152 | .if !defined(TOOLDIR) |
153 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} | | 153 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} |
154 | .MAKEOVERRIDES+= TOOLDIR | | 154 | .MAKEOVERRIDES+= TOOLDIR |
155 | .endif | | 155 | .endif |
156 | | | 156 | |
157 | # | | 157 | # |
158 | # This is the prefix used for the NetBSD-sourced tools. | | 158 | # This is the prefix used for the NetBSD-sourced tools. |
159 | # | | 159 | # |
160 | _TOOL_PREFIX?= nb | | 160 | _TOOL_PREFIX?= nb |
161 | | | 161 | |
162 | # | | 162 | # |
163 | # If an external toolchain base is specified, use it. | | 163 | # If an external toolchain base is specified, use it. |
164 | # | | 164 | # |
165 | .if defined(EXTERNAL_TOOLCHAIN) # { | | 165 | .if defined(EXTERNAL_TOOLCHAIN) # { |
166 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar | | 166 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar |
167 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as | | 167 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as |
168 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld | | 168 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld |
169 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm | | 169 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm |
170 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 170 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
171 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 171 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump |
172 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 172 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
173 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size | | 173 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size |
174 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip | | 174 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip |
175 | | | 175 | |
176 | CC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 176 | CC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
177 | CPP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 177 | CPP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp |
178 | CXX= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 178 | CXX= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ |
179 | FC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77 | | 179 | FC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77 |
180 | OBJC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 180 | OBJC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
181 | .else # } { | | 181 | .else # } { |
182 | # Define default locations for common tools. | | 182 | # Define default locations for common tools. |
183 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { | | 183 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { |
184 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | | 184 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar |
185 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as | | 185 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as |
186 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | | 186 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld |
187 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm | | 187 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm |
188 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 188 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
189 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 189 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump |
190 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 190 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
191 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size | | 191 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size |
192 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | | 192 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip |
193 | .endif # } | | 193 | .endif # } |
194 | | | 194 | |
195 | .if defined(HAVE_GCC) && ${USETOOLS_GCC:Uyes} == "yes" # { | | 195 | .if defined(HAVE_GCC) && ${USETOOLS_GCC:Uyes} == "yes" # { |
196 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 196 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
197 | CPP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 197 | CPP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp |
198 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 198 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ |
199 | FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77 | | 199 | FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77 |
200 | OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 200 | OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
201 | .endif # } | | 201 | .endif # } |
202 | | | 202 | |
203 | .if defined(HAVE_PCC) && ${USETOOLS_PCC:Uyes} == "yes" | | 203 | .if defined(HAVE_PCC) && ${USETOOLS_PCC:Uyes} == "yes" |
204 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc | | 204 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc |
205 | CPP= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-cpp | | 205 | CPP= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-cpp |
206 | CXX= false | | 206 | CXX= false |
207 | FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-f77 | | 207 | FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-f77 |
208 | OBJC= false | | 208 | OBJC= false |
209 | .endif | | 209 | .endif |
210 | | | 210 | |
211 | .endif # EXTERNAL_TOOLCHAIN # } | | 211 | .endif # EXTERNAL_TOOLCHAIN # } |
212 | | | 212 | |
213 | HOST_MKDEP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep | | 213 | HOST_MKDEP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep |
214 | | | 214 | |
215 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym | | 215 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym |
216 | ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 216 | ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
217 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | | 217 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install |
218 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex | | 218 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex |
219 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint | | 219 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint |
220 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder | | 220 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder |
221 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep | | 221 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep |
222 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl | | 222 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl |
223 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q | | 223 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q |
224 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc | | 224 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc |
225 | | | 225 | |
226 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb | | 226 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb |
227 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb | | 227 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb |
228 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt | | 228 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt |
229 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile | | 229 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile |
230 | TOOL_ATF_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile | | 230 | TOOL_ATF_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile |
231 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk | | 231 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk |
232 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb | | 232 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb |
233 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat | | 233 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat |
234 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum | | 234 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum |
235 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et | | 235 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et |
236 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config | | 236 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config |
237 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen | | 237 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen |
238 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags | | 238 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags |
239 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db | | 239 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db |
240 | TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE} | | 240 | TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE} |
241 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn | | 241 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn |
242 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk | | 242 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk |
243 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen | | 243 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen |
244 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym | | 244 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym |
245 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat | | 245 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat |
246 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake | | 246 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake |
247 | TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep | | 247 | TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep |
248 | TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff | | 248 | TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff |
249 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump | | 249 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump |
250 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot | | 250 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot |
251 | TOOL_HP700MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp700-mkboot | | 251 | TOOL_HP700MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp700-mkboot |
252 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib | | 252 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib |
253 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot | | 253 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot |
254 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info | | 254 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info |
255 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join | | 255 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join |
256 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 | | 256 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 |
257 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff | | 257 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff |
258 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs | | 258 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs |
259 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo | | 259 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo |
260 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis | | 260 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis |
261 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii | | 261 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii |
262 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml | | 262 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml |
263 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint | | 263 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint |
264 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage | | 264 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage |
265 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc | | 265 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc |
266 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 266 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
267 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper | | 267 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper |
268 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb | | 268 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb |
269 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale | | 269 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale |
270 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file | | 270 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file |
271 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp | | 271 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp |
272 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc | | 272 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc |
273 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree | | 273 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree |
274 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax | | 274 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax |
275 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic | | 275 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic |
276 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create | | 276 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create |
277 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage | | 277 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage |
278 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb | | 278 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb |
279 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer | | 279 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer |
280 | TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff | | 280 | TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff |
281 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi | | 281 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi |
282 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 282 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
283 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps | | 283 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps |
284 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 284 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
285 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen | | 285 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen |
286 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed | | 286 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed |
287 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim | | 287 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim |
288 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc | | 288 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc |
289 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat | | 289 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat |
290 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile | | 290 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile |
291 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel | | 291 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel |
292 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl | | 292 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl |
293 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode | | 293 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode |
294 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f | | 294 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f |
295 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic | | 295 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic |
296 | | | 296 | |
297 | .else # USETOOLS != yes # } { | | 297 | .else # USETOOLS != yes # } { |
298 | | | 298 | |
299 | TOOL_AMIGAAOUT2BB= amiga-aout2bb | | 299 | TOOL_AMIGAAOUT2BB= amiga-aout2bb |
300 | TOOL_AMIGAELF2BB= amiga-elf2bb | | 300 | TOOL_AMIGAELF2BB= amiga-elf2bb |
301 | TOOL_AMIGATXLT= amiga-txlt | | 301 | TOOL_AMIGATXLT= amiga-txlt |
302 | TOOL_ASN1_COMPILE= asn1_compile | | 302 | TOOL_ASN1_COMPILE= asn1_compile |
303 | TOOL_ATF_COMPILE= atf-compile | | 303 | TOOL_ATF_COMPILE= atf-compile |
304 | TOOL_AWK= awk | | 304 | TOOL_AWK= awk |
305 | TOOL_CAP_MKDB= cap_mkdb | | 305 | TOOL_CAP_MKDB= cap_mkdb |
306 | TOOL_CAT= cat | | 306 | TOOL_CAT= cat |
307 | TOOL_CKSUM= cksum | | 307 | TOOL_CKSUM= cksum |
308 | TOOL_COMPILE_ET= compile_et | | 308 | TOOL_COMPILE_ET= compile_et |
309 | TOOL_CONFIG= config | | 309 | TOOL_CONFIG= config |
310 | TOOL_CRUNCHGEN= crunchgen | | 310 | TOOL_CRUNCHGEN= crunchgen |
311 | TOOL_CTAGS= ctags | | 311 | TOOL_CTAGS= ctags |
312 | TOOL_DB= db | | 312 | TOOL_DB= db |
313 | TOOL_DISKLABEL= disklabel | | 313 | TOOL_DISKLABEL= disklabel |
314 | TOOL_EQN= eqn | | 314 | TOOL_EQN= eqn |
315 | TOOL_FDISK= fdisk | | 315 | TOOL_FDISK= fdisk |
316 | TOOL_FGEN= fgen | | 316 | TOOL_FGEN= fgen |
317 | TOOL_GENASSYM= genassym | | 317 | TOOL_GENASSYM= genassym |
318 | TOOL_GENCAT= gencat | | 318 | TOOL_GENCAT= gencat |
319 | TOOL_GMAKE= gmake | | 319 | TOOL_GMAKE= gmake |
320 | TOOL_GREP= grep | | 320 | TOOL_GREP= grep |
321 | TOOL_GROFF= groff | | 321 | TOOL_GROFF= groff |
322 | TOOL_HEXDUMP= hexdump | | 322 | TOOL_HEXDUMP= hexdump |
323 | TOOL_HP300MKBOOT= hp300-mkboot | | 323 | TOOL_HP300MKBOOT= hp300-mkboot |
324 | TOOL_HP700MKBOOT= hp700-mkboot | | 324 | TOOL_HP700MKBOOT= hp700-mkboot |
325 | TOOL_INDXBIB= indxbib | | 325 | TOOL_INDXBIB= indxbib |
326 | TOOL_INSTALLBOOT= installboot | | 326 | TOOL_INSTALLBOOT= installboot |
327 | TOOL_INSTALL_INFO= install-info | | 327 | TOOL_INSTALL_INFO= install-info |
328 | TOOL_JOIN= join | | 328 | TOOL_JOIN= join |
329 | TOOL_M4= m4 | | 329 | TOOL_M4= m4 |
330 | TOOL_MACPPCFIXCOFF= macppc-fixcoff | | 330 | TOOL_MACPPCFIXCOFF= macppc-fixcoff |
331 | TOOL_MAKEFS= makefs | | 331 | TOOL_MAKEFS= makefs |
332 | TOOL_MAKEINFO= makeinfo | | 332 | TOOL_MAKEINFO= makeinfo |
333 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis | | 333 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis |
334 | TOOL_MDSETIMAGE= mdsetimage | | 334 | TOOL_MDSETIMAGE= mdsetimage |
335 | TOOL_MENUC= menuc | | 335 | TOOL_MENUC= menuc |
336 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff | | 336 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff |
337 | TOOL_MKCSMAPPER= mkcsmapper | | 337 | TOOL_MKCSMAPPER= mkcsmapper |
338 | TOOL_MKESDB= mkesdb | | 338 | TOOL_MKESDB= mkesdb |
339 | TOOL_MKLOCALE= mklocale | | 339 | TOOL_MKLOCALE= mklocale |
340 | TOOL_MKMAGIC= file | | 340 | TOOL_MKMAGIC= file |
341 | TOOL_MKTEMP= mktemp | | 341 | TOOL_MKTEMP= mktemp |
342 | TOOL_MSGC= msgc | | 342 | TOOL_MSGC= msgc |
343 | TOOL_MTREE= mtree | | 343 | TOOL_MTREE= mtree |
344 | TOOL_PAX= pax | | 344 | TOOL_PAX= pax |
345 | TOOL_PIC= pic | | 345 | TOOL_PIC= pic |
346 | TOOL_PKG_CREATE= pkg_create | | 346 | TOOL_PKG_CREATE= pkg_create |
347 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage | | 347 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage |
348 | TOOL_PWD_MKDB= pwd_mkdb | | 348 | TOOL_PWD_MKDB= pwd_mkdb |
349 | TOOL_REFER= refer | | 349 | TOOL_REFER= refer |
350 | TOOL_ROFF_ASCII= nroff | | 350 | TOOL_ROFF_ASCII= nroff |
351 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi | | 351 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi |
352 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 352 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
353 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps | | 353 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps |
354 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 354 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
355 | TOOL_RPCGEN= rpcgen | | 355 | TOOL_RPCGEN= rpcgen |
356 | TOOL_SED= sed | | 356 | TOOL_SED= sed |
357 | TOOL_SOELIM= soelim | | 357 | TOOL_SOELIM= soelim |
358 | TOOL_SPARKCRC= sparkcrc | | 358 | TOOL_SPARKCRC= sparkcrc |
359 | TOOL_STAT= stat | | 359 | TOOL_STAT= stat |
360 | TOOL_STRFILE= strfile | | 360 | TOOL_STRFILE= strfile |
361 | TOOL_SUNLABEL= sunlabel | | 361 | TOOL_SUNLABEL= sunlabel |
362 | TOOL_TBL= tbl | | 362 | TOOL_TBL= tbl |
363 | TOOL_UUDECODE= uudecode | | 363 | TOOL_UUDECODE= uudecode |
364 | TOOL_VGRIND= vgrind -f | | 364 | TOOL_VGRIND= vgrind -f |
365 | TOOL_ZIC= zic | | 365 | TOOL_ZIC= zic |
366 | | | 366 | |
367 | .endif # USETOOLS != yes # } | | 367 | .endif # USETOOLS != yes # } |
368 | | | 368 | |
369 | # | | 369 | # |
370 | # Targets to check if DESTDIR or RELEASEDIR is provided | | 370 | # Targets to check if DESTDIR or RELEASEDIR is provided |
371 | # | | 371 | # |
372 | .if !target(check_DESTDIR) | | 372 | .if !target(check_DESTDIR) |
373 | check_DESTDIR: .PHONY .NOTMAIN | | 373 | check_DESTDIR: .PHONY .NOTMAIN |
374 | .if !defined(DESTDIR) | | 374 | .if !defined(DESTDIR) |
375 | @echo "setenv DESTDIR before doing that!" | | 375 | @echo "setenv DESTDIR before doing that!" |
376 | @false | | 376 | @false |
377 | .else | | 377 | .else |
378 | @true | | 378 | @true |
379 | .endif | | 379 | .endif |
380 | .endif | | 380 | .endif |
381 | | | 381 | |
382 | .if !target(check_RELEASEDIR) | | 382 | .if !target(check_RELEASEDIR) |
383 | check_RELEASEDIR: .PHONY .NOTMAIN | | 383 | check_RELEASEDIR: .PHONY .NOTMAIN |
384 | .if !defined(RELEASEDIR) | | 384 | .if !defined(RELEASEDIR) |
385 | @echo "setenv RELEASEDIR before doing that!" | | 385 | @echo "setenv RELEASEDIR before doing that!" |
386 | @false | | 386 | @false |
387 | .else | | 387 | .else |
388 | @true | | 388 | @true |
389 | .endif | | 389 | .endif |
390 | .endif | | 390 | .endif |
391 | | | 391 | |
392 | | | 392 | |
393 | .if ${USETOOLS} == "yes" # { | | 393 | .if ${USETOOLS} == "yes" # { |
394 | # | | 394 | # |
395 | # Make sure DESTDIR is set, so that builds with these tools always | | 395 | # Make sure DESTDIR is set, so that builds with these tools always |
396 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is | | 396 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is |
397 | # <empty string>, meaning start from /, the root directory. | | 397 | # <empty string>, meaning start from /, the root directory. |
398 | # | | 398 | # |
399 | DESTDIR?= | | 399 | DESTDIR?= |
400 | .endif # } | | 400 | .endif # } |
401 | | | 401 | |
402 | # | | 402 | # |
403 | # Build a dynamically linked /bin and /sbin, with the necessary shared | | 403 | # Build a dynamically linked /bin and /sbin, with the necessary shared |
404 | # libraries moved from /usr/lib to /lib and the shared linker moved | | 404 | # libraries moved from /usr/lib to /lib and the shared linker moved |
405 | # from /usr/libexec to /lib | | 405 | # from /usr/libexec to /lib |
406 | # | | 406 | # |
407 | # Note that if the BINDIR is not /bin or /sbin, then we always use the | | 407 | # Note that if the BINDIR is not /bin or /sbin, then we always use the |
408 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin | | 408 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin |
409 | # and /sbin). See <bsd.shlib.mk>. | | 409 | # and /sbin). See <bsd.shlib.mk>. |
410 | # | | 410 | # |
411 | MKDYNAMICROOT?= yes | | 411 | MKDYNAMICROOT?= yes |
412 | | | 412 | |
413 | # | | 413 | # |
414 | # Where the system object and source trees are kept; can be configurable | | 414 | # Where the system object and source trees are kept; can be configurable |
415 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). | | 415 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). |
416 | # | | 416 | # |
417 | BSDSRCDIR?= /usr/src | | 417 | BSDSRCDIR?= /usr/src |
418 | BSDOBJDIR?= /usr/obj | | 418 | BSDOBJDIR?= /usr/obj |
419 | NETBSDSRCDIR?= ${BSDSRCDIR} | | 419 | NETBSDSRCDIR?= ${BSDSRCDIR} |
420 | | | 420 | |
421 | BINGRP?= wheel | | 421 | BINGRP?= wheel |
422 | BINOWN?= root | | 422 | BINOWN?= root |
423 | BINMODE?= 555 | | 423 | BINMODE?= 555 |
424 | NONBINMODE?= 444 | | 424 | NONBINMODE?= 444 |
425 | | | 425 | |
426 | MANDIR?= /usr/share/man | | 426 | MANDIR?= /usr/share/man |
427 | MANGRP?= wheel | | 427 | MANGRP?= wheel |
428 | MANOWN?= root | | 428 | MANOWN?= root |
429 | MANMODE?= ${NONBINMODE} | | 429 | MANMODE?= ${NONBINMODE} |
430 | MANINSTALL?= catinstall htmlinstall maninstall | | 430 | MANINSTALL?= catinstall htmlinstall maninstall |
431 | | | 431 | |
432 | INFODIR?= /usr/share/info | | 432 | INFODIR?= /usr/share/info |
433 | INFOGRP?= wheel | | 433 | INFOGRP?= wheel |
434 | INFOOWN?= root | | 434 | INFOOWN?= root |
435 | INFOMODE?= ${NONBINMODE} | | 435 | INFOMODE?= ${NONBINMODE} |
436 | | | 436 | |
437 | LIBDIR?= /usr/lib | | 437 | LIBDIR?= /usr/lib |
438 | | | 438 | |
439 | LINTLIBDIR?= /usr/libdata/lint | | 439 | LINTLIBDIR?= /usr/libdata/lint |
440 | LIBGRP?= ${BINGRP} | | 440 | LIBGRP?= ${BINGRP} |
441 | LIBOWN?= ${BINOWN} | | 441 | LIBOWN?= ${BINOWN} |
442 | LIBMODE?= ${NONBINMODE} | | 442 | LIBMODE?= ${NONBINMODE} |
443 | | | 443 | |
444 | DOCDIR?= /usr/share/doc | | 444 | DOCDIR?= /usr/share/doc |
445 | HTMLDOCDIR?= /usr/share/doc/html | | 445 | HTMLDOCDIR?= /usr/share/doc/html |
446 | DOCGRP?= wheel | | 446 | DOCGRP?= wheel |
447 | DOCOWN?= root | | 447 | DOCOWN?= root |
448 | DOCMODE?= ${NONBINMODE} | | 448 | DOCMODE?= ${NONBINMODE} |
449 | | | 449 | |
450 | NLSDIR?= /usr/share/nls | | 450 | NLSDIR?= /usr/share/nls |
451 | NLSGRP?= wheel | | 451 | NLSGRP?= wheel |
452 | NLSOWN?= root | | 452 | NLSOWN?= root |
453 | NLSMODE?= ${NONBINMODE} | | 453 | NLSMODE?= ${NONBINMODE} |
454 | | | 454 | |
455 | KMODULEGRP?= wheel | | 455 | KMODULEGRP?= wheel |
456 | KMODULEOWN?= root | | 456 | KMODULEOWN?= root |
457 | KMODULEMODE?= ${NONBINMODE} | | 457 | KMODULEMODE?= ${NONBINMODE} |
458 | | | 458 | |
459 | LOCALEDIR?= /usr/share/locale | | 459 | LOCALEDIR?= /usr/share/locale |
460 | LOCALEGRP?= wheel | | 460 | LOCALEGRP?= wheel |
461 | LOCALEOWN?= root | | 461 | LOCALEOWN?= root |
462 | LOCALEMODE?= ${NONBINMODE} | | 462 | LOCALEMODE?= ${NONBINMODE} |
463 | | | 463 | |
464 | FIRMWAREDIR?= /libdata/firmware | | 464 | FIRMWAREDIR?= /libdata/firmware |
465 | FIRMWAREGRP?= wheel | | 465 | FIRMWAREGRP?= wheel |
466 | FIRMWAREOWN?= root | | 466 | FIRMWAREOWN?= root |
467 | FIRMWAREMODE?= ${NONBINMODE} | | 467 | FIRMWAREMODE?= ${NONBINMODE} |
468 | | | 468 | |
469 | DEBUGDIR?= /usr/libdata/debug | | 469 | DEBUGDIR?= /usr/libdata/debug |
470 | DEBUGGRP?= wheel | | 470 | DEBUGGRP?= wheel |
471 | DEBUGOWN?= root | | 471 | DEBUGOWN?= root |
472 | DEBUGMODE?= ${NONBINMODE} | | 472 | DEBUGMODE?= ${NONBINMODE} |
473 | | | 473 | |
474 | # | | 474 | # |
475 | # Data-driven table using make variables to control how | | 475 | # Data-driven table using make variables to control how |
476 | # toolchain-dependent targets and shared libraries are built | | 476 | # toolchain-dependent targets and shared libraries are built |
477 | # for different platforms and object formats. | | 477 | # for different platforms and object formats. |
478 | # | | 478 | # |
479 | # OBJECT_FMT: currently either "ELF" or "a.out". | | 479 | # OBJECT_FMT: currently either "ELF" or "a.out". |
480 | # | | 480 | # |
481 | # All platforms are ELF. | | 481 | # All platforms are ELF. |
482 | # | | 482 | # |
483 | OBJECT_FMT= ELF | | 483 | OBJECT_FMT= ELF |
484 | | | 484 | |
485 | # | | 485 | # |
486 | # If this platform's toolchain is missing, we obviously cannot build it. | | 486 | # If this platform's toolchain is missing, we obviously cannot build it. |
487 | # | | 487 | # |
488 | .if ${TOOLCHAIN_MISSING} != "no" | | 488 | .if ${TOOLCHAIN_MISSING} != "no" |
489 | MKBINUTILS:= no | | 489 | MKBINUTILS:= no |
490 | MKGDB:= no | | 490 | MKGDB:= no |
491 | MKGCC:= no | | 491 | MKGCC:= no |
492 | .endif | | 492 | .endif |
493 | | | 493 | |
494 | # | | 494 | # |
495 | # If we are using an external toolchain, we can still build the target's | | 495 | # If we are using an external toolchain, we can still build the target's |
496 | # binutils, but we cannot build GCC's support libraries, since those are | | 496 | # binutils, but we cannot build GCC's support libraries, since those are |
497 | # tightly-coupled to the version of GCC being used. | | 497 | # tightly-coupled to the version of GCC being used. |
498 | # | | 498 | # |
499 | .if defined(EXTERNAL_TOOLCHAIN) | | 499 | .if defined(EXTERNAL_TOOLCHAIN) |
500 | MKGCC:= no | | 500 | MKGCC:= no |
501 | .endif | | 501 | .endif |
502 | | | 502 | |
503 | # | | 503 | # |
504 | # The m68000 port is incomplete. | | 504 | # The m68000 port is incomplete. |
505 | # | | 505 | # |
506 | .if ${MACHINE_ARCH} == "m68000" | | 506 | .if ${MACHINE_ARCH} == "m68000" |
507 | NOPIC= # defined | | 507 | NOPIC= # defined |
508 | MKISCSI= no | | 508 | MKISCSI= no |
509 | # XXX GCC 4 outputs mcount() calling sequences that try to load values | | 509 | # XXX GCC 4 outputs mcount() calling sequences that try to load values |
510 | # from over 64KB away and this fails to assemble. | | 510 | # from over 64KB away and this fails to assemble. |
511 | .if defined(HAVE_GCC) && (${HAVE_GCC} == 4) | | 511 | .if defined(HAVE_GCC) && (${HAVE_GCC} == 4) |
512 | NOPROFILE= # defined | | 512 | NOPROFILE= # defined |
513 | .endif | | 513 | .endif |
514 | .endif | | 514 | .endif |
515 | | | 515 | |
516 | # | | 516 | # |
517 | # The ia64 port is incomplete. | | 517 | # The ia64 port is incomplete. |
518 | # | | 518 | # |
519 | .if ${MACHINE_ARCH} == "ia64" | | 519 | .if ${MACHINE_ARCH} == "ia64" |
520 | MKLINT= no | | 520 | MKLINT= no |
521 | MKGDB= no | | 521 | MKGDB= no |
522 | .endif | | 522 | .endif |
523 | | | 523 | |
524 | # | | 524 | # |
525 | # On the MIPS, all libs are compiled with ABIcalls (and are thus PIC), | | 525 | # On the MIPS, all libs are compiled with ABIcalls (and are thus PIC), |
526 | # not just shared libraries, so don't build the _pic version. | | 526 | # not just shared libraries, so don't build the _pic version. |
527 | # | | 527 | # |
528 | .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ | | 528 | .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ |
529 | ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" | | 529 | ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" |
530 | MKPICLIB:= no | | 530 | MKPICLIB:= no |
531 | .endif | | 531 | .endif |
532 | | | 532 | |
533 | # | | 533 | # |
534 | # On VAX using ELF, all objects are PIC, not just shared libraries, | | 534 | # On VAX using ELF, all objects are PIC, not just shared libraries, |
535 | # so don't build the _pic version. Unless we are using GCC3 which | | 535 | # so don't build the _pic version. Unless we are using GCC3 which |
536 | # doesn't support PIC yet. | | 536 | # doesn't support PIC yet. |
537 | # | | 537 | # |
538 | .if ${MACHINE_ARCH} == "vax" | | 538 | .if ${MACHINE_ARCH} == "vax" |
539 | MKPICLIB= no | | 539 | MKPICLIB= no |
540 | .endif | | 540 | .endif |
541 | | | 541 | |
542 | # | | 542 | # |
543 | # Location of the file that contains the major and minor numbers of the | | 543 | # Location of the file that contains the major and minor numbers of the |
544 | # version of a shared library. If this file exists a shared library | | 544 | # version of a shared library. If this file exists a shared library |
545 | # will be built by <bsd.lib.mk>. | | 545 | # will be built by <bsd.lib.mk>. |
546 | # | | 546 | # |
547 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version | | 547 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version |
548 | | | 548 | |
549 | # | | 549 | # |
550 | # GNU sources and packages sometimes see architecture names differently. | | 550 | # GNU sources and packages sometimes see architecture names differently. |
551 | # | | 551 | # |
552 | GNU_ARCH.coldfire=m68k | | 552 | GNU_ARCH.coldfire=m68k |
553 | GNU_ARCH.i386=i486 | | 553 | GNU_ARCH.i386=i486 |
554 | GCC_CONFIG_ARCH.i386=i486 | | 554 | GCC_CONFIG_ARCH.i386=i486 |
555 | GCC_CONFIG_TUNE.i386=nocona | | 555 | GCC_CONFIG_TUNE.i386=nocona |
556 | GCC_CONFIG_TUNE.x86_64=nocona | | 556 | GCC_CONFIG_TUNE.x86_64=nocona |
557 | GNU_ARCH.m68000=m68010 | | 557 | GNU_ARCH.m68000=m68010 |
558 | GNU_ARCH.sh3eb=sh | | 558 | GNU_ARCH.sh3eb=sh |
559 | GNU_ARCH.sh3el=shle | | 559 | GNU_ARCH.sh3el=shle |
560 | GNU_ARCH.mips64eb=mips64 | | 560 | GNU_ARCH.mips64eb=mips64 |
561 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} | | 561 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} |
562 | | | 562 | |
563 | # | | 563 | # |
564 | # In order to identify NetBSD to GNU packages, we sometimes need | | 564 | # In order to identify NetBSD to GNU packages, we sometimes need |
565 | # an "elf" tag for historically a.out platforms. | | 565 | # an "elf" tag for historically a.out platforms. |
566 | # | | 566 | # |
567 | .if ${OBJECT_FMT} == "ELF" && \ | | 567 | .if ${OBJECT_FMT} == "ELF" && \ |
568 | (${MACHINE_GNU_ARCH} == "arm" || \ | | 568 | (${MACHINE_GNU_ARCH} == "arm" || \ |
569 | ${MACHINE_GNU_ARCH} == "armeb" || \ | | 569 | ${MACHINE_GNU_ARCH} == "armeb" || \ |
570 | ${MACHINE_ARCH} == "i386" || \ | | 570 | ${MACHINE_ARCH} == "i386" || \ |
571 | ${MACHINE_CPU} == "m68k" || \ | | 571 | ${MACHINE_CPU} == "m68k" || \ |
572 | ${MACHINE_GNU_ARCH} == "sh" || \ | | 572 | ${MACHINE_GNU_ARCH} == "sh" || \ |
573 | ${MACHINE_GNU_ARCH} == "shle" || \ | | 573 | ${MACHINE_GNU_ARCH} == "shle" || \ |
574 | ${MACHINE_ARCH} == "sparc" || \ | | 574 | ${MACHINE_ARCH} == "sparc" || \ |
575 | ${MACHINE_ARCH} == "vax") | | 575 | ${MACHINE_ARCH} == "vax") |
576 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf | | 576 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf |
577 | .else | | 577 | .else |
578 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd | | 578 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd |
579 | .endif | | 579 | .endif |
580 | | | 580 | |
581 | # | | 581 | # |
582 | # Determine if arch uses native kernel modules with rump | | 582 | # Determine if arch uses native kernel modules with rump |
583 | # | | 583 | # |
584 | .if ${MACHINE_ARCH} == "i386" || \ | | 584 | .if ${MACHINE_ARCH} == "i386" || \ |
585 | ${MACHINE_ARCH} == "x86_64" | | 585 | ${MACHINE_ARCH} == "x86_64" |
586 | RUMPKMOD= # defined | | 586 | RUMPKMOD= # defined |
587 | .endif | | 587 | .endif |
588 | | | 588 | |
589 | TARGETS+= all clean cleandir depend dependall includes \ | | 589 | TARGETS+= all clean cleandir depend dependall includes \ |
590 | install lint obj regress tags html | | 590 | install lint obj regress tags html |
591 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ | | 591 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ |
592 | install lint obj regress tags beforedepend afterdepend \ | | 592 | install lint obj regress tags beforedepend afterdepend \ |
593 | beforeinstall afterinstall realinstall realdepend realall \ | | 593 | beforeinstall afterinstall realinstall realdepend realall \ |
594 | html subdir-all subdir-install subdir-depend | | 594 | html subdir-all subdir-install subdir-depend |
595 | .PHONY: ${PHONY_NOTMAIN} | | 595 | .PHONY: ${PHONY_NOTMAIN} |
596 | .NOTMAIN: ${PHONY_NOTMAIN} | | 596 | .NOTMAIN: ${PHONY_NOTMAIN} |
597 | | | 597 | |
598 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 598 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
599 | .if !target(install) | | 599 | .if !target(install) |
600 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall | | 600 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall |
601 | beforeinstall: | | 601 | beforeinstall: |
602 | subdir-install: | | 602 | subdir-install: |
603 | realinstall: | | 603 | realinstall: |
604 | afterinstall: | | 604 | afterinstall: |
605 | .endif | | 605 | .endif |
606 | all: realall subdir-all | | 606 | all: realall subdir-all |
607 | subdir-all: | | 607 | subdir-all: |
608 | realall: | | 608 | realall: |
609 | depend: realdepend subdir-depend | | 609 | depend: realdepend subdir-depend |
610 | subdir-depend: | | 610 | subdir-depend: |
611 | realdepend: | | 611 | realdepend: |
612 | distclean: cleandir | | 612 | distclean: cleandir |
613 | cleandir: clean | | 613 | cleandir: clean |
614 | | | 614 | |
615 | dependall: .NOTMAIN realdepend .MAKE | | 615 | dependall: .NOTMAIN realdepend .MAKE |
616 | @cd ${.CURDIR}; ${MAKE} realall | | 616 | @cd ${.CURDIR}; ${MAKE} realall |
617 | .endif | | 617 | .endif |
618 | | | 618 | |
619 | # | | 619 | # |
620 | # Define MKxxx variables (which are either yes or no) for users | | 620 | # Define MKxxx variables (which are either yes or no) for users |
621 | # to set in /etc/mk.conf and override in the make environment. | | 621 | # to set in /etc/mk.conf and override in the make environment. |
622 | # These should be tested with `== "no"' or `!= "no"'. | | 622 | # These should be tested with `== "no"' or `!= "no"'. |
623 | # The NOxxx variables should only be set by Makefiles. | | 623 | # The NOxxx variables should only be set by Makefiles. |
624 | # | | 624 | # |
625 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync | | 625 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync |
626 | # with changes to the MK* variables here. | | 626 | # with changes to the MK* variables here. |
627 | # | | 627 | # |
628 | | | 628 | |
629 | # | | 629 | # |
630 | # Supported NO* options (if defined, MK* will be forced to "no", | | 630 | # Supported NO* options (if defined, MK* will be forced to "no", |
631 | # regardless of user's mk.conf setting). | | 631 | # regardless of user's mk.conf setting). |
632 | # | | 632 | # |
633 | # Source makefiles should set NO*, and not MK*, and must do so before | | 633 | # Source makefiles should set NO*, and not MK*, and must do so before |
634 | # including bsd.own.mk. | | 634 | # including bsd.own.mk. |
635 | # | | 635 | # |
636 | .for var in \ | | 636 | .for var in \ |
637 | NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \ | | 637 | NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \ |
638 | NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB | | 638 | NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB |
639 | .if defined(${var}) | | 639 | .if defined(${var}) |
640 | MK${var:S/^NO//}:= no | | 640 | MK${var:S/^NO//}:= no |
641 | .endif | | 641 | .endif |
642 | .endfor | | 642 | .endfor |
643 | | | 643 | |
644 | # | | 644 | # |
645 | # Older-style variables that enabled behaviour when set. | | 645 | # Older-style variables that enabled behaviour when set. |
646 | # | | 646 | # |
647 | .for var in MANZ UNPRIVED UPDATE | | 647 | .for var in MANZ UNPRIVED UPDATE |
648 | .if defined(${var}) | | 648 | .if defined(${var}) |
649 | MK${var}:= yes | | 649 | MK${var}:= yes |
650 | .endif | | 650 | .endif |
651 | .endfor | | 651 | .endfor |
652 | | | 652 | |
653 | # | | 653 | # |
654 | # MK* options which have variable defaults. | | 654 | # MK* options which have variable defaults. |
655 | # | | 655 | # |
656 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" | | 656 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" |
657 | MKCOMPAT?= yes | | 657 | MKCOMPAT?= yes |
658 | .else | | 658 | .else |
659 | # Don't let this build where it really isn't supported. | | 659 | # Don't let this build where it really isn't supported. |
660 | MKCOMPAT:= no | | 660 | MKCOMPAT:= no |
661 | .endif | | 661 | .endif |
662 | | | 662 | |
663 | # | | 663 | # |
664 | # MK* backward compatibility. | | 664 | # MK* backward compatibility. |
665 | # | | 665 | # |
666 | .if defined(MKBFD) | | 666 | .if defined(MKBFD) |
667 | MKBINUTILS?= ${MKBFD} | | 667 | MKBINUTILS?= ${MKBFD} |
668 | .endif | | 668 | .endif |
669 | | | 669 | |
670 | # | | 670 | # |
671 | # We want to build zfs only for i386 and amd64 by default for now. | | 671 | # We want to build zfs only for i386 and amd64 by default for now. |
672 | # | | 672 | # |
673 | .if ${MACHINE} == "amd64" || ${MACHINE} == "i386" | | 673 | .if ${MACHINE} == "amd64" || ${MACHINE} == "i386" |
674 | MKZFS?= yes | | 674 | MKZFS?= yes |
675 | .endif | | 675 | .endif |
676 | | | 676 | |
677 | # | | 677 | # |
678 | # MK* options which default to "yes". | | 678 | # MK* options which default to "yes". |
679 | # | | 679 | # |
680 | _MKVARS.yes= \ | | 680 | _MKVARS.yes= \ |
681 | MKATF \ | | 681 | MKATF \ |
682 | MKBINUTILS \ | | 682 | MKBINUTILS \ |
683 | MKCATPAGES MKCRYPTO MKCOMPLEX MKCVS \ | | 683 | MKCATPAGES MKCRYPTO MKCOMPLEX MKCVS \ |
684 | MKDOC \ | | 684 | MKDOC \ |
685 | MKGCC MKGCCCMDS MKGDB \ | | 685 | MKGCC MKGCCCMDS MKGDB \ |
686 | MKHESIOD MKHTML \ | | 686 | MKHESIOD MKHTML \ |
687 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ | | 687 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ |
688 | MKKERBEROS \ | | 688 | MKKERBEROS \ |
689 | MKKMOD \ | | 689 | MKKMOD \ |
690 | MKLDAP MKLINKLIB MKLINT MKLVM \ | | 690 | MKLDAP MKLINKLIB MKLINT MKLVM \ |
691 | MKMAN \ | | 691 | MKMAN \ |
692 | MKMDNS \ | | 692 | MKMDNS \ |
693 | MKNLS \ | | 693 | MKNLS \ |
694 | MKOBJ \ | | 694 | MKOBJ \ |
695 | MKPAM \ | | 695 | MKPAM \ |
696 | MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ | | 696 | MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ |
697 | MKSHARE MKSKEY MKSTATICLIB \ | | 697 | MKSHARE MKSKEY MKSTATICLIB \ |
698 | MKX11FONTS \ | | 698 | MKX11FONTS \ |
699 | MKYP | | 699 | MKYP |
700 | .for var in ${_MKVARS.yes} | | 700 | .for var in ${_MKVARS.yes} |
701 | ${var}?= yes | | 701 | ${var}?= yes |
702 | .endfor | | 702 | .endfor |
703 | | | 703 | |
704 | # | | 704 | # |
705 | # Exceptions to the above: | | 705 | # Exceptions to the above: |
706 | # | | 706 | # |
707 | .if ${MACHINE} == "evbppc" | | 707 | .if ${MACHINE} == "evbppc" |
708 | MKKMOD= no | | 708 | MKKMOD= no |
709 | .endif | | 709 | .endif |
710 | | | 710 | |
711 | # | | 711 | # |
712 | # MK* options which default to "no". | | 712 | # MK* options which default to "no". |
713 | # | | 713 | # |
714 | _MKVARS.no= \ | | 714 | _MKVARS.no= \ |
715 | MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \ | | 715 | MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \ |
716 | MKEXTSRC \ | | 716 | MKEXTSRC \ |
717 | MKMANDOC MKMANZ MKOBJDIRS \ | | 717 | MKMANDOC MKMANZ MKOBJDIRS \ |
718 | MKPCC MKPCCCMDS \ | | 718 | MKPCC MKPCCCMDS \ |
719 | MKSOFTFLOAT MKSTRIPIDENT \ | | 719 | MKSOFTFLOAT MKSTRIPIDENT \ |
720 | MKUNPRIVED MKUPDATE MKX11 MKZFS | | 720 | MKUNPRIVED MKUPDATE MKX11 MKZFS |
721 | .for var in ${_MKVARS.no} | | 721 | .for var in ${_MKVARS.no} |
722 | ${var}?=no | | 722 | ${var}?=no |
723 | .endfor | | 723 | .endfor |
724 | | | 724 | |
725 | # | | 725 | # |
726 | # Do we default to XFree86 or Xorg for this platform? | | 726 | # Do we default to XFree86 or Xorg for this platform? |
727 | # | | 727 | # |
728 | .if ${MACHINE} == "alpha" || ${MACHINE} == "acorn32" || \ | | 728 | .if ${MACHINE} == "alpha" || ${MACHINE} == "acorn32" || \ |
729 | ${MACHINE} == "amiga" || ${MACHINE} == "dreamcast" || \ | | 729 | ${MACHINE} == "amiga" || ${MACHINE} == "dreamcast" || \ |
730 | ${MACHINE} == "ews4800mips" || ${MACHINE} == "hpcarm" || \ | | 730 | ${MACHINE} == "ews4800mips" || ${MACHINE} == "hpcarm" || \ |
731 | ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh" || \ | | 731 | ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh" || \ |
732 | ${MACHINE} == "mac68k" || ${MACHINE} == "newsmips" || \ | | 732 | ${MACHINE} == "mac68k" || ${MACHINE} == "newsmips" || \ |
733 | ${MACHINE} == "ofppc" || ${MACHINE} == "pmax" || \ | | 733 | ${MACHINE} == "ofppc" || ${MACHINE} == "pmax" || \ |
734 | ${MACHINE} == "sun3" || ${MACHINE} == "x68k" | | 734 | ${MACHINE} == "sun3" || ${MACHINE} == "x68k" |
735 | X11FLAVOUR?= XFree86 | | 735 | X11FLAVOUR?= XFree86 |
736 | .else | | 736 | .else |
737 | X11FLAVOUR?= Xorg | | 737 | X11FLAVOUR?= Xorg |
738 | .endif | | 738 | .endif |
739 | | | 739 | |
740 | # | | 740 | # |
741 | # Force some options off if their dependencies are off. | | 741 | # Force some options off if their dependencies are off. |
742 | # | | 742 | # |
743 | | | 743 | |
744 | .if ${MKCRYPTO} == "no" | | 744 | .if ${MKCRYPTO} == "no" |
745 | MKKERBEROS:= no | | 745 | MKKERBEROS:= no |
746 | .endif | | 746 | .endif |
747 | | | 747 | |
748 | .if ${MKMAN} == "no" | | 748 | .if ${MKMAN} == "no" |
749 | MKCATPAGES:= no | | 749 | MKCATPAGES:= no |
750 | MKHTML:= no | | 750 | MKHTML:= no |
751 | .endif | | 751 | .endif |
752 | | | 752 | |
753 | .if ${MKLINKLIB} == "no" | | 753 | .if ${MKLINKLIB} == "no" |
754 | MKLINT:= no | | 754 | MKLINT:= no |
755 | MKPICINSTALL:= no | | 755 | MKPICINSTALL:= no |
756 | MKPROFILE:= no | | 756 | MKPROFILE:= no |
757 | .endif | | 757 | .endif |
758 | | | 758 | |
759 | .if ${MKPIC} == "no" | | 759 | .if ${MKPIC} == "no" |
760 | MKPICLIB:= no | | 760 | MKPICLIB:= no |
761 | .endif | | 761 | .endif |
762 | | | 762 | |
763 | .if ${MKOBJ} == "no" | | 763 | .if ${MKOBJ} == "no" |
764 | MKOBJDIRS:= no | | 764 | MKOBJDIRS:= no |
765 | .endif | | 765 | .endif |
766 | | | 766 | |
767 | .if ${MKSHARE} == "no" | | 767 | .if ${MKSHARE} == "no" |
768 | MKCATPAGES:= no | | 768 | MKCATPAGES:= no |
769 | MKDOC:= no | | 769 | MKDOC:= no |
770 | MKINFO:= no | | 770 | MKINFO:= no |
771 | MKHTML:= no | | 771 | MKHTML:= no |
772 | MKMAN:= no | | 772 | MKMAN:= no |
773 | MKNLS:= no | | 773 | MKNLS:= no |
774 | .endif | | 774 | .endif |
775 | | | 775 | |
776 | # | | 776 | # |
777 | # install(1) parameters. | | 777 | # install(1) parameters. |
778 | # | | 778 | # |
779 | COPY?= -c | | 779 | COPY?= -c |
780 | .if ${MKUPDATE} == "no" | | 780 | .if ${MKUPDATE} == "no" |
781 | PRESERVE?= | | 781 | PRESERVE?= |
782 | .else | | 782 | .else |
783 | PRESERVE?= -p | | 783 | PRESERVE?= -p |
784 | .endif | | 784 | .endif |
785 | RENAME?= -r | | 785 | RENAME?= -r |
786 | HRDLINK?= -l h | | 786 | HRDLINK?= -l h |
787 | SYMLINK?= -l s | | 787 | SYMLINK?= -l s |
788 | | | 788 | |
789 | METALOG?= ${DESTDIR}/METALOG | | 789 | METALOG?= ${DESTDIR}/METALOG |
790 | METALOG.add?= ${TOOL_CAT} -l >> ${METALOG} | | 790 | METALOG.add?= ${TOOL_CAT} -l >> ${METALOG} |
791 | .if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR} | | 791 | .if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR} |
792 | .if ${MKUNPRIVED} != "no" | | 792 | .if ${MKUNPRIVED} != "no" |
793 | INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256 | | 793 | INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256 |
794 | .else | | 794 | .else |
795 | INSTPRIV.unpriv= | | 795 | INSTPRIV.unpriv= |
796 | .endif | | 796 | .endif |
797 | INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc | | 797 | INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc |
798 | .endif | | 798 | .endif |
799 | STRIPFLAG?= | | 799 | STRIPFLAG?= |
800 | | | 800 | |
801 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 801 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
802 | INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d | | 802 | INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d |
803 | INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME} | | 803 | INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME} |
804 | INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME} | | 804 | INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME} |
805 | INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME} | | 805 | INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME} |
806 | HOST_INSTALL_FILE?= ${INSTALL} ${COPY} ${PRESERVE} ${RENAME} | | 806 | HOST_INSTALL_FILE?= ${INSTALL} ${COPY} ${PRESERVE} ${RENAME} |
807 | HOST_INSTALL_DIR?= ${INSTALL} -d | | 807 | HOST_INSTALL_DIR?= ${INSTALL} -d |
808 | HOST_INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} ${RENAME} | | 808 | HOST_INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} ${RENAME} |
809 | .endif | | 809 | .endif |
810 | | | 810 | |
811 | # | | 811 | # |
812 | # Set defaults for the USE_xxx variables. | | 812 | # Set defaults for the USE_xxx variables. |
813 | # | | 813 | # |
814 | | | 814 | |
815 | # | | 815 | # |
816 | # USE_* options which default to "no" and will be forced to "no" if their | | 816 | # USE_* options which default to "no" and will be forced to "no" if their |
817 | # corresponding MK* variable is set to "no". | | 817 | # corresponding MK* variable is set to "no". |
818 | # | | 818 | # |
819 | .for var in USE_SKEY | | 819 | .for var in USE_SKEY |
820 | .if (${${var:S/USE_/MK/}} == "no") | | 820 | .if (${${var:S/USE_/MK/}} == "no") |
821 | ${var}:= no | | 821 | ${var}:= no |
822 | .else | | 822 | .else |
823 | ${var}?= no | | 823 | ${var}?= no |
824 | .endif | | 824 | .endif |
825 | .endfor | | 825 | .endfor |
826 | | | 826 | |
827 | # | | 827 | # |
828 | # USE_* options which default to "yes" unless their corresponding MK* | | 828 | # USE_* options which default to "yes" unless their corresponding MK* |
829 | # variable is set to "no". | | 829 | # variable is set to "no". |
830 | # | | 830 | # |
831 | .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP | | 831 | .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP |
832 | .if (${${var:S/USE_/MK/}} == "no") | | 832 | .if (${${var:S/USE_/MK/}} == "no") |
833 | ${var}:= no | | 833 | ${var}:= no |
834 | .else | | 834 | .else |
835 | ${var}?= yes | | 835 | ${var}?= yes |
836 | .endif | | 836 | .endif |
837 | .endfor | | 837 | .endfor |
838 | | | 838 | |
839 | # | | 839 | # |
840 | # USE_* options which default to "yes". | | 840 | # USE_* options which default to "yes". |
841 | # | | 841 | # |
842 | .for var in USE_JEMALLOC | | 842 | .for var in USE_JEMALLOC |
843 | ${var}?= yes | | 843 | ${var}?= yes |
844 | .endfor | | 844 | .endfor |
845 | | | 845 | |
846 | # | | 846 | # |
847 | # USE_* options which default to "no". | | 847 | # USE_* options which default to "no". |
848 | # | | 848 | # |
849 | #.for var in | | 849 | #.for var in |
850 | #${var}?= no | | 850 | #${var}?= no |
851 | #.endfor | | 851 | #.endfor |
852 | | | 852 | |
853 | # | | 853 | # |
854 | # Where X11 sources are and where it is installed to. | | 854 | # Where X11 sources are and where it is installed to. |
855 | # | | 855 | # |
856 | .if !defined(X11SRCDIR) | | 856 | .if !defined(X11SRCDIR) |
857 | .if exists(${NETBSDSRCDIR}/../xsrc) | | 857 | .if exists(${NETBSDSRCDIR}/../xsrc) |
858 | X11SRCDIR!= cd ${NETBSDSRCDIR}/../xsrc && pwd | | 858 | X11SRCDIR!= cd ${NETBSDSRCDIR}/../xsrc && pwd |
859 | .else | | 859 | .else |
860 | X11SRCDIR= /usr/xsrc | | 860 | X11SRCDIR= /usr/xsrc |
861 | .endif | | 861 | .endif |
862 | .endif # !defined(X11SRCDIR) | | 862 | .endif # !defined(X11SRCDIR) |
863 | | | 863 | |
864 | X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc | | 864 | X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc |
865 | X11SRCDIR.local?= ${X11SRCDIR}/local | | 865 | X11SRCDIR.local?= ${X11SRCDIR}/local |
866 | .if ${X11FLAVOUR} == "Xorg" | | 866 | .if ${X11FLAVOUR} == "Xorg" |
867 | X11ROOTDIR?= /usr/X11R7 | | 867 | X11ROOTDIR?= /usr/X11R7 |
868 | .else | | 868 | .else |
869 | X11ROOTDIR?= /usr/X11R6 | | 869 | X11ROOTDIR?= /usr/X11R6 |
870 | .endif | | 870 | .endif |
871 | X11BINDIR?= ${X11ROOTDIR}/bin | | 871 | X11BINDIR?= ${X11ROOTDIR}/bin |
872 | X11ETCDIR?= /etc/X11 | | 872 | X11ETCDIR?= /etc/X11 |
873 | X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts | | 873 | X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts |
874 | X11INCDIR?= ${X11ROOTDIR}/include | | 874 | X11INCDIR?= ${X11ROOTDIR}/include |
875 | X11LIBDIR?= ${X11ROOTDIR}/lib/X11 | | 875 | X11LIBDIR?= ${X11ROOTDIR}/lib/X11 |
876 | X11MANDIR?= ${X11ROOTDIR}/man | | 876 | X11MANDIR?= ${X11ROOTDIR}/man |
877 | X11USRLIBDIR?= ${X11ROOTDIR}/lib | | 877 | X11USRLIBDIR?= ${X11ROOTDIR}/lib |
878 | | | 878 | |
879 | # | | 879 | # |
880 | # New modular-xorg based builds | | 880 | # New modular-xorg based builds |
881 | # | | 881 | # |
882 | X11SRCDIRMIT?= ${X11SRCDIR}/external/mit | | 882 | X11SRCDIRMIT?= ${X11SRCDIR}/external/mit |
883 | .for _lib in \ | | 883 | .for _lib in \ |
884 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ | | 884 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ |
885 | Xdmcp Xevie Xext Xfixes Xfont Xft Xi Xinerama Xmu Xpm \ | | 885 | Xdmcp Xevie Xext Xfixes Xfont Xft Xi Xinerama Xmu Xpm \ |
886 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ | | 886 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ |
887 | fontenc xkbfile xkbui Xaw lbxutil Xfontcache pciaccess | | 887 | fontenc xkbfile xkbui Xaw lbxutil Xfontcache pciaccess |
888 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist | | 888 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist |
889 | .endfor | | 889 | .endfor |
890 | | | 890 | |
891 | .for _proto in \ | | 891 | .for _proto in \ |
892 | xcmisc xext xf86bigfont bigreqs input kb x fonts fixes scrnsaver \ | | 892 | xcmisc xext xf86bigfont bigreqs input kb x fonts fixes scrnsaver \ |
893 | xinerama dri2 render resource record video xf86dga xf86misc \ | | 893 | xinerama dri2 render resource record video xf86dga xf86misc \ |
894 | xf86vidmode composite damage trap gl randr fontcache xf86dri | | 894 | xf86vidmode composite damage trap gl randr fontcache xf86dri |
895 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist | | 895 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist |
896 | .endfor | | 896 | .endfor |
897 | | | 897 | |
898 | .for _dir in \ | | 898 | .for _dir in \ |
899 | xtrans fontconfig expat freetype evieext mkfontscale bdftopcf \ | | 899 | xtrans fontconfig expat freetype evieext mkfontscale bdftopcf \ |
900 | xkbcomp xorg-cf-files imake xorg-server xbiff xkbdata xkeyboard-config \ | | 900 | xkbcomp xorg-cf-files imake xorg-server xbiff xkbdata xkeyboard-config \ |
901 | xbitmaps appres xeyes xev xedit sessreg pixman \ | | 901 | xbitmaps appres xeyes xev xedit sessreg pixman \ |
902 | beforelight bitmap editres makedepend fonttosfnt fslsfonts \ | | 902 | beforelight bitmap editres makedepend fonttosfnt fslsfonts \ |
903 | fstobdf MesaDemos MesaGLUT MesaLib ico iceauth lbxproxy listres lndir \ | | 903 | fstobdf MesaDemos MesaGLUT MesaLib ico iceauth lbxproxy listres lndir \ |
904 | luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \ | | 904 | luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \ |
905 | setxkbmap smproxy twm viewres x11perf xauth xcalc xclipboard \ | | 905 | setxkbmap smproxy twm viewres x11perf xauth xcalc xclipboard \ |
906 | xclock xcmsdb xconsole xcutsel xditview xdpyinfo xdriinfo xdm \ | | 906 | xclock xcmsdb xconsole xcutsel xditview xdpyinfo xdriinfo xdm \ |
907 | xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \ | | 907 | xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \ |
908 | xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \ | | 908 | xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \ |
909 | xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \ | | 909 | xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \ |
910 | xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \ | | 910 | xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \ |
911 | xwininfo xwud xprehashprinterlist xplsprinters xkbprint xkbevd \ | | 911 | xwininfo xwud xprehashprinterlist xplsprinters xkbprint xkbevd \ |
912 | xterm xwd xfs xfsinfo xphelloworld xtrap xkbutils xkbcomp \ | | 912 | xterm xwd xfs xfsinfo xphelloworld xtrap xkbutils xkbcomp \ |
913 | xkeyboard-config xinput \ | | 913 | xkeyboard-config xinput \ |
914 | font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \ | | 914 | font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \ |
915 | font-adobe-utopia-75dpi font-adobe-utopia-type1 \ | | 915 | font-adobe-utopia-75dpi font-adobe-utopia-type1 \ |
916 | font-alias \ | | 916 | font-alias \ |
917 | font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \ | | 917 | font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \ |
918 | font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \ | | 918 | font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \ |
919 | font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \ | | 919 | font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \ |
920 | font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \ | | 920 | font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \ |
921 | font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \ | | 921 | font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \ |
922 | font-sony-misc font-util ttf-bitstream-vera encodings | | 922 | font-sony-misc font-util ttf-bitstream-vera encodings |
923 | X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist | | 923 | X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist |
924 | .endfor | | 924 | .endfor |
925 | | | 925 | |
926 | .for _i in \ | | 926 | .for _i in \ |
927 | elographics keyboard mouse vmmouse void ws | | 927 | elographics keyboard mouse vmmouse void ws |
928 | X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist | | 928 | X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist |
929 | .endfor | | 929 | .endfor |
930 | | | 930 | |
931 | .for _v in \ | | 931 | .for _v in \ |
932 | ag10e apm ark ast ati chips cirrus crime cyrix glint i128 i740 igs \ | | 932 | ag10e apm ark ast ati chips cirrus crime cyrix glint i128 i740 igs \ |
933 | imstt intel mach64 mga neomagic newport nsc nv nvxbox pnozz r128 \ | | 933 | imstt intel mach64 mga neomagic newport nsc nv nvxbox pnozz r128 \ |
934 | radeonhd rendition s3 s3virge savage siliconmotion sis sunffb suncg6 \ | | 934 | radeonhd rendition s3 s3virge savage siliconmotion sis sunffb suncg6 \ |
935 | sunleo suntcx tdfx tga trident tseng vesa vga via vmware wsfb | | 935 | sunleo suntcx tdfx tga trident tseng vesa vga via vmware wsfb |
936 | | | 936 | |
937 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist | | 937 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist |
938 | .endfor | | 938 | .endfor |
939 | | | 939 | |
940 | .if ${X11FLAVOUR} == "Xorg" | | 940 | .if ${X11FLAVOUR} == "Xorg" |
941 | X11DRI?= yes | | 941 | X11DRI?= yes |
942 | .endif | | 942 | .endif |
943 | | | 943 | |
944 | X11DRI?= no | | 944 | X11DRI?= no |
945 | X11LOADABLE?= yes | | 945 | X11LOADABLE?= yes |
946 | | | 946 | |
947 | | | 947 | |
948 | # | | 948 | # |
949 | # Where extsrc sources are and where it is installed to. | | 949 | # Where extsrc sources are and where it is installed to. |
950 | # | | 950 | # |
951 | .if !defined(EXTSRCSRCDIR) | | 951 | .if !defined(EXTSRCSRCDIR) |
952 | .if exists(${NETBSDSRCDIR}/../extsrc) | | 952 | .if exists(${NETBSDSRCDIR}/../extsrc) |
953 | EXTSRCSRCDIR!= cd ${NETBSDSRCDIR}/../extsrc && pwd | | 953 | EXTSRCSRCDIR!= cd ${NETBSDSRCDIR}/../extsrc && pwd |
954 | .else | | 954 | .else |
955 | EXTSRCSRCDIR= /usr/extsrc | | 955 | EXTSRCSRCDIR= /usr/extsrc |
956 | .endif | | 956 | .endif |
957 | .endif # !defined(EXTSRCSRCDIR) | | 957 | .endif # !defined(EXTSRCSRCDIR) |
958 | | | 958 | |
959 | EXTSRCROOTDIR?= /usr/ext | | 959 | EXTSRCROOTDIR?= /usr/ext |
960 | EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin | | 960 | EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin |
961 | EXTSRCETCDIR?= /etc/ext | | 961 | EXTSRCETCDIR?= /etc/ext |
962 | EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include | | 962 | EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include |
963 | EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext | | 963 | EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext |
964 | EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man | | 964 | EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man |
965 | EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib | | 965 | EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib |
966 | | | 966 | |
967 | # | | 967 | # |
968 | # MAKEDIRTARGET dir target [extra make(1) params] | | 968 | # MAKEDIRTARGET dir target [extra make(1) params] |
969 | # run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message | | 969 | # run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message |
970 | # | | 970 | # |
| | | 971 | MAKEDIRTARGETENV?= |
971 | MAKEDIRTARGET=\ | | 972 | MAKEDIRTARGET=\ |
972 | @_makedirtarget() { \ | | 973 | @_makedirtarget() { \ |
973 | dir="$$1"; shift; \ | | 974 | dir="$$1"; shift; \ |
974 | target="$$1"; shift; \ | | 975 | target="$$1"; shift; \ |
975 | case "$${dir}" in \ | | 976 | case "$${dir}" in \ |
976 | /*) this="$${dir}/"; \ | | 977 | /*) this="$${dir}/"; \ |
977 | real="$${dir}" ;; \ | | 978 | real="$${dir}" ;; \ |
978 | .) this="${_THISDIR_}"; \ | | 979 | .) this="${_THISDIR_}"; \ |
979 | real="${.CURDIR}" ;; \ | | 980 | real="${.CURDIR}" ;; \ |
980 | *) this="${_THISDIR_}$${dir}/"; \ | | 981 | *) this="${_THISDIR_}$${dir}/"; \ |
981 | real="${.CURDIR}/$${dir}" ;; \ | | 982 | real="${.CURDIR}/$${dir}" ;; \ |
982 | esac; \ | | 983 | esac; \ |
983 | show=$${this:-.}; \ | | 984 | show=$${this:-.}; \ |
984 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ | | 985 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ |
985 | cd "$${real}" \ | | 986 | cd "$${real}" \ |
986 | && ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ | | 987 | && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ |
987 | }; \ | | 988 | }; \ |
988 | _makedirtarget | | 989 | _makedirtarget |
989 | | | 990 | |
990 | # | | 991 | # |
991 | # ${GENCMD} <generated name> <command and arguments> | | 992 | # ${GENCMD} <generated name> <command and arguments> |
992 | # Extract only one output from generation command so that make rule is | | 993 | # Extract only one output from generation command so that make rule is |
993 | # written straight and avoid race (duplicate generation). <generated | | 994 | # written straight and avoid race (duplicate generation). <generated |
994 | # name> is usually ${.TARGET}; if you want foo.c from foo.y, yacc | | 995 | # name> is usually ${.TARGET}; if you want foo.c from foo.y, yacc |
995 | # generates y.tab.c, so <generated name> is y.tab.c. See bin/sh/Makefile | | 996 | # generates y.tab.c, so <generated name> is y.tab.c. See bin/sh/Makefile |
996 | # for examples. | | 997 | # for examples. |
997 | # | | 998 | # |
998 | GENCMD=\ | | 999 | GENCMD=\ |
999 | @_gencmd() { \ | | 1000 | @_gencmd() { \ |
1000 | local _dst="$$1"; shift; local _src="$$1"; shift; local _gen="$$1"; shift; \ | | 1001 | local _dst="$$1"; shift; local _src="$$1"; shift; local _gen="$$1"; shift; \ |
1001 | local _tmp=$$( ${TOOL_MKTEMP} -d /tmp/_gencmd.XXXXXX ); \ | | 1002 | local _tmp=$$( ${TOOL_MKTEMP} -d /tmp/_gencmd.XXXXXX ); \ |
1002 | local _opwd=$$PWD; \ | | 1003 | local _opwd=$$PWD; \ |
1003 | local _exit; \ | | 1004 | local _exit; \ |
1004 | cp $$_src $$_tmp; \ | | 1005 | cp $$_src $$_tmp; \ |
1005 | { cd $$_tmp && eval "$$@"; _exit=$$?; cd $$_opwd; }; \ | | 1006 | { cd $$_tmp && eval "$$@"; _exit=$$?; cd $$_opwd; }; \ |
1006 | [ $$_exit = 0 ] && cp $${_tmp}/$${_gen} $$_dst; \ | | 1007 | [ $$_exit = 0 ] && cp $${_tmp}/$${_gen} $$_dst; \ |
1007 | rm -fr $$_tmp; \ | | 1008 | rm -fr $$_tmp; \ |
1008 | return $$_exit; \ | | 1009 | return $$_exit; \ |
1009 | }; \ | | 1010 | }; \ |
1010 | _gencmd "${.TARGET}" "${.ALLSRC}" | | 1011 | _gencmd "${.TARGET}" "${.ALLSRC}" |
1011 | | | 1012 | |
1012 | # | | 1013 | # |
1013 | # MAKEVERBOSE support. Levels are: | | 1014 | # MAKEVERBOSE support. Levels are: |
1014 | # 0 Minimal output ("quiet") | | 1015 | # 0 Minimal output ("quiet") |
1015 | # 1 Describe what is occurring | | 1016 | # 1 Describe what is occurring |
1016 | # 2 Describe what is occurring and echo the actual command | | 1017 | # 2 Describe what is occurring and echo the actual command |
1017 | # 3 Ignore the effect of the "@" prefix in make commands | | 1018 | # 3 Ignore the effect of the "@" prefix in make commands |
1018 | # 4 Trace shell commands using the shell's -x flag | | 1019 | # 4 Trace shell commands using the shell's -x flag |
1019 | # | | 1020 | # |
1020 | MAKEVERBOSE?= 2 | | 1021 | MAKEVERBOSE?= 2 |
1021 | | | 1022 | |
1022 | .if ${MAKEVERBOSE} == 0 | | 1023 | .if ${MAKEVERBOSE} == 0 |
1023 | _MKMSG?= @\# | | 1024 | _MKMSG?= @\# |
1024 | _MKSHMSG?= : echo | | 1025 | _MKSHMSG?= : echo |
1025 | _MKSHECHO?= : echo | | 1026 | _MKSHECHO?= : echo |
1026 | .SILENT: | | 1027 | .SILENT: |
1027 | .elif ${MAKEVERBOSE} == 1 | | 1028 | .elif ${MAKEVERBOSE} == 1 |
1028 | _MKMSG?= @echo ' ' | | 1029 | _MKMSG?= @echo ' ' |
1029 | _MKSHMSG?= echo ' ' | | 1030 | _MKSHMSG?= echo ' ' |
1030 | _MKSHECHO?= : echo | | 1031 | _MKSHECHO?= : echo |
1031 | .SILENT: | | 1032 | .SILENT: |
1032 | .else # MAKEVERBOSE >= 2 | | 1033 | .else # MAKEVERBOSE >= 2 |
1033 | _MKMSG?= @echo '\# ' | | 1034 | _MKMSG?= @echo '\# ' |
1034 | _MKSHMSG?= echo '\# ' | | 1035 | _MKSHMSG?= echo '\# ' |
1035 | _MKSHECHO?= echo | | 1036 | _MKSHECHO?= echo |
1036 | .SILENT: __makeverbose_dummy_target__ | | 1037 | .SILENT: __makeverbose_dummy_target__ |
1037 | .endif # MAKEVERBOSE >= 2 | | 1038 | .endif # MAKEVERBOSE >= 2 |
1038 | .if ${MAKEVERBOSE} >= 3 | | 1039 | .if ${MAKEVERBOSE} >= 3 |
1039 | .MAKEFLAGS: -dl | | 1040 | .MAKEFLAGS: -dl |
1040 | .endif # ${MAKEVERBOSE} >= 3 | | 1041 | .endif # ${MAKEVERBOSE} >= 3 |
1041 | .if ${MAKEVERBOSE} >= 4 | | 1042 | .if ${MAKEVERBOSE} >= 4 |
1042 | .MAKEFLAGS: -dx | | 1043 | .MAKEFLAGS: -dx |
1043 | .endif # ${MAKEVERBOSE} >= 4 | | 1044 | .endif # ${MAKEVERBOSE} >= 4 |
1044 | | | 1045 | |
1045 | _MKMSG_BUILD?= ${_MKMSG} " build " | | 1046 | _MKMSG_BUILD?= ${_MKMSG} " build " |
1046 | _MKMSG_CREATE?= ${_MKMSG} " create " | | 1047 | _MKMSG_CREATE?= ${_MKMSG} " create " |
1047 | _MKMSG_COMPILE?= ${_MKMSG} "compile " | | 1048 | _MKMSG_COMPILE?= ${_MKMSG} "compile " |
1048 | _MKMSG_FORMAT?= ${_MKMSG} " format " | | 1049 | _MKMSG_FORMAT?= ${_MKMSG} " format " |
1049 | _MKMSG_INSTALL?= ${_MKMSG} "install " | | 1050 | _MKMSG_INSTALL?= ${_MKMSG} "install " |
1050 | _MKMSG_LINK?= ${_MKMSG} " link " | | 1051 | _MKMSG_LINK?= ${_MKMSG} " link " |
1051 | _MKMSG_LEX?= ${_MKMSG} " lex " | | 1052 | _MKMSG_LEX?= ${_MKMSG} " lex " |
1052 | _MKMSG_REMOVE?= ${_MKMSG} " remove " | | 1053 | _MKMSG_REMOVE?= ${_MKMSG} " remove " |
1053 | _MKMSG_YACC?= ${_MKMSG} " yacc " | | 1054 | _MKMSG_YACC?= ${_MKMSG} " yacc " |
1054 | | | 1055 | |
1055 | _MKSHMSG_CREATE?= ${_MKSHMSG} " create " | | 1056 | _MKSHMSG_CREATE?= ${_MKSHMSG} " create " |
1056 | _MKSHMSG_INSTALL?= ${_MKSHMSG} "install " | | 1057 | _MKSHMSG_INSTALL?= ${_MKSHMSG} "install " |
1057 | | | 1058 | |
1058 | _MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET} | | 1059 | _MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET} |
1059 | _MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET} | | 1060 | _MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET} |
1060 | _MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET} | | 1061 | _MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET} |
1061 | _MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET} | | 1062 | _MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET} |
1062 | _MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET} | | 1063 | _MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET} |
1063 | _MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET} | | 1064 | _MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET} |
1064 | _MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET} | | 1065 | _MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET} |
1065 | _MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET} | | 1066 | _MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET} |
1066 | _MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET} | | 1067 | _MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET} |
1067 | | | 1068 | |
1068 | .if ${MKMANDOC} == "yes" | | 1069 | .if ${MKMANDOC} == "yes" |
1069 | TARGETS+= lintmanpages | | 1070 | TARGETS+= lintmanpages |
1070 | .endif | | 1071 | .endif |
1071 | | | 1072 | |
1072 | .endif # !defined(_BSD_OWN_MK_) | | 1073 | .endif # !defined(_BSD_OWN_MK_) |