1#
2# $FreeBSD: head/Makefile 218524 2011-02-10 18:54:52Z jhb $
3#
4# The user-driven targets are:
5#
6# universe - *Really* build *everything* (buildworld and
7# all kernels on all architectures).
8# tinderbox - Same as universe, but presents a list of failed build
9# targets and exits with an error if there were any.
10# buildworld - Rebuild *everything*, including glue to help do
--- 14 unchanged lines hidden (view full) ---
25# check-old-files - List obsolete files.
26# check-old-libs - List obsolete libraries.
27# delete-old - Delete obsolete directories/files/libraries.
28# delete-old-dirs - Delete obsolete directories.
29# delete-old-files - Delete obsolete files.
30# delete-old-libs - Delete obsolete libraries.
31# targets - Print a list of supported TARGET/TARGET_ARCH pairs
32# for world and kernel targets.
33# toolchains - Build a toolchain for all world and kernel targets.
34#
35# This makefile is simple by design. The FreeBSD make automatically reads
36# the /usr/share/mk/sys.mk unless the -m argument is specified on the
37# command line. By keeping this makefile simple, it doesn't matter too
38# much how different the installed mk files are from those in the source
39# tree. This makefile executes a child make process, forcing it to use
40# the mk files from the source tree which are supposed to DTRT.
41#
--- 261 unchanged lines hidden (view full) ---
303 @echo "--------------------------------------------------------------"
304 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
305 ${MMAKE} obj && \
306 ${MMAKE} depend && \
307 ${MMAKE} all && \
308 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
309
310tinderbox:
311 @cd ${.CURDIR} && ${MAKE} DOING_TINDERBOX=YES universe
312
313toolchains:
314 @cd ${.CURDIR} && ${MAKE} UNIVERSE_TARGET=toolchain universe
315
316#
317# universe
318#
319# Attempt to rebuild *everything* for all supported architectures,
320# with a reasonable chance of success, regardless of how old your
321# existing system is.
322#
323.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
324TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
325TARGET_ARCHES_arm?= arm armeb
326TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb
327TARGET_ARCHES_powerpc?= powerpc powerpc64
328TARGET_ARCHES_pc98?= i386
329TARGET_ARCHES_sun4v?= sparc64
330.for target in ${TARGETS}
331TARGET_ARCHES_${target}?= ${target}
332.endfor
333
334.if defined(UNIVERSE_TARGET)
335MAKE_JUST_WORLDS= YES
336.else
337UNIVERSE_TARGET?= buildworld
338.endif
339
340targets:
341 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
342.for target in ${TARGETS}
343.for target_arch in ${TARGET_ARCHES_${target}}
344 @echo " ${target}/${target_arch}"
345.endfor
346.endfor
347
--- 17 unchanged lines hidden (view full) ---
365.ORDER: universe_prologue universe_${target} universe_epilogue
366universe_${target}: universe_${target}_prologue
367universe_${target}_prologue:
368 @echo ">> ${target} started on `LC_ALL=C date`"
369.if !defined(MAKE_JUST_KERNELS)
370.for target_arch in ${TARGET_ARCHES_${target}}
371universe_${target}: universe_${target}_${target_arch}
372universe_${target}_${target_arch}: universe_${target}_prologue
373 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`"
374 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
375 ${MAKE} ${JFLAG} ${UNIVERSE_TARGET} \
376 TARGET=${target} \
377 TARGET_ARCH=${target_arch} \
378 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \
379 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \
380 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \
381 ${MAKEFAIL}))
382 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`"
383.endfor
384.endif
385.if !defined(MAKE_JUST_WORLDS)
386.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
387 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
388 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
389 (echo "${target} 'make LINT' failed," \
390 "check _.${target}.makeLINT for details"| ${MAKEFAIL}))
--- 46 unchanged lines hidden ---
2# $FreeBSD: head/Makefile 218524 2011-02-10 18:54:52Z jhb $
3#
4# The user-driven targets are:
5#
6# universe - *Really* build *everything* (buildworld and
7# all kernels on all architectures).
8# tinderbox - Same as universe, but presents a list of failed build
9# targets and exits with an error if there were any.
10# buildworld - Rebuild *everything*, including glue to help do
--- 14 unchanged lines hidden (view full) ---
25# check-old-files - List obsolete files.
26# check-old-libs - List obsolete libraries.
27# delete-old - Delete obsolete directories/files/libraries.
28# delete-old-dirs - Delete obsolete directories.
29# delete-old-files - Delete obsolete files.
30# delete-old-libs - Delete obsolete libraries.
31# targets - Print a list of supported TARGET/TARGET_ARCH pairs
32# for world and kernel targets.
33# toolchains - Build a toolchain for all world and kernel targets.
34#
35# This makefile is simple by design. The FreeBSD make automatically reads
36# the /usr/share/mk/sys.mk unless the -m argument is specified on the
37# command line. By keeping this makefile simple, it doesn't matter too
38# much how different the installed mk files are from those in the source
39# tree. This makefile executes a child make process, forcing it to use
40# the mk files from the source tree which are supposed to DTRT.
41#
--- 261 unchanged lines hidden (view full) ---
303 @echo "--------------------------------------------------------------"
304 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
305 ${MMAKE} obj && \
306 ${MMAKE} depend && \
307 ${MMAKE} all && \
308 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
309
310tinderbox:
311 @cd ${.CURDIR} && ${MAKE} DOING_TINDERBOX=YES universe
312
313toolchains:
314 @cd ${.CURDIR} && ${MAKE} UNIVERSE_TARGET=toolchain universe
315
316#
317# universe
318#
319# Attempt to rebuild *everything* for all supported architectures,
320# with a reasonable chance of success, regardless of how old your
321# existing system is.
322#
323.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
324TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
325TARGET_ARCHES_arm?= arm armeb
326TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb
327TARGET_ARCHES_powerpc?= powerpc powerpc64
328TARGET_ARCHES_pc98?= i386
329TARGET_ARCHES_sun4v?= sparc64
330.for target in ${TARGETS}
331TARGET_ARCHES_${target}?= ${target}
332.endfor
333
334.if defined(UNIVERSE_TARGET)
335MAKE_JUST_WORLDS= YES
336.else
337UNIVERSE_TARGET?= buildworld
338.endif
339
340targets:
341 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
342.for target in ${TARGETS}
343.for target_arch in ${TARGET_ARCHES_${target}}
344 @echo " ${target}/${target_arch}"
345.endfor
346.endfor
347
--- 17 unchanged lines hidden (view full) ---
365.ORDER: universe_prologue universe_${target} universe_epilogue
366universe_${target}: universe_${target}_prologue
367universe_${target}_prologue:
368 @echo ">> ${target} started on `LC_ALL=C date`"
369.if !defined(MAKE_JUST_KERNELS)
370.for target_arch in ${TARGET_ARCHES_${target}}
371universe_${target}: universe_${target}_${target_arch}
372universe_${target}_${target_arch}: universe_${target}_prologue
373 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`"
374 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
375 ${MAKE} ${JFLAG} ${UNIVERSE_TARGET} \
376 TARGET=${target} \
377 TARGET_ARCH=${target_arch} \
378 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \
379 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \
380 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \
381 ${MAKEFAIL}))
382 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`"
383.endfor
384.endif
385.if !defined(MAKE_JUST_WORLDS)
386.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
387 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
388 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
389 (echo "${target} 'make LINT' failed," \
390 "check _.${target}.makeLINT for details"| ${MAKEFAIL}))
--- 46 unchanged lines hidden ---