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