1:1 Userland threading stage 2.8/4:
[dragonfly.git] / Makefile.inc1
CommitLineData
984263bc
MD
1#
2# $FreeBSD: src/Makefile.inc1,v 1.141.2.62 2003/04/06 19:54:00 dwmalone Exp $
d0a8f509 3# $DragonFly: src/Makefile.inc1,v 1.83 2005/10/08 10:50:53 corecode Exp $
cecff5c1
MD
4#
5# Build-time options are documented in make.conf(5).
984263bc
MD
6#
7# The intended user-driven targets are:
1397f94a 8#
984263bc 9# buildworld - rebuild *everything*, including glue to help do upgrades
1397f94a
MD
10# quickworld - skip the glue and do a depend+build on the meat
11# realquickworld - skip the glue and depend stages and just build the meat
12# crossworld - only build the glue (particularly the cross-build environment)
984263bc
MD
13# installworld- install everything built by "buildworld"
14# update - convenient way to update your source tree (eg: sup/cvs)
15# most - build user commands, no libraries or include files
16# installmost - install user commands, no libraries or include files
17#
18# Standard targets (not defined here) are documented in the makefiles in
19# /usr/share/mk. These include:
20# obj depend all install clean cleandepend cleanobj
21
22# Put initial settings here.
23SUBDIR=
24
25# We must do share/info early so that installation of info `dir'
26# entries works correctly. Do it first since it is less likely to
27# grow dependencies on include and lib than vice versa.
28.if exists(${.CURDIR}/share/info)
29SUBDIR+= share/info
30.endif
31
32# We must do include and lib early so that the perl *.ph generation
33# works correctly as it uses the header files installed by this.
34.if exists(${.CURDIR}/include)
35SUBDIR+= include
36.endif
37.if exists(${.CURDIR}/lib)
38SUBDIR+= lib
39.endif
17d0fefe
MD
40# This exists simply to ensure that the obj dir hierarchy is
41# intact for nrelease, allowing the nrelease Makefile's to
42# reference ${.OBJDIR}.
43#
44.if exists(${.CURDIR}/nrelease)
45SUBDIR+= nrelease
46.endif
984263bc
MD
47
48.if exists(${.CURDIR}/bin)
49SUBDIR+= bin
50.endif
cecff5c1 51.if exists(${.CURDIR}/games) && !defined(NO_GAMES)
984263bc
MD
52SUBDIR+= games
53.endif
54.if exists(${.CURDIR}/gnu)
55SUBDIR+= gnu
56.endif
984263bc 57.if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
cecff5c1 58 !defined(NO_CRYPT) && !defined(NO_OPENSSL) && defined(WANT_KERBEROS)
984263bc
MD
59SUBDIR+= kerberos5
60.endif
61.if exists(${.CURDIR}/libexec)
62SUBDIR+= libexec
63.endif
64.if exists(${.CURDIR}/sbin)
65SUBDIR+= sbin
66.endif
cecff5c1 67.if exists(${.CURDIR}/secure) && !defined(NO_CRYPT)
984263bc
MD
68SUBDIR+= secure
69.endif
cecff5c1 70.if exists(${.CURDIR}/share) && !defined(NO_SHARE)
984263bc
MD
71SUBDIR+= share
72.endif
73.if exists(${.CURDIR}/sys)
74SUBDIR+= sys
75.endif
76.if exists(${.CURDIR}/usr.bin)
77SUBDIR+= usr.bin
78.endif
79.if exists(${.CURDIR}/usr.sbin)
80SUBDIR+= usr.sbin
81.endif
82
83# etc must be last for "distribute" to work
84.if exists(${.CURDIR}/etc)
85SUBDIR+= etc
86.endif
87
88# These are last, since it is nice to at least get the base system
89# rebuilt before you do them.
90.if defined(LOCAL_DIRS)
91.for _DIR in ${LOCAL_DIRS}
92.if exists(${.CURDIR}/${_DIR}) & exists(${.CURDIR}/${_DIR}/Makefile)
93SUBDIR+= ${_DIR}
94.endif
95.endfor
96.endif
97
98.if defined(SUBDIR_OVERRIDE)
99SUBDIR= ${SUBDIR_OVERRIDE}
100.endif
101
102.if defined(NOCLEANDIR)
103CLEANDIR= clean cleandepend
104.else
105CLEANDIR= cleandir
106.endif
107
108SUP?= /usr/local/bin/cvsup
109SUPFLAGS?= -g -L 2 -P -
110.if defined(SUPHOST)
111SUPFLAGS+= -h ${SUPHOST}
112.endif
113
d0a8f509
SS
114NOCLEAN?= ${NO_CLEAN}
115
1397f94a
MD
116# Object directory base in primary make. Note that when we rerun make
117# from inside this file we change MAKEOBJDIRPREFIX to the appropriate
118# subdirectory because the rest of the build system needs it that way.
119# The original object directory base is saved in OBJTREE.
120#
984263bc 121MAKEOBJDIRPREFIX?= /usr/obj
1397f94a
MD
122OBJTREE?= ${MAKEOBJDIRPREFIX}
123
124# Used for stage installs and pathing
125#
126DESTDIRBASE?= ${OBJTREE}${.CURDIR}
127
984263bc
MD
128TARGET_ARCH?= ${MACHINE_ARCH}
129.if ${TARGET_ARCH} == ${MACHINE_ARCH}
130TARGET?= ${MACHINE}
131.else
132TARGET?= ${TARGET_ARCH}
133.endif
134.if make(buildworld)
135BUILD_ARCH!= sysctl -n hw.machine_arch
136.if ${MACHINE_ARCH} != ${BUILD_ARCH}
137.error To cross-build, set TARGET_ARCH.
138.endif
139.endif
1397f94a
MD
140
141# BTOOLS (Natively built) All non-cross-development tools that the
142# main build needs. This includes things like 'mkdir' and 'rm'.
143# We will not use the native system's exec path once we start
144# on WORLD. (bootstrap-tools and build-tools or BTOOLS)
145#
146# CTOOLS (Natively built) Cross development tools which are specific
147# to the target architecture.
148#
149# WORLD (Cross built) Our ultimate buildworld, using only BTOOLS and
150# CTOOLS.
151#
152# MACHINE_ARCH Architecture we are building on
153# TARGET_ARCH Architecture we are building for
154#
155BTOOLSDEST= ${DESTDIRBASE}/btools_${MACHINE_ARCH}
156CTOOLSDEST= ${DESTDIRBASE}/ctools_${MACHINE_ARCH}_${TARGET_ARCH}
157WORLDDEST= ${DESTDIRBASE}/world_${TARGET_ARCH}
158
79aa78bc
MD
159# The bootstrap-tools path is used by the bootstrap-tools, build-tools, and
160# cross-tools stages to augment the existing command path to access newer
161# versions of certain utilities such as 'patch' that the cross-tools stage
162# might expect.
163#
164BTOOLSPATH= ${BTOOLSDEST}/usr/sbin:${BTOOLSDEST}/usr/bin:${BTOOLSDEST}/bin:${BTOOLSDEST}/usr/games
165
1397f94a
MD
166# The strict temporary command path contains all binaries required
167# by the buildworld system after the cross-tools stage.
168#
169STRICTTMPPATH= ${CTOOLSDEST}/usr/sbin:${CTOOLSDEST}/usr/bin:${CTOOLSDEST}/bin:${CTOOLSDEST}/usr/games:${BTOOLSDEST}/usr/sbin:${BTOOLSDEST}/usr/bin:${BTOOLSDEST}/bin:${BTOOLSDEST}/usr/games
984263bc
MD
170
171TMPDIR?= /tmp
172TMPPID!= echo $$$$
984263bc
MD
173
174#
175# Building a world goes through the following stages
176#
177# 1. bootstrap-tool stage [BMAKE]
178# This stage is responsible for creating programs that
179# are needed for backward compatibility reasons. They
180# are not built as cross-tools.
181# 2. build-tool stage [TMAKE]
182# This stage is responsible for creating the object
183# tree and building any tools that are needed during
184# the build process.
185# 3. cross-tool stage [XMAKE]
186# This stage is responsible for creating any tools that
187# are needed for cross-builds. A cross-compiler is one
188# of them.
189# 4. world stage [WMAKE]
190# This stage actually builds the world.
191# 5. install stage (optional) [IMAKE]
192# This stage installs a previously built world.
193#
194
984263bc 195# bootstrap-tool stage
1397f94a
MD
196#
197BMAKEENV= MAKEOBJDIRPREFIX=${BTOOLSDEST} \
198 OBJTREE=${OBJTREE} \
44831353 199 DESTDIR=${BTOOLSDEST} \
79aa78bc 200 PATH=${BTOOLSPATH}:${PATH} \
984263bc 201 INSTALL="sh ${.CURDIR}/tools/install.sh"
1397f94a 202
984263bc 203BMAKE= ${BMAKEENV} ${MAKE} -f Makefile.inc1 -DBOOTSTRAPPING \
e486d225
SS
204 -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED \
205 -DNO_WERROR -DNO_NLS
984263bc
MD
206
207# build-tool stage
1397f94a
MD
208#
209TMAKEENV= MAKEOBJDIRPREFIX=${BTOOLSDEST} \
210 OBJTREE=${OBJTREE} \
984263bc 211 DESTDIR= \
79aa78bc 212 PATH=${BTOOLSPATH}:${PATH} \
984263bc 213 INSTALL="sh ${.CURDIR}/tools/install.sh"
1397f94a
MD
214
215TMAKE= ${TMAKEENV} ${MAKE} -f Makefile.inc1 -DBOOTSTRAPPING \
e486d225 216 -DNO_FORTRAN -DNOSHARED
984263bc
MD
217
218# cross-tool stage
1397f94a
MD
219#
220# note: TOOLS_PREFIX points to the obj root holding the cross
44831353
MD
221# compiler binaries, while USRDATA_PREFIX points to the obj root
222# holding the target environment (and also determines where cross-built
223# libraries, crt*.o, and include files are installed).
1397f94a
MD
224#
225XMAKEENV= MAKEOBJDIRPREFIX=${CTOOLSDEST} \
226 OBJTREE=${OBJTREE} \
227 DESTDIR=${CTOOLSDEST} \
228 INSTALL="sh ${.CURDIR}/tools/install.sh" \
229 TOOLS_PREFIX=${CTOOLSDEST} \
79aa78bc
MD
230 USRDATA_PREFIX=${WORLDDEST} \
231 PATH=${BTOOLSPATH}:${PATH}
1397f94a 232
44831353 233XMAKE= ${XMAKEENV} ${MAKE} -f Makefile.inc1 -DNO_FORTRAN -DNO_GDB \
e486d225 234 -DBOOTSTRAPPING -DNOSHARED
1397f94a
MD
235
236# world stage, note the strict path and note that TOOLS_PREFIX is left
237# unset and USRDATA_PREFIX (which defaults to TOOLS_PREFIX) is set to empty,
238# which is primarily for the compiler so it targets / (e.g. /usr/<blah>)
239# for both binary and library paths, even though it is being compiled to
240# WORLDDEST. None of the programs in the world stage are ever actually
241# executed during the buildworld/installworld.
242#
243CROSSENV= MAKEOBJDIRPREFIX=${WORLDDEST} \
244 OBJTREE=${OBJTREE} \
245 MACHINE_ARCH=${TARGET_ARCH} \
246 MACHINE=${TARGET} \
82cda618 247 OBJFORMAT_PATH=${CTOOLSDEST}
984263bc 248
984263bc 249WMAKEENV= ${CROSSENV} \
1397f94a 250 DESTDIR=${WORLDDEST} \
984263bc 251 INSTALL="sh ${.CURDIR}/tools/install.sh" \
1397f94a
MD
252 PATH=${STRICTTMPPATH}
253
984263bc
MD
254WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1
255
256# install stage
b07b69cc 257#
984263bc 258IMAKEENV= ${CROSSENV} \
1397f94a 259 PATH=${STRICTTMPPATH}
984263bc
MD
260IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1
261
262# kernel stage
b07b69cc
MD
263#
264KMAKEENV= ${WMAKEENV}
984263bc 265
984263bc
MD
266# buildworld
267#
268# Attempt to rebuild the entire system, with reasonable chance of
269# success, regardless of how old your existing system is.
270#
271_worldtmp:
272 @echo
273 @echo "--------------------------------------------------------------"
274 @echo ">>> Rebuilding the temporary build tree"
275 @echo "--------------------------------------------------------------"
276.if !defined(NOCLEAN)
1397f94a 277 rm -rf ${BTOOLSDEST} ${CTOOLSDEST} ${WORLDDEST}
984263bc
MD
278.else
279 # XXX - These two can depend on any header file.
280 rm -f ${OBJTREE}${.CURDIR}/usr.bin/kdump/ioctl.c
281 rm -f ${OBJTREE}${.CURDIR}/usr.bin/truss/ioctl.c
282.endif
1397f94a
MD
283 mkdir -p ${DESTDIRBASE} ${BTOOLSDEST} ${CTOOLSDEST} ${WORLDDEST}
284.for _dir in ${WORLDDEST} ${BTOOLSDEST} ${CTOOLSDEST}
285 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \
286 -p ${_dir}/ > /dev/null
287 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
288 -p ${_dir}/usr > /dev/null
984263bc 289.endfor
1397f94a
MD
290 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
291 -p ${WORLDDEST}/usr/include > /dev/null
062db326 292 ${LN} -sf ${.CURDIR}/sys ${WORLDDEST}
1397f94a 293
984263bc
MD
294_bootstrap-tools:
295 @echo
296 @echo "--------------------------------------------------------------"
297 @echo ">>> stage 1: bootstrap tools"
298 @echo "--------------------------------------------------------------"
299 cd ${.CURDIR}; ${BMAKE} bootstrap-tools
300_cleanobj:
984263bc
MD
301 @echo
302 @echo "--------------------------------------------------------------"
1397f94a 303 @echo ">>> stage 2a: cleaning up the object tree"
984263bc
MD
304 @echo "--------------------------------------------------------------"
305 cd ${.CURDIR}; ${WMAKE} ${CLEANDIR:S/^/par-/}
984263bc
MD
306_obj:
307 @echo
308 @echo "--------------------------------------------------------------"
1397f94a 309 @echo ">>> stage 2b: rebuilding the object tree"
984263bc
MD
310 @echo "--------------------------------------------------------------"
311 cd ${.CURDIR}; ${WMAKE} par-obj
312_build-tools:
313 @echo
314 @echo "--------------------------------------------------------------"
1397f94a 315 @echo ">>> stage 2c: build tools"
984263bc
MD
316 @echo "--------------------------------------------------------------"
317 cd ${.CURDIR}; ${TMAKE} build-tools
318_cross-tools:
319 @echo
320 @echo "--------------------------------------------------------------"
321 @echo ">>> stage 3: cross tools"
322 @echo "--------------------------------------------------------------"
323 cd ${.CURDIR}; ${XMAKE} cross-tools
324_includes:
325 @echo
326 @echo "--------------------------------------------------------------"
1397f94a 327 @echo ">>> stage 4a: populating ${WORLDDEST}/usr/include"
984263bc
MD
328 @echo "--------------------------------------------------------------"
329 cd ${.CURDIR}; ${WMAKE} SHARED=symlinks par-includes
330_libraries:
331 @echo
332 @echo "--------------------------------------------------------------"
1397f94a 333 @echo ">>> stage 4b: building libraries"
984263bc
MD
334 @echo "--------------------------------------------------------------"
335 cd ${.CURDIR}; ${WMAKE} -DNOHTML -DNOINFO -DNOMAN -DNOFSCHG libraries
336_depend:
337 @echo
338 @echo "--------------------------------------------------------------"
1397f94a 339 @echo ">>> stage 4c: make dependencies"
984263bc
MD
340 @echo "--------------------------------------------------------------"
341 cd ${.CURDIR}; ${WMAKE} par-depend
342everything:
343 @echo
344 @echo "--------------------------------------------------------------"
1397f94a 345 @echo ">>> stage 4d: building everything.."
984263bc
MD
346 @echo "--------------------------------------------------------------"
347 cd ${.CURDIR}; ${WMAKE} all
348
1397f94a
MD
349# note: buildworld no longer depends on _cleanobj because we rm -rf the
350# entire object tree and built the bootstrap tools in a different location.
351#
352# buildworld - build everything from scratch
353# quickworld - skip the bootstrap, build, and cross-build steps
354# realquickworld - skip the bootstrap, build, crossbuild, and depend step.
355#
356# note: we include _obj in realquickworld to prevent accidental creation
357# of files in /usr/src.
984263bc
MD
358
359WMAKE_TGTS=
360.if !defined(SUBDIR_OVERRIDE)
361WMAKE_TGTS+= _worldtmp _bootstrap-tools
362.endif
1397f94a 363WMAKE_TGTS+= _obj _build-tools
984263bc
MD
364.if !defined(SUBDIR_OVERRIDE)
365WMAKE_TGTS+= _cross-tools
366.endif
367WMAKE_TGTS+= _includes _libraries _depend everything
368
369buildworld: ${WMAKE_TGTS}
1397f94a
MD
370
371quickworld: _obj _includes _libraries _depend everything
372
373realquickworld: _obj _includes _libraries everything
374
375crossworld: _worldtmp _bootstrap-tools _obj _build-tools _cross-tools
376
984263bc
MD
377.ORDER: ${WMAKE_TGTS}
378
379#
380# installcheck
381#
382# Checks to be sure system is ready for installworld
383#
384installcheck:
385.if !defined(NO_SENDMAIL)
f35282e3
MD
386 @pw usershow smmsp || (echo "You may need to run 'make preupgrade' first"; exit 1)
387 @pw groupshow smmsp || (echo "You may need to run 'make preupgrade' first"; exit 1)
984263bc 388.endif
f35282e3
MD
389 @pw usershow _pflogd || (echo "You may need to run 'make preupgrade' first"; exit 1)
390 @pw usershow _ntp || (echo "You may need to run 'make preupgrade' first"; exit 1)
391 @pw groupshow authpf || (echo "You may need to run 'make preupgrade' first"; exit 1)
392 @pw groupshow _pflogd || (echo "You may need to run 'make preupgrade' first"; exit 1)
393 @pw groupshow _ntp || (echo "You may need to run 'make preupgrade' first"; exit 1)
9b815a46 394.if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/"
6d29307c 395 @case `uname -r` in 1.2*|1.3-*|1.3.0-*|1.3.1-*|1.3.2-*|1.3.3-*|1.3.4-*) echo "You must upgrade your kernel to at least 1.3.5 and reboot before you can safely installworld, due to stat(2) and dirent ABI changes" ; exit 1;; esac
9b815a46 396.endif
f35282e3 397
984263bc
MD
398# distributeworld
399#
400# Distributes everything compiled by a `buildworld'.
401#
402# installworld
403#
404# Installs everything compiled by a 'buildworld'.
405#
406distributeworld installworld: installcheck
984263bc 407 cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}
984263bc
MD
408
409#
410# reinstall
411#
412# If you have a build server, you can NFS mount the source and obj directories
413# and do a 'make reinstall' on the *client* to install new binaries from the
414# most recent server build.
415#
416reinstall:
417 @echo "--------------------------------------------------------------"
418 @echo ">>> Making hierarchy"
419 @echo "--------------------------------------------------------------"
420 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 hierarchy
421 @echo
422 @echo "--------------------------------------------------------------"
423 @echo ">>> Installing everything.."
424 @echo "--------------------------------------------------------------"
425 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
426.if !defined(NOMAN) && !defined(NO_MAKEDB_RUN)
427 @echo
428 @echo "--------------------------------------------------------------"
429 @echo ">>> Rebuilding man page indices"
430 @echo "--------------------------------------------------------------"
431 cd ${.CURDIR}/share/man; ${MAKE} makedb
432.endif
433
434redistribute:
435 @echo "--------------------------------------------------------------"
436 @echo ">>> Distributing everything.."
437 @echo "--------------------------------------------------------------"
438 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute
439
440#
fc7aca3e 441# buildkernel, nativekernel, quickkernel, and installkernel
984263bc
MD
442#
443# Which kernels to build and/or install is specified by setting
444# KERNCONF. If not defined a GENERIC kernel is built/installed.
445# Only the existing (depending TARGET) config files are used
446# for building kernels and only the first of these is designated
447# as the one being installed.
448#
c2c83759
MD
449# You can specify INSTALLSTRIPPED=1 if you wish the installed
450# kernel and modules to be stripped of its debug info (required
451# symbols are left intact). You can specify INSTALLSTRIPPEDMODULES
452# if you only want to strip the modules of their debug info. These
453# only apply if you have DEBUG=-g in your kernel config or make line.
454#
984263bc
MD
455# Note that we have to use TARGET instead of TARGET_ARCH when
456# we're in kernel-land. Since only TARGET_ARCH is (expected) to
457# be set to cross-build, we have to make sure TARGET is set
458# properly.
459
460.if !defined(KERNCONF) && defined(KERNEL)
461KERNCONF= ${KERNEL}
462KERNWARN= yes
463.else
464KERNCONF?= GENERIC
465.endif
466INSTKERNNAME?= kernel
467
468KRNLSRCDIR= ${.CURDIR}/sys
469KRNLCONFDIR= ${KRNLSRCDIR}/${TARGET}/conf
470KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR}
471KERNCONFDIR?= ${KRNLCONFDIR}
472
473BUILDKERNELS=
474INSTALLKERNEL=
475.for _kernel in ${KERNCONF}
476.if exists(${KERNCONFDIR}/${_kernel})
477BUILDKERNELS+= ${_kernel}
478.if empty(INSTALLKERNEL)
479INSTALLKERNEL= ${_kernel}
480.endif
481.endif
482.endfor
483
9a359590
MD
484# kernel version numbers survive rm -rf
485#
486.for _kernel in ${BUILDKERNELS}
487.if exists(${KRNLOBJDIR}/${_kernel}/version)
488KERNEL_VERSION_${_kernel} != cat ${KRNLOBJDIR}/${_kernel}/version
489.endif
490.endfor
491
984263bc
MD
492#
493# buildkernel
494#
495# Builds all kernels defined by BUILDKERNELS.
496#
fc7aca3e 497bk_tools:
e05c8c84
MD
498 @if [ ! -f ${WORLDDEST}/.libraries_done ]; then \
499 echo "You must buildworld before buildkernel. If you wish"; \
500 echo "to build a kernel using native tools, config it manually"; \
501 echo "or use the nativekernel target if you are in a rush"; \
502 exit 1; \
c2c83759
MD
503 fi
504
505maybe_bk_tools:
506.for _kernel in ${BUILDKERNELS}
507 @if [ ! -f ${KRNLOBJDIR}/${_kernel}/.nativekernel_run ]; then \
508 if [ ! -f ${WORLDDEST}/.libraries_done ]; then \
509 echo "The kernel was build using buildworld tools which no" ; \
510 echo "longer appear to exist, quickkernel failed!" ; \
511 exit 1; \
512 fi; \
513 fi
514.endfor
e05c8c84 515
fc7aca3e 516bk_build_list:
984263bc
MD
517.if empty(BUILDKERNELS)
518 @echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
519 @false
520.endif
fc7aca3e
MD
521
522bk_kernwarn:
984263bc
MD
523.if defined(KERNWARN)
524 @echo "--------------------------------------------------------------"
525 @echo ">>> WARNING: KERNEL= setting should be changed to KERNCONF="
526 @echo "--------------------------------------------------------------"
527 @sleep 3
528.endif
529 @echo
fc7aca3e
MD
530
531# The buildkernel target rebuilds the specified kernels from scratch
532# using the crossbuild tools generated by the last buildworld. It is
533# the safest (but also the most time consuming) way to build a new kernel.
534#
535buildkernel: bk_tools bk_build_list bk_kernwarn
984263bc
MD
536.for _kernel in ${BUILDKERNELS}
537 @echo "--------------------------------------------------------------"
538 @echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`"
539 @echo "--------------------------------------------------------------"
540 @echo "===> ${_kernel}"
fc7aca3e
MD
541.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
542 rm -rf ${KRNLOBJDIR}/${_kernel}
543.else
e05c8c84 544 @if [ -f ${KRNLOBJDIR}/${_kernel}/.nativekernel_run ]; then \
fc7aca3e 545 echo "YOU ARE REBUILDING WITH BUILDKERNEL, REMOVING OLD NATIVEKERNEL BUILD"; \
e05c8c84 546 rm -rf ${KRNLOBJDIR}/${_kernel}; fi
fc7aca3e 547.endif
984263bc
MD
548 mkdir -p ${KRNLOBJDIR}
549.if !defined(NO_KERNELCONFIG)
550 cd ${KRNLCONFDIR}; \
1397f94a 551 PATH=${STRICTTMPPATH} \
984263bc
MD
552 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
553 ${KERNCONFDIR}/${_kernel}
9a359590
MD
554.endif
555.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN) && defined(KERNEL_VERSION_${_kernel})
556 echo ${KERNEL_VERSION_${_kernel}} > ${KRNLOBJDIR}/${_kernel}/version
984263bc 557.endif
e05c8c84 558 touch ${KRNLOBJDIR}/${_kernel}/.buildkernel_run
984263bc 559 cd ${KRNLOBJDIR}/${_kernel}; \
9f3906fd
MD
560 MAKESRCPATH=${KRNLSRCDIR}/dev/disk/aic7xxx/aicasm \
561 ${MAKE} -DBOOTSTRAPPING -f ${KRNLSRCDIR}/dev/disk/aic7xxx/aicasm/Makefile
984263bc
MD
562.if !defined(NO_KERNELDEPEND)
563 cd ${KRNLOBJDIR}/${_kernel}; \
564 ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} depend
565.endif
566 cd ${KRNLOBJDIR}/${_kernel}; \
567 ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all
568 @echo "--------------------------------------------------------------"
569 @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
570 @echo "--------------------------------------------------------------"
571.endfor
572
fc7aca3e
MD
573# The nativekernel target rebuilds the specified kernels from scratch
574# using the systems standard compiler rather then using the crossbuild
575# tools generated by the last buildworld. This is fairly safe if your
576# system is reasonable up-to-date.
e05c8c84 577#
fc7aca3e 578nativekernel: bk_build_list bk_kernwarn
e05c8c84
MD
579.for _kernel in ${BUILDKERNELS}
580 @echo "--------------------------------------------------------------"
581 @echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`"
582 @echo "--------------------------------------------------------------"
583 @echo "===> ${_kernel}"
fc7aca3e
MD
584.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
585 rm -rf ${KRNLOBJDIR}/${_kernel}
586.else
e05c8c84 587 @if [ -f ${KRNLOBJDIR}/${_kernel}/.buildkernel_run ]; then \
fc7aca3e 588 echo "YOU ARE REBUILDING WITH NATIVEKERNEL, REMOVING OLD BUILDKERNEL BUILD"; \
e05c8c84 589 rm -rf ${KRNLOBJDIR}/${_kernel}; fi
fc7aca3e 590.endif
e05c8c84
MD
591 mkdir -p ${KRNLOBJDIR}
592.if !defined(NO_KERNELCONFIG)
593 cd ${KRNLCONFDIR}; \
594 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
595 ${KERNCONFDIR}/${_kernel}
9a359590
MD
596.endif
597.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN) && defined(KERNEL_VERSION_${_kernel})
598 echo ${KERNEL_VERSION_${_kernel}} > ${KRNLOBJDIR}/${_kernel}/version
e05c8c84
MD
599.endif
600 touch ${KRNLOBJDIR}/${_kernel}/.nativekernel_run
e05c8c84
MD
601 cd ${KRNLOBJDIR}/${_kernel}; \
602 MAKESRCPATH=${KRNLSRCDIR}/dev/disk/aic7xxx/aicasm \
603 ${MAKE} -DBOOTSTRAPPING -f ${KRNLSRCDIR}/dev/disk/aic7xxx/aicasm/Makefile
604.if !defined(NO_KERNELDEPEND)
605 cd ${KRNLOBJDIR}/${_kernel}; \
606 ${MAKE} KERNEL=${INSTKERNNAME} depend
607.endif
608 cd ${KRNLOBJDIR}/${_kernel}; \
609 ${MAKE} KERNEL=${INSTKERNNAME} all
610 @echo "--------------------------------------------------------------"
611 @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
612 @echo "--------------------------------------------------------------"
613.endfor
614
fc7aca3e
MD
615# The quickkernel target rebuilds the specified kernels as quickly
616# as possible. It will use the native tools or the buildworld cross tools
617# based on whether the kernel was originally generated via buildkernel or
618# nativekernel. Config is rerun but the object hierarchy is not rebuilt,
619# nor is the make depend step run.
984263bc 620#
c2c83759 621quickkernel: maybe_bk_tools bk_build_list bk_kernwarn
fc7aca3e
MD
622.for _kernel in ${BUILDKERNELS}
623 @echo "--------------------------------------------------------------"
624 @echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`"
625 @echo "--------------------------------------------------------------"
626 @echo "===> ${_kernel}"
627.if exists(${KRNLOBJDIR}/${_kernel}/.buildkernel_run)
628.if !defined(NO_KERNELCONFIG)
629 cd ${KRNLCONFDIR}; \
630 PATH=${STRICTTMPPATH} \
631 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
632 ${KERNCONFDIR}/${_kernel}
633.endif
634 cd ${KRNLOBJDIR}/${_kernel}; \
635 ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all
636.else
637.if !defined(NO_KERNELCONFIG)
638 cd ${KRNLCONFDIR}; \
639 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
640 ${KERNCONFDIR}/${_kernel}
641.endif
642 cd ${KRNLOBJDIR}/${_kernel}; \
643 ${MAKE} KERNEL=${INSTKERNNAME} all
644.endif
645 @echo "--------------------------------------------------------------"
646 @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
647 @echo "--------------------------------------------------------------"
648.endfor
649
650
984263bc
MD
651# installkernel
652#
653# Install the kernel defined by INSTALLKERNEL
654#
655installkernel reinstallkernel:
c2c83759 656.if exists(${KRNLOBJDIR}/${_kernel}/.buildkernel_run)
984263bc
MD
657 cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
658 ${CROSSENV} ${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
c2c83759
MD
659.else
660 cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
661 ${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
662.endif
984263bc
MD
663
664#
665# update
666#
667# Update the source tree, by running sup and/or running cvs to update to the
668# latest copy.
669#
670update:
671.if defined(SUP_UPDATE)
672 @echo "--------------------------------------------------------------"
673 @echo ">>> Running ${SUP}"
674 @echo "--------------------------------------------------------------"
675.if defined(SUPFILE)
676 @${SUP} ${SUPFLAGS} ${SUPFILE}
677.endif
678.if defined(SUPFILE1)
679 @${SUP} ${SUPFLAGS} ${SUPFILE1}
680.endif
681.if defined(SUPFILE2)
682 @${SUP} ${SUPFLAGS} ${SUPFILE2}
683.endif
684.if defined(PORTSSUPFILE) && !defined(NO_PORTSUPDATE)
685 @${SUP} ${SUPFLAGS} ${PORTSSUPFILE}
686.endif
687.if defined(DOCSUPFILE) && !defined(NO_DOCUPDATE)
688 @${SUP} ${SUPFLAGS} ${DOCSUPFILE}
689.endif
690.endif
691.if defined(CVS_UPDATE)
692 @echo "--------------------------------------------------------------"
9a359590 693 @echo ">>> Updating ${.CURDIR} from cvs repository `cat ${.CURDIR}/CVS/Root`"
984263bc 694 @echo "--------------------------------------------------------------"
9a359590
MD
695 @sleep 2
696 cd ${.CURDIR}; cvs -q update -P -d
984263bc
MD
697.endif
698
699#
700# most
701#
702# Build most of the user binaries on the existing system libs and includes.
703#
704most:
705 @echo "--------------------------------------------------------------"
706 @echo ">>> Building programs only"
707 @echo "--------------------------------------------------------------"
708.for _dir in bin sbin libexec usr.bin usr.sbin gnu/libexec gnu/usr.bin gnu/usr.sbin
709 cd ${.CURDIR}/${_dir}; ${MAKE} DIRPRFX=${_dir}/ all
710.endfor
711
712#
713# installmost
714#
715# Install the binaries built by the 'most' target. This does not include
716# libraries or include files.
717#
718installmost:
719 @echo "--------------------------------------------------------------"
720 @echo ">>> Installing programs only"
721 @echo "--------------------------------------------------------------"
722.for _dir in bin sbin libexec usr.bin usr.sbin gnu/libexec gnu/usr.bin gnu/usr.sbin
723 cd ${.CURDIR}/${_dir}; ${MAKE} DIRPRFX=${_dir}/ install
724.endfor
725
726#
727# ------------------------------------------------------------------------
728#
729# From here onwards are utility targets used by the 'make world' and
730# related targets. If your 'world' breaks, you may like to try to fix
731# the problem and manually run the following targets to attempt to
732# complete the build. Beware, this is *not* guaranteed to work, you
733# need to have a pretty good grip on the current state of the system
734# to attempt to manually finish it. If in doubt, 'make world' again.
735#
736
79aa78bc
MD
737# bootstrap-tools: Build all tools required to build all tools. Note that
738# order is important in a number of cases and also note that the bootstrap
739# and build tools stages have access to earlier binaries they themselves
740# had generated.
984263bc 741#
79aa78bc
MD
742# patch: older patch's do not have -i. This program must be built
743# first so other bootstrap tools that need to apply patches
744# can use it.
17030342
MD
745# [x]install: dependancies on various new install features
746# rpcgen: old rpcgen used a hardwired cpp path, newer OBJFORMAT_PATH
747# envs are not compatible with older objformat binaries.
748#
cecff5c1 749.if exists(${.CURDIR}/games) && !defined(NO_GAMES)
984263bc
MD
750_strfile= games/fortune/strfile
751.endif
752
753bootstrap-tools:
062db326 754 ${LN} -fs /bin/date ${BTOOLSDEST}/bin/date
1397f94a 755.for _tool in ${_strfile} \
1a7434d5 756 usr.bin/patch \
1397f94a 757 bin/chmod bin/cp bin/dd bin/mkdir bin/rm bin/echo bin/test \
11ba1493 758 bin/cat bin/ln bin/mv bin/csh bin/expr bin/sh \
b07b69cc 759 bin/hostname bin/kill \
1397f94a 760 usr.bin/yacc usr.bin/colldef usr.bin/uudecode usr.bin/xinstall \
1320c43d 761 usr.bin/m4 usr.bin/rpcgen usr.bin/make usr.bin/awk usr.bin/stat \
1397f94a
MD
762 usr.bin/find usr.bin/lex usr.bin/sed usr.bin/uname usr.bin/touch \
763 usr.bin/mkdep usr.bin/mktemp usr.bin/lorder usr.bin/file2c \
764 usr.bin/tsort usr.bin/tr usr.bin/join usr.bin/wc usr.bin/basename \
765 usr.bin/gencat usr.bin/chflags usr.bin/expand usr.bin/paste \
b07b69cc 766 usr.bin/mklocale usr.bin/uuencode usr.bin/compile_et usr.bin/hexdump \
1397f94a 767 usr.bin/vi usr.bin/cap_mkdb usr.bin/vgrind usr.bin/true usr.bin/false \
c02263c2 768 usr.bin/cmp usr.bin/xargs usr.bin/id usr.bin/env usr.bin/dirname \
b6ef15c2 769 usr.bin/tail \
1397f94a 770 usr.sbin/chown usr.sbin/mtree usr.sbin/config \
8a48ec64 771 usr.sbin/btxld usr.sbin/pwd_mkdb usr.sbin/zic usr.sbin/makewhatis \
dea0b85a 772 gnu/usr.bin/texinfo gnu/usr.bin/grep gnu/usr.bin/sort \
32a7b49a 773 usr.bin/gzip usr.bin/bzip2 usr.bin/mkcsmapper usr.bin/mkesdb
1397f94a 774 ${ECHODIR} "===> ${_tool} (bootstrap-tools)"; \
984263bc
MD
775 cd ${.CURDIR}/${_tool}; \
776 ${MAKE} DIRPRFX=${_tool}/ obj; \
777 ${MAKE} DIRPRFX=${_tool}/ depend; \
778 ${MAKE} DIRPRFX=${_tool}/ all; \
1397f94a 779 ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${BTOOLSDEST} install
984263bc 780.endfor
e05c8c84 781 touch ${BTOOLSDEST}/.bootstrap_done
984263bc 782
bceb727e 783# build-tools: Build special purpose build tools.
984263bc 784#
1397f94a
MD
785# XXX we may be able to remove or consolidate this into bootstrap-tools
786# now that we have the native helper (.nx/.no) infrastructure.
787#
cecff5c1 788.if exists(${.CURDIR}/games) && !defined(NO_GAMES)
984263bc
MD
789_games= games/adventure games/hack games/phantasia
790.endif
791
cecff5c1 792.if exists(${.CURDIR}/share) && !defined(NO_SHARE)
984263bc
MD
793_share= share/syscons/scrnmaps
794.endif
795
4db2a28c 796_gcc34_cross= gnu/usr.bin/cc34
c32e17fc 797_gcc34_tools= gnu/usr.bin/cc34/cc_prep gnu/usr.bin/cc34/cc_tools
29d48e65
SS
798.if defined(WANT_GCC40)
799_gcc40_cross= gnu/usr.bin/cc40
800_gcc40_tools= gnu/usr.bin/cc40/cc_prep gnu/usr.bin/cc40/cc_tools
801.endif
4f50e548 802_binutils= gnu/usr.bin/binutils215
17030342 803
984263bc 804.if !defined(NO_FORTRAN)
4db2a28c 805_fortran= gnu/usr.bin/cc34/f771
17030342 806.endif
984263bc 807
984263bc 808.if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
cecff5c1 809 !defined(NO_CRYPT) && defined(WANT_KERBEROS)
92b9cead 810_libkrb5= kerberos5/tools kerberos5/lib/libroken kerberos5/lib/libvers \
984263bc
MD
811 kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libsl
812.endif
813
984263bc 814build-tools:
29d48e65 815.for _tool in ${_gcc34_tools} ${_gcc40_tools} ${_fortran} ${_libkrb5} ${_share}
1397f94a 816 ${ECHODIR} "===> ${_tool} (build-tools)"; \
984263bc
MD
817 cd ${.CURDIR}/${_tool}; \
818 ${MAKE} DIRPRFX=${_tool}/ obj; \
1397f94a
MD
819 ${MAKE} DIRPRFX=${_tool}/ depend; \
820 ${MAKE} DIRPRFX=${_tool}/ all; \
821 ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${BTOOLSDEST} install
984263bc 822.endfor
e05c8c84 823 touch ${BTOOLSDEST}/.build_done
984263bc
MD
824
825#
826# cross-tools: Build cross-building tools
827#
984263bc
MD
828.if ${TARGET_ARCH} == "i386" && ${MACHINE_ARCH} != "i386"
829_btxld= usr.sbin/btxld
830.endif
831
832cross-tools:
da5b39ba 833.for _tool in ${_btxld} ${_binutils} \
17030342 834 usr.bin/objformat usr.sbin/crunch/crunchide \
29d48e65 835 ${_gcc34_cross} ${_gcc40_cross}
1397f94a 836 ${ECHODIR} "===> ${_tool} (cross-tools)"; \
984263bc
MD
837 cd ${.CURDIR}/${_tool}; \
838 ${MAKE} DIRPRFX=${_tool}/ obj; \
839 ${MAKE} DIRPRFX=${_tool}/ depend; \
840 ${MAKE} DIRPRFX=${_tool}/ all; \
1397f94a 841 ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${CTOOLSDEST} install
984263bc 842.endfor
e05c8c84 843 touch ${CTOOLSDEST}/.cross_done
984263bc
MD
844
845#
846# hierarchy - ensure that all the needed directories are present
847#
848hierarchy:
849 cd ${.CURDIR}/etc; ${MAKE} distrib-dirs
850
851#
852# libraries - build all libraries, and install them under ${DESTDIR}.
853#
854# The list of libraries with dependents (${_prebuild_libs}) and their
855# interdependencies (__L) are built automatically by the
856# ${.CURDIR}/tools/make_libdeps.sh script.
857#
5228fe46
MD
858# .makeenv does not work when bootstrapping from 4.x, so we must be sure
859# to specify the correct CCVER or 'cc' will not exec the correct compiler.
860#
984263bc
MD
861libraries:
862 cd ${.CURDIR}; \
4db2a28c 863 HOST_CCVER=${HOST_CCVER} CCVER=gcc34 \
29d48e65
SS
864 ${MAKE} -f Makefile.inc1 _startup_libs34;
865.if defined(WANT_GCC40)
866 cd ${.CURDIR}; \
867 HOST_CCVER=${HOST_CCVER} CCVER=gcc40 \
868 ${MAKE} -f Makefile.inc1 _startup_libs40;
869.endif
870 cd ${.CURDIR}; \
984263bc
MD
871 ${MAKE} -f Makefile.inc1 _startup_libs; \
872 ${MAKE} -f Makefile.inc1 _prebuild_libs; \
873 ${MAKE} -f Makefile.inc1 _generic_libs;
e05c8c84 874 touch ${WORLDDEST}/.libraries_done
984263bc
MD
875
876# These dependencies are not automatically generated:
877#
bceb727e
JS
878# gnu/lib/${CCVER}/libgcc and lib/csu must be built before all
879# shared libraries for ELF. The target for _startup_libs34 is
29d48e65 880# specifically built using gcc34. Same goes for _startup_libs40.
984263bc 881#
4db2a28c 882_startup_libs34= gnu/lib/gcc34/libgcc
29d48e65 883_startup_libs40= gnu/lib/gcc40/libgcc
5228fe46 884_startup_libs= lib/csu/${MACHINE_ARCH}
d2a4c620 885_startup_libs+= lib/csu/common lib/libc lib/libc_rtld
984263bc 886
faeb88ed 887_prebuild_libs= lib/libarchive
0b153c05 888_prebuild_libs+= lib/libutil
984263bc
MD
889
890_generic_libs= gnu/lib
891
cecff5c1 892.if !defined(NO_CRYPT) && defined(WANT_KERBEROS)
8a443844 893_prebuild_libs+= kerberos5/tools
984263bc
MD
894_prebuild_libs+= kerberos5/lib/libasn1
895_prebuild_libs+= kerberos5/lib/libgssapi
896_prebuild_libs+= kerberos5/lib/libkrb5
897_prebuild_libs+= kerberos5/lib/libroken
898_generic_libs+= kerberos5/lib
899.endif
900
984263bc 901_prebuild_libs+= lib/libcom_err lib/libcrypt lib/libmd \
7d1ab061 902 lib/libncurses/libncurses lib/libopie lib/libradius \
b34b60bc 903 lib/libskey lib/libtacplus lib/libz lib/libm lib/libpam
984263bc
MD
904
905lib/libopie__L lib/libradius__L lib/libtacplus__L: lib/libmd__L
906lib/libskey__L: lib/libcrypt__L lib/libmd__L
907
908_generic_libs+= lib
909
cecff5c1 910.if !defined(NO_CRYPT)
984263bc
MD
911.if !defined(NO_OPENSSL)
912_prebuild_libs+= secure/lib/libcrypto secure/lib/libssl
913.if !defined(NO_OPENSSH)
914_prebuild_libs+= secure/lib/libssh
915secure/lib/libssh__L: secure/lib/libcrypto__L lib/libz__L
916.endif
917.endif
918_generic_libs+= secure/lib
919.endif
920
921_generic_libs+= usr.bin/lex/lib
922
29d48e65 923.for _lib in ${_startup_libs34} ${_startup_libs40} \
4db2a28c 924 ${_startup_libs} ${_prebuild_libs} ${_generic_libs}
984263bc
MD
925${_lib}__L: .PHONY
926.if exists(${.CURDIR}/${_lib})
927 ${ECHODIR} "===> ${_lib}"; \
928 cd ${.CURDIR}/${_lib}; \
929 ${MAKE} DIRPRFX=${_lib}/ depend; \
930 ${MAKE} DIRPRFX=${_lib}/ all; \
931 ${MAKE} DIRPRFX=${_lib}/ install
932.endif
933.endfor
934
935_startup_libs: ${_startup_libs:S/$/__L/}
4db2a28c 936_startup_libs34: ${_startup_libs34:S/$/__L/}
29d48e65 937_startup_libs40: ${_startup_libs40:S/$/__L/}
984263bc
MD
938_prebuild_libs: ${_prebuild_libs:S/$/__L/}
939_generic_libs: ${_generic_libs:S/$/__L/}
940
1397f94a
MD
941# library targets must be ordered because there are inter-library
942# races (e.g. generation of tconfig.h)
943#
4db2a28c 944.ORDER: ${_startup_libs34:S/$/__L/}
29d48e65 945.ORDER: ${_startup_libs40:S/$/__L/}
1397f94a
MD
946.ORDER: ${_startup_libs:S/$/__L/}
947.ORDER: ${_prebuild_libs:S/$/__L/}
948.ORDER: ${_generic_libs:S/$/__L/}
949
950.for __target in clean cleandepend cleandir obj depend includes
984263bc
MD
951.for entry in ${SUBDIR}
952${entry}.${__target}__D: .PHONY
953 @if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \
954 ${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH}"; \
955 edir=${entry}.${MACHINE_ARCH}; \
956 cd ${.CURDIR}/$${edir}; \
957 else \
958 ${ECHODIR} "===> ${DIRPRFX}${entry}"; \
959 edir=${entry}; \
960 cd ${.CURDIR}/$${edir}; \
961 fi; \
962 ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
963.endfor
964par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
1397f94a 965.ORDER: ${SUBDIR:S/$/.${__target}__D/}
984263bc 966.endfor
1397f94a 967.ORDER: par-clean par-cleandepend par-cleandir par-obj par-depend par-includes
984263bc 968
cb0f1574
MD
969# The wmake target is used by /usr/bin/wmake to run make in a
970# world build environment.
971#
972wmake:
1397f94a 973 @echo '${WMAKEENV} ${MAKE} -m ${.CURDIR}/share/mk ${WMAKE_ARGS}'
cb0f1574 974
5c7da0d7
MD
975wmakeenv:
976 @echo '${WMAKEENV} /bin/sh'
977
1397f94a
MD
978bmake:
979 @echo '${BMAKEENV} ${MAKE} -m ${.CURDIR}/share/mk ${BMAKE_ARGS}'
980
17030342
MD
981bmakeenv:
982 @echo '${BMAKEENV} /bin/sh'
983
1397f94a
MD
984tmake:
985 @echo '${TMAKEENV} ${MAKE} -m ${.CURDIR}/share/mk ${TMAKE_ARGS}'
986
17030342
MD
987tmakeenv:
988 @echo '${TMAKEENV} /bin/sh'
989
984263bc 990.include <bsd.subdir.mk>
cb0f1574 991