Deleted Added
full compact
Makefile.inc1 (95146) Makefile.inc1 (95509)
1#
1#
2# $FreeBSD: head/Makefile.inc1 95146 2002-04-20 19:04:59Z gshapiro $
2# $FreeBSD: head/Makefile.inc1 95509 2002-04-26 17:55:27Z ru $
3#
4# Make command line options:
5# -DMAKE_KERBEROS4 to build KerberosIV
6# -DMAKE_KERBEROS5 to build Kerberos5
7# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
8# -DNOCLEAN do not clean at all
9# -DNOCRYPT will prevent building of crypt versions
10# -DNOPROFILE do not build profiled libraries

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

52.endif
53.if exists(${.CURDIR}/lib)
54SUBDIR+= lib
55.endif
56
57.if exists(${.CURDIR}/bin)
58SUBDIR+= bin
59.endif
3#
4# Make command line options:
5# -DMAKE_KERBEROS4 to build KerberosIV
6# -DMAKE_KERBEROS5 to build Kerberos5
7# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
8# -DNOCLEAN do not clean at all
9# -DNOCRYPT will prevent building of crypt versions
10# -DNOPROFILE do not build profiled libraries

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

52.endif
53.if exists(${.CURDIR}/lib)
54SUBDIR+= lib
55.endif
56
57.if exists(${.CURDIR}/bin)
58SUBDIR+= bin
59.endif
60.if exists(${.CURDIR}/etc)
61SUBDIR+= etc
62.endif
60.if exists(${.CURDIR}/games) && !defined(NOGAMES)
61SUBDIR+= games
62.endif
63.if exists(${.CURDIR}/gnu)
64SUBDIR+= gnu
65.endif
66.if exists(${.CURDIR}/kerberosIV) && exists(${.CURDIR}/crypto) && \
67 !defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS4)

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

88.endif
89.if exists(${.CURDIR}/usr.bin)
90SUBDIR+= usr.bin
91.endif
92.if exists(${.CURDIR}/usr.sbin)
93SUBDIR+= usr.sbin
94.endif
95
63.if exists(${.CURDIR}/games) && !defined(NOGAMES)
64SUBDIR+= games
65.endif
66.if exists(${.CURDIR}/gnu)
67SUBDIR+= gnu
68.endif
69.if exists(${.CURDIR}/kerberosIV) && exists(${.CURDIR}/crypto) && \
70 !defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS4)

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

91.endif
92.if exists(${.CURDIR}/usr.bin)
93SUBDIR+= usr.bin
94.endif
95.if exists(${.CURDIR}/usr.sbin)
96SUBDIR+= usr.sbin
97.endif
98
96# etc must be last for "distribute" to work
97.if exists(${.CURDIR}/etc)
98SUBDIR+= etc
99.endif
100
101# These are last, since it is nice to at least get the base system
102# rebuilt before you do them.
103.if defined(LOCAL_DIRS)
104.for _DIR in ${LOCAL_DIRS}
105.if exists(${.CURDIR}/${_DIR}) & exists(${.CURDIR}/${_DIR}/Makefile)
106SUBDIR+= ${_DIR}
107.endif
108.endfor
109.endif
110
99# These are last, since it is nice to at least get the base system
100# rebuilt before you do them.
101.if defined(LOCAL_DIRS)
102.for _DIR in ${LOCAL_DIRS}
103.if exists(${.CURDIR}/${_DIR}) & exists(${.CURDIR}/${_DIR}/Makefile)
104SUBDIR+= ${_DIR}
105.endif
106.endfor
107.endif
108
109.if defined(SUBDIR_OVERRIDE)
110SUBDIR= ${SUBDIR_OVERRIDE}
111.endif
112
111.if defined(NOCLEANDIR)
112CLEANDIR= clean cleandepend
113.else
114CLEANDIR= cleandir
115.endif
116
117CVS?= cvs
118SUP?= /usr/local/bin/cvsup

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

234 readline rpc rpcsvc openssl security ufs
235
236#
237# buildworld
238#
239# Attempt to rebuild the entire system, with reasonable chance of
240# success, regardless of how old your existing system is.
241#
113.if defined(NOCLEANDIR)
114CLEANDIR= clean cleandepend
115.else
116CLEANDIR= cleandir
117.endif
118
119CVS?= cvs
120SUP?= /usr/local/bin/cvsup

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

