Deleted Added
full compact
Makefile (218206) Makefile (218524)
1#
1#
2# $FreeBSD: head/Makefile 218206 2011-02-02 23:59:24Z imp $
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.
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.
33#
34# This makefile is simple by design. The FreeBSD make automatically reads
35# the /usr/share/mk/sys.mk unless the -m argument is specified on the
36# command line. By keeping this makefile simple, it doesn't matter too
37# much how different the installed mk files are from those in the source
38# tree. This makefile executes a child make process, forcing it to use
39# the mk files from the source tree which are supposed to DTRT.
40#

--- 261 unchanged lines hidden (view full) ---

302 @echo "--------------------------------------------------------------"
303 ${_+_}@cd ${.CURDIR}/usr.bin/make; \
304 ${MMAKE} obj && \
305 ${MMAKE} depend && \
306 ${MMAKE} all && \
307 ${MMAKE} install DESTDIR=${MAKEPATH} BINDIR=
308
309tinderbox:
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:
310 @cd ${.CURDIR} && \
311 DOING_TINDERBOX=YES ${MAKE} JFLAG=${JFLAG} universe
311 @cd ${.CURDIR} && ${MAKE} DOING_TINDERBOX=YES universe
312
312
313toolchains:
314 @cd ${.CURDIR} && ${MAKE} UNIVERSE_TARGET=toolchain universe
315
313#
314# universe
315#
316# Attempt to rebuild *everything* for all supported architectures,
317# with a reasonable chance of success, regardless of how old your
318# existing system is.
319#
320.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
321TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
322TARGET_ARCHES_arm?= arm armeb
323TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb
324TARGET_ARCHES_powerpc?= powerpc powerpc64
325TARGET_ARCHES_pc98?= i386
326TARGET_ARCHES_sun4v?= sparc64
327.for target in ${TARGETS}
328TARGET_ARCHES_${target}?= ${target}
329.endfor
330
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
331targets:
332 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
333.for target in ${TARGETS}
334.for target_arch in ${TARGET_ARCHES_${target}}
335 @echo " ${target}/${target_arch}"
336.endfor
337.endfor
338

--- 17 unchanged lines hidden (view full) ---

356.ORDER: universe_prologue universe_${target} universe_epilogue
357universe_${target}: universe_${target}_prologue
358universe_${target}_prologue:
359 @echo ">> ${target} started on `LC_ALL=C date`"
360.if !defined(MAKE_JUST_KERNELS)
361.for target_arch in ${TARGET_ARCHES_${target}}
362universe_${target}: universe_${target}_${target_arch}
363universe_${target}_${target_arch}: universe_${target}_prologue
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
364 @echo ">> ${target}.${target_arch} buildworld started on `LC_ALL=C date`"
373 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`"
365 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
374 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \
366 ${MAKE} ${JFLAG} buildworld \
375 ${MAKE} ${JFLAG} ${UNIVERSE_TARGET} \
367 TARGET=${target} \
368 TARGET_ARCH=${target_arch} \
376 TARGET=${target} \
377 TARGET_ARCH=${target_arch} \
369 > _.${target}.${target_arch}.buildworld 2>&1 || \
370 (echo "${target}.${target_arch} world failed," \
371 "check _.${target}.${target_arch}.buildworld for details" | \
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" | \
372 ${MAKEFAIL}))
381 ${MAKEFAIL}))
373 @echo ">> ${target}.${target_arch} buildworld completed on `LC_ALL=C date`"
382 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`"
374.endfor
375.endif
376.if !defined(MAKE_JUST_WORLDS)
377.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
378 @(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \
379 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
380 (echo "${target} 'make LINT' failed," \
381 "check _.${target}.makeLINT for details"| ${MAKEFAIL}))

--- 46 unchanged lines hidden ---
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 ---