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