236 readline rpc rpcsvc openssl security ufs
237
238#
239# buildworld
240#
241# Attempt to rebuild the entire system, with reasonable chance of
242# success, regardless of how old your existing system is.
243#
242buildworld:
244_worldtmp:
243 @echo
244 @echo "--------------------------------------------------------------"
245 @echo ">>> Rebuilding the temporary build tree"
246 @echo "--------------------------------------------------------------"
247.if !defined(NOCLEAN)
248 rm -rf ${WORLDTMP}
249.else
250 # XXX - These two can depend on any header file.
251 rm -f ${OBJTREE}${.CURDIR}/usr.bin/kdump/ioctl.c
252 rm -f ${OBJTREE}${.CURDIR}/usr.bin/truss/ioctl.c
253.endif
254.for _dir in ${USRDIRS}
255 mkdir -p ${WORLDTMP}/${_dir}
256.endfor
257.for _dir in ${INCDIRS}
258 mkdir -p ${WORLDTMP}/usr/include/${_dir}
259.endfor
260 ln -sf ${.CURDIR}/sys ${WORLDTMP}
245 @echo
246 @echo "--------------------------------------------------------------"
247 @echo ">>> Rebuilding the temporary build tree"
248 @echo "--------------------------------------------------------------"
249.if !defined(NOCLEAN)
250 rm -rf ${WORLDTMP}
251.else
252 # XXX - These two can depend on any header file.
253 rm -f ${OBJTREE}${.CURDIR}/usr.bin/kdump/ioctl.c
254 rm -f ${OBJTREE}${.CURDIR}/usr.bin/truss/ioctl.c
255.endif
256.for _dir in ${USRDIRS}
257 mkdir -p ${WORLDTMP}/${_dir}
258.endfor
259.for _dir in ${INCDIRS}
260 mkdir -p ${WORLDTMP}/usr/include/${_dir}
261.endfor
262 ln -sf ${.CURDIR}/sys ${WORLDTMP}
263_bootstrap-tools:
261 @echo
262 @echo "--------------------------------------------------------------"
263 @echo ">>> stage 1: bootstrap tools"
264 @echo "--------------------------------------------------------------"
265 cd ${.CURDIR}; ${BMAKE} bootstrap-tools
264 @echo
265 @echo "--------------------------------------------------------------"
266 @echo ">>> stage 1: bootstrap tools"
267 @echo "--------------------------------------------------------------"
268 cd ${.CURDIR}; ${BMAKE} bootstrap-tools
269_cleanobj:
266.if !defined(NOCLEAN)
267 @echo
268 @echo "--------------------------------------------------------------"
269 @echo ">>> stage 2: cleaning up the object tree"
270 @echo "--------------------------------------------------------------"
271 cd ${.CURDIR}; ${WMAKE} ${CLEANDIR:S/^/par-/}
272.endif
270.if !defined(NOCLEAN)
271 @echo
272 @echo "--------------------------------------------------------------"
273 @echo ">>> stage 2: cleaning up the object tree"
274 @echo "--------------------------------------------------------------"
275 cd ${.CURDIR}; ${WMAKE} ${CLEANDIR:S/^/par-/}
276.endif
277_obj:
273 @echo
274 @echo "--------------------------------------------------------------"
275 @echo ">>> stage 2: rebuilding the object tree"
276 @echo "--------------------------------------------------------------"
277 cd ${.CURDIR}; ${WMAKE} par-obj
278 @echo
279 @echo "--------------------------------------------------------------"
280 @echo ">>> stage 2: rebuilding the object tree"
281 @echo "--------------------------------------------------------------"
282 cd ${.CURDIR}; ${WMAKE} par-obj
283_build-tools:
278 @echo
279 @echo "--------------------------------------------------------------"
280 @echo ">>> stage 2: build tools"
281 @echo "--------------------------------------------------------------"
282 cd ${.CURDIR}; ${TMAKE} build-tools
284 @echo
285 @echo "--------------------------------------------------------------"
286 @echo ">>> stage 2: build tools"
287 @echo "--------------------------------------------------------------"
288 cd ${.CURDIR}; ${TMAKE} build-tools
289_cross-tools:
283 @echo
284 @echo "--------------------------------------------------------------"
285 @echo ">>> stage 3: cross tools"
286 @echo "--------------------------------------------------------------"
287 cd ${.CURDIR}; ${XMAKE} cross-tools
290 @echo
291 @echo "--------------------------------------------------------------"
292 @echo ">>> stage 3: cross tools"
293 @echo "--------------------------------------------------------------"
294 cd ${.CURDIR}; ${XMAKE} cross-tools
295_includes:
288 @echo
289 @echo "--------------------------------------------------------------"
290 @echo ">>> stage 4: populating ${WORLDTMP}/usr/include"
291 @echo "--------------------------------------------------------------"
292 cd ${.CURDIR}; ${WMAKE} SHARED=symlinks includes
296 @echo
297 @echo "--------------------------------------------------------------"
298 @echo ">>> stage 4: populating ${WORLDTMP}/usr/include"
299 @echo "--------------------------------------------------------------"
300 cd ${.CURDIR}; ${WMAKE} SHARED=symlinks includes
301_libraries:
293 @echo
294 @echo "--------------------------------------------------------------"
295 @echo ">>> stage 4: building libraries"
296 @echo "--------------------------------------------------------------"
297 cd ${.CURDIR}; ${WMAKE} -DNOHTML -DNOINFO -DNOMAN -DNOFSCHG libraries
302 @echo
303 @echo "--------------------------------------------------------------"
304 @echo ">>> stage 4: building libraries"
305 @echo "--------------------------------------------------------------"
306 cd ${.CURDIR}; ${WMAKE} -DNOHTML -DNOINFO -DNOMAN -DNOFSCHG libraries
307_depend:
298 @echo
299 @echo "--------------------------------------------------------------"
300 @echo ">>> stage 4: make dependencies"
301 @echo "--------------------------------------------------------------"
302 cd ${.CURDIR}; ${WMAKE} par-depend
308 @echo
309 @echo "--------------------------------------------------------------"
310 @echo ">>> stage 4: make dependencies"
311 @echo "--------------------------------------------------------------"
312 cd ${.CURDIR}; ${WMAKE} par-depend
313everything:
303 @echo
304 @echo "--------------------------------------------------------------"
305 @echo ">>> stage 4: building everything.."
306 @echo "--------------------------------------------------------------"
307 cd ${.CURDIR}; ${WMAKE} all
308
314 @echo
315 @echo "--------------------------------------------------------------"
316 @echo ">>> stage 4: building everything.."
317 @echo "--------------------------------------------------------------"
318 cd ${.CURDIR}; ${WMAKE} all
319
309everything:
310 @echo "--------------------------------------------------------------"
311 @echo ">>> Building everything.."
312 @echo "--------------------------------------------------------------"
313 cd ${.CURDIR}; ${WMAKE} all
314
320
321WMAKE_TGTS=
322.if !defined(SUBDIR_OVERRIDE)
323WMAKE_TGTS+= _worldtmp _bootstrap-tools
324.endif
325WMAKE_TGTS+= _cleanobj _obj _build-tools
326.if !defined(SUBDIR_OVERRIDE)
327WMAKE_TGTS+= _cross-tools
328.endif
329WMAKE_TGTS+= _includes _libraries _depend everything
330
331buildworld: ${WMAKE_TGTS}
332.ORDER: ${WMAKE_TGTS}
333
315#
316# installcheck
317#
318# Checks to be sure system is ready for installworld
319#
320installcheck:
321.if !defined(NO_SENDMAIL)
322 @if ! `grep -q '^smmsp:' /etc/passwd`; then \

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

