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