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