356 @echo ">>> Making hierarchy"
357 @echo "--------------------------------------------------------------"
358 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 hierarchy
359 @echo
360 @echo "--------------------------------------------------------------"
361 @echo ">>> Installing everything.."
362 @echo "--------------------------------------------------------------"
363 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
334#
335# installcheck
336#
337# Checks to be sure system is ready for installworld
338#
339installcheck:
340.if !defined(NO_SENDMAIL)
341 @if ! `grep -q '^smmsp:' /etc/passwd`; then \

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

375 @echo ">>> Making hierarchy"
376 @echo "--------------------------------------------------------------"
377 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 hierarchy
378 @echo
379 @echo "--------------------------------------------------------------"
380 @echo ">>> Installing everything.."
381 @echo "--------------------------------------------------------------"
382 cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
364.if !defined(NOMAN)
383.if !defined(NOMAN) && !defined(NO_MAKEDB_RUN)
365 @echo
366 @echo "--------------------------------------------------------------"
367 @echo ">>> Rebuilding man page indices"
368 @echo "--------------------------------------------------------------"
369 cd ${.CURDIR}/share/man; ${MAKE} makedb
370.endif
371
372#

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

467 @echo "--------------------------------------------------------------"
468.endfor
469
470#
471# installkernel
472#
473# Install the kernel defined by INSTALLKERNEL
474#
384 @echo
385 @echo "--------------------------------------------------------------"
386 @echo ">>> Rebuilding man page indices"
387 @echo "--------------------------------------------------------------"
388 cd ${.CURDIR}/share/man; ${MAKE} makedb
389.endif
390
391#

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

486 @echo "--------------------------------------------------------------"
487.endfor
488
489#
490# installkernel
491#
492# Install the kernel defined by INSTALLKERNEL
493#
475installkernel:
494installkernel reinstallkernel:
476 cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
495 cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
477 ${CROSSENV} ${MAKE} KERNEL=${INSTKERNNAME} install
478reinstallkernel:
479 cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
480 ${CROSSENV} ${MAKE} KERNEL=${INSTKERNNAME} reinstall
496 ${CROSSENV} ${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
481
482#
483# kernel
484#
485# Short hand for `make buildkernel installkernel'
486#
487kernel: buildkernel installkernel
488

--- 350 unchanged lines hidden ---
497
498#
499# kernel
500#
501# Short hand for `make buildkernel installkernel'
502#
503kernel: buildkernel installkernel
504

--- 350 unchanged lines hidden ---