Makefile.inc1 revision 54736
1#
2# $FreeBSD: head/Makefile.inc1 54736 1999-12-17 11:23:56Z marcel $
3#
4# Make command line options:
5#	-DMAKE_KERBEROS4 to build KerberosIV
6#	-DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
7#	-DNOCLEAN do not clean at all
8#	-DNOCRYPT will prevent building of crypt versions
9#	-DNOPROFILE do not build profiled libraries
10#	-DNOSECURE do not go into secure subdir
11#	-DNOGAMES do not go into games subdir
12#	-DNOSHARE do not go into share subdir
13#	-DNOINFO do not make or install info files
14#	-DNOLIBC_R do not build libc_r.
15#	-DNO_FORTRAN do not build g77 and related libraries.
16#	LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
17
18#
19# The intended user-driven targets are:
20# buildworld  - rebuild *everything*, including glue to help do upgrades
21# installworld- install everything built by "buildworld"
22# update      - convenient way to update your source tree (eg: sup/cvs)
23# most        - build user commands, no libraries or include files
24# installmost - install user commands, no libraries or include files
25#
26# Standard targets (not defined here) are documented in the makefiles in
27# /usr/share/mk.  These include:
28#		obj depend all install clean cleandepend cleanobj
29
30# Put initial settings here.
31SUBDIR=
32
33# We must do share/info early so that installation of info `dir'
34# entries works correctly.  Do it first since it is less likely to
35# grow dependencies on include and lib than vice versa.
36.if exists(${.CURDIR}/share/info)
37SUBDIR+= share/info
38.endif
39
40# We must do include and lib early so that the perl *.ph generation
41# works correctly as it uses the header files installed by this.
42.if exists(${.CURDIR}/include)
43SUBDIR+= include
44.endif
45.if exists(${.CURDIR}/lib)
46SUBDIR+= lib
47.endif
48
49.if exists(${.CURDIR}/bin)
50SUBDIR+= bin
51.endif
52.if exists(${.CURDIR}/games) && !defined(NOGAMES)
53SUBDIR+= games
54.endif
55.if exists(${.CURDIR}/gnu)
56SUBDIR+= gnu
57.endif
58.if exists(${.CURDIR}/kerberosIV) && exists(${.CURDIR}/crypto) && \
59    !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
60SUBDIR+= kerberosIV
61.endif
62.if exists(${.CURDIR}/libexec)
63SUBDIR+= libexec
64.endif
65.if exists(${.CURDIR}/sbin)
66SUBDIR+= sbin
67.endif
68.if exists(${.CURDIR}/share) && !defined(NOSHARE)
69SUBDIR+= share
70.endif
71.if exists(${.CURDIR}/sys)
72SUBDIR+= sys
73.endif
74.if exists(${.CURDIR}/usr.bin)
75SUBDIR+= usr.bin
76.endif
77.if exists(${.CURDIR}/usr.sbin)
78SUBDIR+= usr.sbin
79.endif
80.if exists(${.CURDIR}/secure) && !defined(NOCRYPT) && !defined(NOSECURE)
81SUBDIR+= secure
82.endif
83
84# etc must be last for "distribute" to work
85.if exists(${.CURDIR}/etc)
86SUBDIR+= etc
87.endif
88
89# These are last, since it is nice to at least get the base system
90# rebuilt before you do them.
91.if defined(LOCAL_DIRS)
92.for _DIR in ${LOCAL_DIRS}
93.if exists(${.CURDIR}/${_DIR}) & exists(${.CURDIR}/${_DIR}/Makefile)
94SUBDIR+= ${_DIR}
95.endif
96.endfor
97.endif
98
99.if defined(NOCLEANDIR)
100CLEANDIR=	clean cleandepend
101.else
102CLEANDIR=	cleandir
103.endif
104
105SUP?=		cvsup
106SUPFLAGS?=	-g -L 2 -P -
107
108MAKEOBJDIRPREFIX?=	/usr/obj
109TARGET_ARCH?=	${MACHINE_ARCH}
110BUILD_ARCH!=	sysctl -n hw.machine_arch
111.if ${BUILD_ARCH} == ${MACHINE_ARCH}
112OBJTREE=	${MAKEOBJDIRPREFIX}
113.else
114OBJTREE=	${MAKEOBJDIRPREFIX}/${MACHINE_ARCH}
115.endif
116WORLDTMP=	${OBJTREE}${.CURDIR}/${BUILD_ARCH}
117# /usr/games added for fortune which depend on strfile and caesar.
118STRICTTMPPATH=	${WORLDTMP}/usr/sbin:${WORLDTMP}/usr/bin:${WORLDTMP}/usr/games
119TMPPATH=	${STRICTTMPPATH}:${PATH}
120
121# bootstrap make
122BMAKEENV=	MAKEOBJDIRPREFIX=${WORLDTMP} \
123		DESTDIR=${WORLDTMP} \
124		INSTALL="sh ${.CURDIR}/tools/install.sh" \
125		TARGET_ARCH=${MACHINE_ARCH} \
126		MACHINE_ARCH=${BUILD_ARCH} \
127		PATH=${TMPPATH}
128BMAKE=		${BMAKEENV} ${MAKE} -f Makefile.inc1 -DNOMAN -DNOINFO \
129		-DNO_FORTRAN -DNO_GDB
130
131# script/tool make
132TMAKEENV=	MAKEOBJDIRPREFIX=${OBJTREE} \
133		INSTALL="sh ${.CURDIR}/tools/install.sh"
134TMAKE=		${TMAKEENV} ${MAKE} -f Makefile.inc1
135
136CROSSENV=	COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
137		LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib \
138		OBJFORMAT_PATH=${WORLDTMP}/usr/libexec \
139		PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503
140
141# cross make used for compilation
142XMAKEENV=	MAKEOBJDIRPREFIX=${OBJTREE} \
143		${CROSSENV} \
144		DESTDIR=${WORLDTMP} \
145		INSTALL="sh ${.CURDIR}/tools/install.sh" \
146		PATH=${TMPPATH}
147XMAKE=		${XMAKEENV} ${MAKE} -f Makefile.inc1
148
149# cross make used for final installation
150IMAKEENV=	MAKEOBJDIRPREFIX=${OBJTREE} \
151		${CROSSENV}
152IMAKE=		${IMAKEENV} ${MAKE} -f Makefile.inc1
153
154USRDIRS=	usr/bin usr/lib/compat/aout usr/games usr/libdata/ldscripts \
155		usr/libexec/${OBJFORMAT} usr/sbin usr/share/misc
156
157.if ${MACHINE_ARCH} == "i386" && ${MACHINE} == "pc98"
158USRDIRS+=	usr/libexec/aout
159.endif
160
161INCDIRS=	arpa g++/std objc protocols readline rpc rpcsvc security ss
162
163#
164# buildworld
165#
166# Attempt to rebuild the entire system, with reasonable chance of
167# success, regardless of how old your existing system is.
168#
169buildworld:
170	@echo
171	@echo "--------------------------------------------------------------"
172	@echo ">>> Rebuilding the temporary build tree"
173	@echo "--------------------------------------------------------------"
174.if !defined(NOCLEAN)
175	rm -rf ${WORLDTMP}
176.else
177	rm -rf ${WORLDTMP}/usr/bin
178	rm -f ${WORLDTMP}/sys
179.endif
180.for _dir in ${USRDIRS}
181	mkdir -p ${WORLDTMP}/${_dir}
182.endfor
183.for _dir in ${INCDIRS}
184	mkdir -p ${WORLDTMP}/usr/include/${_dir}
185.endfor
186	ln -sf ${.CURDIR}/sys ${WORLDTMP}/sys
187	@echo
188	@echo "--------------------------------------------------------------"
189	@echo ">>> Rebuilding bootstrap tools"
190	@echo "--------------------------------------------------------------"
191	cd ${.CURDIR}; ${BMAKE} bootstrap-tools
192.if !empty(.MAKEFLAGS:M-j)
193	# Work-around for broken sh(1) hashing.
194	-hash -r
195.endif
196.if !defined(NOCLEAN)
197	@echo
198	@echo "--------------------------------------------------------------"
199	@echo ">>> Cleaning up the object tree"
200	@echo "--------------------------------------------------------------"
201	cd ${.CURDIR}; ${TMAKE} ${CLEANDIR:S/^/par-/}
202.endif
203	@echo
204	@echo "--------------------------------------------------------------"
205	@echo ">>> Rebuilding the object tree"
206	@echo "--------------------------------------------------------------"
207	cd ${.CURDIR}; ${TMAKE} par-obj
208	@echo
209	@echo "--------------------------------------------------------------"
210	@echo ">>> Rebuilding build tools"
211	@echo "--------------------------------------------------------------"
212	cd ${.CURDIR}; ${TMAKE} build-tools
213	@echo
214	@echo "--------------------------------------------------------------"
215	@echo ">>> Rebuilding ${WORLDTMP}/usr/include"
216	@echo "--------------------------------------------------------------"
217	cd ${.CURDIR}; ${XMAKE} includes
218	@echo
219	@echo "--------------------------------------------------------------"
220	@echo ">>> Building libraries"
221	@echo "--------------------------------------------------------------"
222	cd ${.CURDIR}; ${XMAKE} -DNOINFO -DNOMAN libraries
223	@echo
224	@echo "--------------------------------------------------------------"
225	@echo ">>> Rebuilding dependencies"
226	@echo "--------------------------------------------------------------"
227	cd ${.CURDIR}; ${XMAKE} par-depend
228	@echo
229	@echo "--------------------------------------------------------------"
230	@echo ">>> Building everything.."
231	@echo "--------------------------------------------------------------"
232	cd ${.CURDIR}; ${XMAKE} all
233
234everything:
235	@echo "--------------------------------------------------------------"
236	@echo ">>> Building everything.."
237	@echo "--------------------------------------------------------------"
238	cd ${.CURDIR}; ${XMAKE} all
239
240#
241# installworld
242#
243# Installs everything compiled by a 'buildworld'.
244#
245installworld:
246	cd ${.CURDIR}; ${IMAKE} reinstall
247
248#
249# reinstall
250#
251# If you have a build server, you can NFS mount the source and obj directories
252# and do a 'make reinstall' on the *client* to install new binaries from the
253# most recent server build.
254#
255reinstall:
256	@echo "--------------------------------------------------------------"
257	@echo ">>> Making hierarchy"
258	@echo "--------------------------------------------------------------"
259	cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 hierarchy
260	@echo
261	@echo "--------------------------------------------------------------"
262	@echo ">>> Installing everything.."
263	@echo "--------------------------------------------------------------"
264	cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
265.if !defined(NOMAN)
266	@echo
267	@echo "--------------------------------------------------------------"
268	@echo ">>> Rebuilding man page indices"
269	@echo "--------------------------------------------------------------"
270	cd ${.CURDIR}/share/man; ${MAKE} makedb
271.endif
272
273#
274# update
275#
276# Update the source tree, by running sup and/or running cvs to update to the
277# latest copy.
278#
279update:
280.if defined(SUP_UPDATE)
281	@echo "--------------------------------------------------------------"
282	@echo ">>> Running ${SUP}"
283	@echo "--------------------------------------------------------------"
284.if defined(SUPFILE)
285	@${SUP} ${SUPFLAGS} ${SUPFILE}
286.endif
287.if defined(SUPFILE1)
288	@${SUP} ${SUPFLAGS} ${SUPFILE1}
289.endif
290.if defined(SUPFILE2)
291	@${SUP} ${SUPFLAGS} ${SUPFILE2}
292.endif
293.if defined(PORTSSUPFILE)
294	@${SUP} ${SUPFLAGS} ${PORTSSUPFILE}
295.endif
296.endif
297.if defined(CVS_UPDATE)
298	@echo "--------------------------------------------------------------"
299	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
300	@echo "--------------------------------------------------------------"
301	cd ${.CURDIR}; cvs -q update -P -d
302.endif
303
304#
305# most
306#
307# Build most of the user binaries on the existing system libs and includes.
308#
309most:
310	@echo "--------------------------------------------------------------"
311	@echo ">>> Building programs only"
312	@echo "--------------------------------------------------------------"
313	cd ${.CURDIR}/bin;		${MAKE} all
314	cd ${.CURDIR}/sbin;		${MAKE} all
315	cd ${.CURDIR}/libexec;		${MAKE} all
316	cd ${.CURDIR}/usr.bin;		${MAKE} all
317	cd ${.CURDIR}/usr.sbin;		${MAKE} all
318	cd ${.CURDIR}/gnu/libexec;	${MAKE} all
319	cd ${.CURDIR}/gnu/usr.bin;	${MAKE} all
320	cd ${.CURDIR}/gnu/usr.sbin;	${MAKE} all
321
322#
323# installmost
324#
325# Install the binaries built by the 'most' target.  This does not include
326# libraries or include files.
327#
328installmost:
329	@echo "--------------------------------------------------------------"
330	@echo ">>> Installing programs only"
331	@echo "--------------------------------------------------------------"
332	cd ${.CURDIR}/bin;		${MAKE} install
333	cd ${.CURDIR}/sbin;		${MAKE} install
334	cd ${.CURDIR}/libexec;		${MAKE} install
335	cd ${.CURDIR}/usr.bin;		${MAKE} install
336	cd ${.CURDIR}/usr.sbin;		${MAKE} install
337	cd ${.CURDIR}/gnu/libexec;	${MAKE} install
338	cd ${.CURDIR}/gnu/usr.bin;	${MAKE} install
339	cd ${.CURDIR}/gnu/usr.sbin;	${MAKE} install
340
341#
342# ------------------------------------------------------------------------
343#
344# From here onwards are utility targets used by the 'make world' and
345# related targets.  If your 'world' breaks, you may like to try to fix
346# the problem and manually run the following targets to attempt to
347# complete the build.  Beware, this is *not* guaranteed to work, you
348# need to have a pretty good grip on the current state of the system
349# to attempt to manually finish it.  If in doubt, 'make world' again.
350#
351
352#
353# bootstrap-tools - Build tools needed to run the actual build.
354#
355# WARNING: Because the bootstrap tools are expected to run on the
356# build-machine, MACHINE_ARCH is *always* set to BUILD_ARCH when this
357# target is being made. TARGET_ARCH is *always* set to reflect the
358# target-machine (which you can set by specifying MACHINE_ARCH on
359# make's command-line, get it?).
360# The reason is simple: we build these tools not to be run on the
361# architecture we're cross-building, but on the architecture we're
362# currently building on (ie the host-machine) and we expect these
363# tools to produce output for the architecture we're trying to
364# cross-build.
365#
366.if exists(${.CURDIR}/games) && !defined(NOGAMES)
367_games_tools=	games/caesar games/fortune/strfile
368.endif
369
370# XXX - MACHINE should actually be TARGET. But we don't set that...
371.if ${TARGET_ARCH} == "i386" && ${MACHINE} == "pc98"
372_aout_tools=	usr.bin/size usr.bin/strip gnu/usr.bin/as gnu/usr.bin/ld
373.endif
374
375.if ${TARGET_ARCH} == "alpha" && ${MACHINE_ARCH} != "alpha"
376_elf2exe=	usr.sbin/elf2exe
377.endif
378
379bootstrap-tools:
380.for _tool in ${_games_tools} ${_aout_tools} ${_elf2exe} usr.bin/gensetdefs \
381    gnu/usr.bin/binutils usr.bin/objformat usr.bin/yacc usr.bin/colldef \
382    gnu/usr.bin/bison gnu/usr.bin/cc
383	cd ${.CURDIR}/${_tool}; \
384		${MAKE} obj; \
385		${MAKE} depend; \
386		${MAKE} all; \
387		${MAKE} install
388.endfor
389
390#
391# build-tools
392#
393.if exists(${.CURDIR}/games) && !defined(NOGAMES)
394_games=	games/adventure games/hack games/phantasia
395.endif
396
397.if exists(${.CURDIR}/share) && !defined(NOSHARE)
398_share=	share/syscons/scrnmaps
399.endif
400
401build-tools:
402.for _tool in bin/sh ${_games} gnu/usr.bin/cc/cc_tools gnu/usr.bin/cc/f771 \
403    lib/libncurses ${_share}
404	cd ${.CURDIR}/${_tool}; ${MAKE} build-tools
405.endfor
406
407#
408# hierarchy - ensure that all the needed directories are present
409#
410hierarchy:
411	cd ${.CURDIR}/etc;		${MAKE} distrib-dirs
412
413#
414# includes - possibly generate and install the include files.
415#
416includes:
417	cd ${.CURDIR}/include;		${MAKE} SHARED=symlinks -B all install
418	cd ${.CURDIR}/gnu/include;		${MAKE} install
419	cd ${.CURDIR}/gnu/lib/libmp;		${MAKE} beforeinstall
420	cd ${.CURDIR}/gnu/lib/libobjc;		${MAKE} beforeinstall
421	cd ${.CURDIR}/gnu/lib/libreadline;	${MAKE} beforeinstall
422	cd ${.CURDIR}/gnu/lib/libregex;		${MAKE} beforeinstall
423	cd ${.CURDIR}/gnu/lib/libstdc++;	${MAKE} beforeinstall
424	cd ${.CURDIR}/gnu/lib/libdialog;	${MAKE} beforeinstall
425	cd ${.CURDIR}/gnu/lib/libgmp;		${MAKE} beforeinstall
426	cd ${.CURDIR}/gnu/usr.bin/cc/cc1plus;	${MAKE} beforeinstall
427.if exists(${.CURDIR}/secure) && !defined(NOCRYPT)
428	cd ${.CURDIR}/secure/lib/libdes;	${MAKE} beforeinstall
429.endif
430.if exists(${.CURDIR}/kerberosIV) && !defined(NOCRYPT) && \
431    defined(MAKE_KERBEROS4)
432	cd ${.CURDIR}/kerberosIV/lib/libacl;	${MAKE} beforeinstall
433	cd ${.CURDIR}/kerberosIV/lib/libkadm;	${MAKE} beforeinstall
434	cd ${.CURDIR}/kerberosIV/lib/libkafs;	${MAKE} beforeinstall
435	cd ${.CURDIR}/kerberosIV/lib/libkdb;	${MAKE} beforeinstall
436	cd ${.CURDIR}/kerberosIV/lib/libkrb;	${MAKE} beforeinstall
437	cd ${.CURDIR}/kerberosIV/lib/libtelnet; ${MAKE} beforeinstall
438.else
439	cd ${.CURDIR}/lib/libtelnet;		${MAKE} beforeinstall
440.endif
441.if exists(${.CURDIR}/lib/csu/${MACHINE_ARCH})
442	cd ${.CURDIR}/lib/csu/${MACHINE_ARCH};	${MAKE} beforeinstall
443.endif
444	cd ${.CURDIR}/lib/libalias;		${MAKE} beforeinstall
445	cd ${.CURDIR}/lib/libatm;		${MAKE} beforeinstall
446	cd ${.CURDIR}/lib/libdevstat;		${MAKE} beforeinstall
447	cd ${.CURDIR}/lib/libc;			${MAKE} beforeinstall
448	cd ${.CURDIR}/lib/libcalendar;		${MAKE} beforeinstall
449	cd ${.CURDIR}/lib/libcam;		${MAKE} beforeinstall
450	cd ${.CURDIR}/lib/libdisk;		${MAKE} beforeinstall
451	cd ${.CURDIR}/lib/libedit;		${MAKE} beforeinstall
452	cd ${.CURDIR}/lib/libftpio;		${MAKE} beforeinstall
453	cd ${.CURDIR}/lib/libkvm;		${MAKE} beforeinstall
454	cd ${.CURDIR}/lib/libmd;		${MAKE} beforeinstall
455.if !defined(WANT_CSRG_LIBM)
456	cd ${.CURDIR}/lib/msun;			${MAKE} beforeinstall
457.endif
458	cd ${.CURDIR}/lib/libncp;		${MAKE} beforeinstall
459	cd ${.CURDIR}/lib/libncurses;		${MAKE} beforeinstall
460	cd ${.CURDIR}/lib/libnetgraph;		${MAKE} beforeinstall
461	cd ${.CURDIR}/lib/libopie;		${MAKE} beforeinstall
462	cd ${.CURDIR}/lib/libpam/libpam;	${MAKE} beforeinstall
463	cd ${.CURDIR}/lib/libpcap;		${MAKE} beforeinstall
464	cd ${.CURDIR}/lib/libradius;		${MAKE} beforeinstall
465	cd ${.CURDIR}/lib/librpcsvc;		${MAKE} beforeinstall
466	cd ${.CURDIR}/lib/libskey;		${MAKE} beforeinstall
467	cd ${.CURDIR}/lib/libstand;		${MAKE} beforeinstall
468	cd ${.CURDIR}/lib/libtacplus;		${MAKE} beforeinstall
469	cd ${.CURDIR}/lib/libcom_err;		${MAKE} beforeinstall
470	cd ${.CURDIR}/lib/libss;		${MAKE} -B hdrs beforeinstall
471	cd ${.CURDIR}/lib/libutil;		${MAKE} beforeinstall
472	cd ${.CURDIR}/lib/libvgl;		${MAKE} beforeinstall
473	cd ${.CURDIR}/lib/libwrap;		${MAKE} beforeinstall
474	cd ${.CURDIR}/lib/libz;			${MAKE} beforeinstall
475	cd ${.CURDIR}/usr.bin/lex;		${MAKE} beforeinstall
476
477#
478# libraries - build all libraries, and install them under ${DESTDIR}.
479#
480# The following dependencies exist between the libraries:
481#
482# lib*: csu
483# libatm: libmd
484# libcrypt: libmd
485# libdialog: libncurses
486# libedit: libncurses
487# libg++: libm
488# libkrb: libcrypt
489# libopie: libmd
490# libpam: libcom_err libcrypt libdes libgcc_pic libkrb libradius libskey \
491#	  libtacplus libutil
492# libradius: libmd
493# libreadline: libncurses
494# libskey: libcrypt libmd
495# libss: libcom_err
496# libstc++: libm
497# libtacplus: libmd
498#
499# Across directories this comes down to (rougly):
500#
501# gnu/lib: lib/libm lib/libncurses
502# kerberosIV/lib: lib/libcrypt
503# lib/libpam: secure/lib/libdes kerberosIV/lib/libkrb gnu/lib/libgcc
504# secure/lib: lib/libmd
505#
506.if exists(${.CURDIR}/lib/csu/${MACHINE_ARCH}.pcc)
507_csu=	lib/csu/${MACHINE_ARCH}.pcc
508.elif ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "elf"
509_csu=	lib/csu/i386-elf
510.else
511_csu=	lib/csu/${MACHINE_ARCH}
512.endif
513
514.if !defined(NOSECURE) && !defined(NOCRYPT)
515_secure_lib=	secure/lib
516.endif
517
518.if !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
519_kerberosIV_lib=	kerberosIV/lib
520.endif
521
522.if defined(WANT_CSRG_LIBM)
523_libm=	lib/libm
524.else
525_libm=	lib/msun
526.endif
527
528.if !defined(NOPERL)
529_libperl=	gnu/usr.bin/perl/libperl
530.endif
531
532.if ${MACHINE_ARCH} == "i386"
533_libkeycap=	usr.sbin/pcvt/keycap
534.endif
535
536libraries:
537.for _lib in ${_csu} lib/libmd lib/libcrypt ${_secure_lib} ${_kerberosIV_lib} \
538    gnu/lib/libgcc lib/libcom_err ${_libm} lib/libncurses lib/libradius \
539    lib/libskey lib/libtacplus lib/libutil lib gnu/lib ${_libperl} \
540    usr.bin/lex/lib ${_libkeycap}
541.if exists(${.CURDIR}/${_lib})
542	cd ${.CURDIR}/${_lib}; \
543		${MAKE} depend; \
544		${MAKE} all; \
545		${MAKE} install
546.endif
547.endfor
548
549.for __target in clean cleandepend cleandir depend obj
550.for entry in ${SUBDIR}
551${entry}.${__target}__D: .PHONY
552	@if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \
553		${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH}"; \
554		edir=${entry}.${MACHINE_ARCH}; \
555		cd ${.CURDIR}/$${edir}; \
556	else \
557		${ECHODIR} "===> ${DIRPRFX}${entry}"; \
558		edir=${entry}; \
559		cd ${.CURDIR}/$${edir}; \
560	fi; \
561	${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
562.endfor
563par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
564.endfor
565
566.include <bsd.subdir.mk>
567