Deleted Added
full compact
Makefile (217815) Makefile (218130)
1#
1#
2# $FreeBSD: head/Makefile 217815 2011-01-25 08:13:31Z bz $
2# $FreeBSD: head/Makefile 218130 2011-01-31 15:17:47Z imp $
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

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

121 (in make.conf(5)) or command-line variable.
122.endif
123MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE}
124BINMAKE= \
125 `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \
126 -m ${.CURDIR}/share/mk
127_MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1
128
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

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

121 (in make.conf(5)) or command-line variable.
122.endif
123MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE}
124BINMAKE= \
125 `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \
126 -m ${.CURDIR}/share/mk
127_MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1
128
129# Guess machine architecture from machine type, and vice versa.
130.if !defined(TARGET_ARCH) && defined(TARGET)
131_TARGET_ARCH= ${TARGET:S/pc98/i386/:S/sun4v/sparc64/:S/mips/mipsel/}
132.elif !defined(TARGET) && defined(TARGET_ARCH) && \
133 ${TARGET_ARCH} != ${MACHINE_ARCH}
134_TARGET= ${TARGET_ARCH:C/mips.*e[lb]/mips/:C/armeb/arm/}
135.endif
136# Legacy names, for a transition period mips:mips -> mipsel:mips
137.if defined(TARGET) && defined(TARGET_ARCH) && \
138 ${TARGET_ARCH} == "mips" && ${TARGET} == "mips"
139.warning "TARGET_ARCH of mips is deprecated in favor of mipsel or mipseb"
140.if defined(TARGET_BIG_ENDIAN)
141_TARGET_ARCH=mipseb
142.else
143_TARGET_ARCH=mipsel
144.endif
145.endif
146# arm with TARGET_BIG_ENDIAN -> armeb
147.if defined(TARGET_ARCH) && ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN)
148.warning "TARGET_ARCH of arm with TARGET_BIG_ENDIAN is deprecated. use armeb"
149_TARGET_ARCH=armeb
150.endif
151.if defined(TARGET) && !defined(_TARGET)
152_TARGET=${TARGET}
153.endif
154.if defined(TARGET_ARCH) && !defined(_TARGET_ARCH)
155_TARGET_ARCH=${TARGET_ARCH}
156.endif
157# Otherwise, default to current machine type and architecture.
158_TARGET?= ${MACHINE}
159_TARGET_ARCH?= ${MACHINE_ARCH}
160
129#
130# Make sure we have an up-to-date make(1). Only world and buildworld
131# should do this as those are the initial targets used for upgrades.
132# The user can define ALWAYS_CHECK_MAKE to have this check performed
133# for all targets.
134#
135.if defined(ALWAYS_CHECK_MAKE)
136${TGTS}: upgrade_checks

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

168 rm -rf ${.OBJDIR}/*
169.endif
170
171#
172# Handle the user-driven targets, using the source relative mk files.
173#
174
175${TGTS}:
161#
162# Make sure we have an up-to-date make(1). Only world and buildworld
163# should do this as those are the initial targets used for upgrades.
164# The user can define ALWAYS_CHECK_MAKE to have this check performed
165# for all targets.
166#
167.if defined(ALWAYS_CHECK_MAKE)
168${TGTS}: upgrade_checks

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

200 rm -rf ${.OBJDIR}/*
201.endif
202
203#
204# Handle the user-driven targets, using the source relative mk files.
205#
206
207${TGTS}:
176 ${_+_}@cd ${.CURDIR}; \
177 ${_MAKE} ${.TARGET}
208 ${_+_}cd ${.CURDIR}; ${_MAKE} TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH} ${.TARGET}
178
179# Set a reasonable default
180.MAIN: all
181
182STARTTIME!= LC_ALL=C date
183CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0
184.if !empty(CHECK_TIME)
185.error check your date/time: ${STARTTIME}

--- 211 unchanged lines hidden ---
209
210# Set a reasonable default
211.MAIN: all
212
213STARTTIME!= LC_ALL=C date
214CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0
215.if !empty(CHECK_TIME)
216.error check your date/time: ${STARTTIME}

--- 211 unchanged lines hidden ---