1994-08-13 22:47:28 +00:00
|
|
|
#
|
1997-10-06 09:58:11 +00:00
|
|
|
# $Id: Makefile,v 1.151 1997/10/05 22:28:50 fsmp Exp $
|
1994-08-13 22:47:28 +00:00
|
|
|
#
|
|
|
|
# Make command line options:
|
1996-05-04 07:12:07 +00:00
|
|
|
# -DCLOBBER will remove /usr/include
|
1997-10-06 09:58:11 +00:00
|
|
|
# -DMAKE_KERBEROS4 to build KerberosIV
|
1996-12-20 08:18:47 +00:00
|
|
|
# -DALLLANG to build documentation for all languages
|
|
|
|
# (where available -- see share/doc/Makefile)
|
1994-09-29 13:06:54 +00:00
|
|
|
#
|
1994-08-13 22:47:28 +00:00
|
|
|
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
|
1995-11-25 01:28:07 +00:00
|
|
|
# -DNOCLEAN do not clean at all
|
1994-08-20 21:34:59 +00:00
|
|
|
# -DNOCRYPT will prevent building of crypt versions
|
1994-09-16 20:24:29 +00:00
|
|
|
# -DNOLKM do not build loadable kernel modules
|
1994-08-13 22:47:28 +00:00
|
|
|
# -DNOOBJDIR do not run ``${MAKE} obj''
|
|
|
|
# -DNOPROFILE do not build profiled libraries
|
1994-08-20 21:34:59 +00:00
|
|
|
# -DNOSECURE do not go into secure subdir
|
1996-07-27 21:47:42 +00:00
|
|
|
# -DNOGAMES do not go into games subdir
|
1996-11-01 19:03:33 +00:00
|
|
|
# -DNOSHARE do not go into share subdir
|
1997-07-31 08:06:29 +00:00
|
|
|
# -DNOINFO do not make or install info files
|
1997-10-06 09:58:11 +00:00
|
|
|
# -DNOLIBC_R do not build libc_r.
|
1997-05-21 22:48:51 +00:00
|
|
|
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
|
1996-07-27 21:47:42 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The intended user-driven targets are:
|
1997-08-05 03:49:49 +00:00
|
|
|
# buildworld - rebuild *everything*, including glue to help do upgrades
|
|
|
|
# installworld- install everything built by "buildworld"
|
|
|
|
# world - buildworld + installworld
|
1996-07-27 21:47:42 +00:00
|
|
|
# update - convenient way to update your source tree (eg: sup/cvs)
|
|
|
|
# most - build user commands, no libraries or include files
|
|
|
|
# installmost - install user commands, no libraries or include files
|
1996-10-25 14:22:50 +00:00
|
|
|
#
|
|
|
|
# Standard targets (not defined here) are documented in the makefiles in
|
|
|
|
# /usr/share/mk. These include:
|
|
|
|
# obj depend all install clean cleandepend cleanobj
|
1996-07-27 21:47:42 +00:00
|
|
|
|
1997-08-05 03:49:49 +00:00
|
|
|
.if (!make(world)) && (!make(buildworld)) && (!make(installworld))
|
1997-05-10 06:53:40 +00:00
|
|
|
.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk
|
1997-08-05 03:49:49 +00:00
|
|
|
.endif
|
1994-05-27 12:42:53 +00:00
|
|
|
|
1994-08-13 22:47:28 +00:00
|
|
|
# Put initial settings here.
|
|
|
|
SUBDIR=
|
1994-05-27 12:42:53 +00:00
|
|
|
|
1997-10-06 09:58:11 +00:00
|
|
|
# We must do share/info early so that installation of info `dir'
|
|
|
|
# entries works correctly. Do it first since it is less likely to
|
|
|
|
# grow dependencies on include and lib than vice versa.
|
|
|
|
.if exists(share/info)
|
|
|
|
SUBDIR+= share/info
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# We must do include and lib early so that the perl *.ph generation
|
1995-03-27 01:31:09 +00:00
|
|
|
# works correctly as it uses the header files installed by this.
|
1995-03-17 04:59:44 +00:00
|
|
|
.if exists(include)
|
|
|
|
SUBDIR+= include
|
|
|
|
.endif
|
1995-03-27 01:31:09 +00:00
|
|
|
.if exists(lib)
|
|
|
|
SUBDIR+= lib
|
|
|
|
.endif
|
1995-03-17 04:59:44 +00:00
|
|
|
|
1994-08-13 22:47:28 +00:00
|
|
|
.if exists(bin)
|
|
|
|
SUBDIR+= bin
|
|
|
|
.endif
|
1996-07-27 21:47:42 +00:00
|
|
|
.if exists(games) && !defined(NOGAMES)
|
1994-08-13 22:47:28 +00:00
|
|
|
SUBDIR+= games
|
|
|
|
.endif
|
|
|
|
.if exists(gnu)
|
|
|
|
SUBDIR+= gnu
|
|
|
|
.endif
|
1997-10-06 09:58:11 +00:00
|
|
|
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
|
|
|
SUBDIR+= kerberosIV
|
1994-09-09 20:29:20 +00:00
|
|
|
.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
.if exists(libexec)
|
|
|
|
SUBDIR+= libexec
|
|
|
|
.endif
|
|
|
|
.if exists(sbin)
|
|
|
|
SUBDIR+= sbin
|
|
|
|
.endif
|
1996-11-01 19:03:33 +00:00
|
|
|
.if exists(share) && !defined(NOSHARE)
|
1994-08-13 22:47:28 +00:00
|
|
|
SUBDIR+= share
|
|
|
|
.endif
|
|
|
|
.if exists(sys)
|
|
|
|
SUBDIR+= sys
|
|
|
|
.endif
|
|
|
|
.if exists(usr.bin)
|
|
|
|
SUBDIR+= usr.bin
|
|
|
|
.endif
|
|
|
|
.if exists(usr.sbin)
|
|
|
|
SUBDIR+= usr.sbin
|
|
|
|
.endif
|
1994-09-16 20:24:29 +00:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
|
|
|
SUBDIR+= secure
|
|
|
|
.endif
|
|
|
|
.if exists(lkm) && !defined(NOLKM)
|
|
|
|
SUBDIR+= lkm
|
|
|
|
.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1994-11-14 20:52:54 +00:00
|
|
|
# etc must be last for "distribute" to work
|
|
|
|
.if exists(etc) && make(distribute)
|
|
|
|
SUBDIR+= etc
|
|
|
|
.endif
|
|
|
|
|
1994-08-13 22:47:28 +00:00
|
|
|
# These are last, since it is nice to at least get the base system
|
|
|
|
# rebuilt before you do them.
|
1997-05-21 19:41:16 +00:00
|
|
|
.if defined(LOCAL_DIRS)
|
|
|
|
.for _DIR in ${LOCAL_DIRS}
|
|
|
|
.if exists(${_DIR}) & exists(${_DIR}/Makefile)
|
|
|
|
SUBDIR+= ${_DIR}
|
1994-08-13 22:47:28 +00:00
|
|
|
.endif
|
1997-05-21 19:41:16 +00:00
|
|
|
.endfor
|
1994-08-13 22:47:28 +00:00
|
|
|
.endif
|
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR
|
1994-08-13 22:47:28 +00:00
|
|
|
.if defined(NOOBJDIR)
|
|
|
|
OBJDIR=
|
|
|
|
.else
|
|
|
|
OBJDIR= obj
|
|
|
|
.endif
|
1995-11-25 01:28:07 +00:00
|
|
|
|
|
|
|
.if defined(NOCLEAN)
|
|
|
|
CLEANDIR=
|
|
|
|
.else
|
1994-08-13 22:47:28 +00:00
|
|
|
.if defined(NOCLEANDIR)
|
|
|
|
CLEANDIR= clean
|
1995-05-29 23:50:55 +00:00
|
|
|
.else
|
1994-08-13 22:47:28 +00:00
|
|
|
CLEANDIR= cleandir
|
|
|
|
.endif
|
1995-11-25 01:28:07 +00:00
|
|
|
.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1997-08-05 03:49:49 +00:00
|
|
|
SUP?= sup
|
|
|
|
SUPFLAGS?= -v
|
1996-10-05 18:36:38 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# While building tools for bootstrapping, we dont need to waste time on
|
|
|
|
# profiled libraries or man pages. This speeds things up somewhat.
|
|
|
|
#
|
1997-01-11 10:53:01 +00:00
|
|
|
MK_FLAGS= -DNOINFO -DNOMAN -DNOPROFILE
|
1996-05-04 07:12:07 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# world
|
|
|
|
#
|
|
|
|
# Attempt to rebuild and reinstall *everything*, with reasonable chance of
|
|
|
|
# success, regardless of how old your existing system is.
|
|
|
|
#
|
|
|
|
# >> Beware, it overwrites the local build environment! <<
|
|
|
|
#
|
|
|
|
world:
|
1996-09-18 18:14:37 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-11-26 03:26:31 +00:00
|
|
|
@echo "make world started on `LC_TIME=C date`"
|
1996-09-18 18:14:37 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
.if target(pre-world)
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Making 'pre-world' target"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-26 14:15:25 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} pre-world
|
1996-06-20 18:47:04 +00:00
|
|
|
.endif
|
1997-08-26 14:15:25 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} buildworld
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} -B installworld
|
1997-08-05 03:49:49 +00:00
|
|
|
.if target(post-world)
|
|
|
|
@echo
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Making 'post-world' target"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-26 14:15:25 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} post-world
|
1997-08-05 03:49:49 +00:00
|
|
|
.endif
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo "make world completed on `LC_TIME=C date`"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
|
|
|
|
.if defined(MAKEOBJDIRPREFIX)
|
|
|
|
WORLDTMP= ${MAKEOBJDIRPREFIX}${.CURDIR}/tmp
|
1996-07-27 21:47:42 +00:00
|
|
|
.else
|
1997-08-05 03:49:49 +00:00
|
|
|
WORLDTMP= /usr/obj${.CURDIR}/tmp
|
1996-07-27 21:47:42 +00:00
|
|
|
.endif
|
1997-08-05 03:49:49 +00:00
|
|
|
STRICTTMPPATH= ${WORLDTMP}/sbin:${WORLDTMP}/usr/sbin:${WORLDTMP}/bin:${WORLDTMP}/usr/bin
|
|
|
|
TMPPATH= ${STRICTTMPPATH}:${PATH}
|
|
|
|
|
|
|
|
# XXX COMPILER_PATH is needed for finding cc1, ld and as
|
|
|
|
# XXX GCC_EXEC_PREFIX is for *crt.o. It is probably unnecssary now
|
|
|
|
# tbat LIBRARY_PATH is set. We still can't use -nostdlib, since gcc
|
|
|
|
# wouldn't link *crt.o or libgcc if it were used.
|
|
|
|
# XXX LD_LIBRARY_PATH is for ld.so. It is also used by ld, although we don't
|
|
|
|
# want that - all compile-time library paths should be resolved by gcc.
|
|
|
|
# It fails for set[ug]id executables (are any used?).
|
|
|
|
COMPILER_ENV= BISON_SIMPLE=${WORLDTMP}/usr/share/misc/bison.simple \
|
|
|
|
COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
|
|
|
|
GCC_EXEC_PREFIX=${WORLDTMP}/usr/lib/ \
|
|
|
|
LD_LIBRARY_PATH=${WORLDTMP}${SHLIBDIR} \
|
|
|
|
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib
|
|
|
|
|
|
|
|
BMAKEENV= PATH=${TMPPATH} ${COMPILER_ENV} NOEXTRADEPEND=t
|
|
|
|
XMAKEENV= PATH=${STRICTTMPPATH} ${COMPILER_ENV} \
|
|
|
|
CC='cc -nostdinc' # XXX -nostdlib
|
|
|
|
|
|
|
|
# used to compile and install 'make' in temporary build tree
|
|
|
|
IBMAKE= ${BMAKEENV} ${MAKE} DESTDIR=${WORLDTMP}
|
|
|
|
# bootstrap make
|
|
|
|
BMAKE= ${BMAKEENV} ${WORLDTMP}/usr/bin/${MAKE} DESTDIR=${WORLDTMP}
|
|
|
|
# cross make used for compilation
|
|
|
|
XMAKE= ${XMAKEENV} ${WORLDTMP}/usr/bin/${MAKE} DESTDIR=${WORLDTMP}
|
|
|
|
# cross make used for final installation
|
|
|
|
IXMAKE= ${XMAKEENV} ${WORLDTMP}/usr/bin/${MAKE}
|
|
|
|
|
|
|
|
#
|
|
|
|
# buildworld
|
|
|
|
#
|
|
|
|
# Attempt to rebuild the entire system, with reasonable chance of
|
|
|
|
# success, regardless of how old your existing system is.
|
|
|
|
#
|
|
|
|
buildworld:
|
|
|
|
.if !defined(NOCLEAN)
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Cleaning up the temporary build tree"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
mkdir -p ${WORLDTMP}
|
|
|
|
chflags -R noschg ${WORLDTMP}/
|
|
|
|
rm -rf ${WORLDTMP}
|
1996-08-07 13:21:43 +00:00
|
|
|
.endif
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Making make"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
mkdir -p ${WORLDTMP}/usr/bin
|
|
|
|
cd ${.CURDIR}/usr.bin/make && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${IBMAKE} -I${.CURDIR}/share/mk -B ${CLEANDIR} ${OBJDIR} depend && \
|
|
|
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} all && \
|
1997-09-05 09:11:24 +00:00
|
|
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} \
|
1997-10-05 22:28:50 +00:00
|
|
|
-B install clean cleandepend
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Making hierarchy"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} hierarchy
|
|
|
|
.if !defined(NOCLEAN)
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Cleaning up the obj tree"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} par-${CLEANDIR}
|
1997-08-05 03:49:49 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOOBJDIR)
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding the obj tree"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} par-obj
|
1997-08-05 03:49:49 +00:00
|
|
|
.endif
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding bootstrap tools"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} bootstrap
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding tools necessary to build the include files"
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} include-tools
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding /usr/include"
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-09-16 10:45:41 +00:00
|
|
|
cd ${.CURDIR} && SHARED=symlinks ${BMAKE} includes
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding tools needed to build the libraries"
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} lib-tools
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding /usr/lib"
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} libraries
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding all other tools needed to build the world"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${BMAKE} build-tools
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Rebuilding dependencies"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR} && ${XMAKE} ${.MAKEFLAGS} par-depend
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
@echo " Building everything.."
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-08-05 03:49:49 +00:00
|
|
|
cd ${.CURDIR} && ${XMAKE} all
|
|
|
|
|
|
|
|
#
|
|
|
|
# installworld
|
|
|
|
#
|
|
|
|
# Installs everything compiled by a 'buildworld'.
|
|
|
|
#
|
|
|
|
installworld:
|
|
|
|
cd ${.CURDIR} && ${IXMAKE} reinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# reinstall
|
|
|
|
#
|
|
|
|
# If you have a build server, you can NFS mount the source and obj directories
|
|
|
|
# and do a 'make reinstall' on the *client* to install new binaries from the
|
|
|
|
# most recent server build.
|
|
|
|
#
|
|
|
|
reinstall:
|
1995-11-25 01:28:07 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo " Making hierarchy"
|
1995-11-25 01:28:07 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} hierarchy
|
1995-11-25 01:28:07 +00:00
|
|
|
@echo
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo " Installing everything.."
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR} && ${MAKE} install
|
1996-08-30 22:35:30 +00:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding man page indexes"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
|
|
|
|
|
|
|
#
|
|
|
|
# update
|
|
|
|
#
|
|
|
|
# Update the source tree, by running sup and/or running cvs to update to the
|
|
|
|
# latest copy.
|
|
|
|
#
|
1994-08-26 20:16:58 +00:00
|
|
|
update:
|
|
|
|
.if defined(SUP_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Running sup"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-10-05 18:36:38 +00:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE}
|
1995-09-15 01:09:59 +00:00
|
|
|
.if defined(SUPFILE1)
|
1996-10-05 18:36:38 +00:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE1}
|
1995-09-15 01:09:59 +00:00
|
|
|
.endif
|
|
|
|
.if defined(SUPFILE2)
|
1996-10-05 18:36:38 +00:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE2}
|
1995-09-15 01:09:59 +00:00
|
|
|
.endif
|
1994-08-26 20:16:58 +00:00
|
|
|
.endif
|
|
|
|
.if defined(CVS_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Updating /usr/src from cvs repository" ${CVSROOT}
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 22:28:50 +00:00
|
|
|
cd ${.CURDIR} && cvs -q update -P -d
|
1994-08-26 20:16:58 +00:00
|
|
|
.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# most
|
|
|
|
#
|
|
|
|
# Build most of the user binaries on the existing system libs and includes.
|
|
|
|
#
|
|
|
|
most:
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 21:47:42 +00:00
|
|
|
@echo " Building programs only"
|
1994-08-13 22:47:28 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all
|
|
|
|
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
|
1997-10-06 09:58:11 +00:00
|
|
|
#.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/kerberosIV && ${MAKE} ${.MAKEFLAGS} most
|
1996-07-27 21:47:42 +00:00
|
|
|
#.endif
|
|
|
|
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
1997-10-05 09:40:24 +00:00
|
|
|
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most
|
1996-07-27 21:47:42 +00:00
|
|
|
#.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# installmost
|
|
|
|
#
|
|
|
|
# Install the binaries built by the 'most' target. This does not include
|
|
|
|
# libraries or include files.
|
|
|
|
#
|
1994-10-15 21:19:56 +00:00
|
|
|
installmost:
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Installing programs only"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install
|
|
|
|
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
|
1997-10-06 09:58:11 +00:00
|
|
|
#.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/kerberosIV && ${MAKE} ${.MAKEFLAGS} installmost
|
1994-10-15 21:19:56 +00:00
|
|
|
#.endif
|
|
|
|
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
1997-10-05 09:40:24 +00:00
|
|
|
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost
|
1994-10-15 21:19:56 +00:00
|
|
|
#.endif
|
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# From here onwards are utility targets used by the 'make world' and
|
|
|
|
# related targets. If your 'world' breaks, you may like to try to fix
|
|
|
|
# the problem and manually run the following targets to attempt to
|
|
|
|
# complete the build. Beware, this is *not* guaranteed to work, you
|
|
|
|
# need to have a pretty good grip on the current state of the system
|
|
|
|
# to attempt to manually finish it. If in doubt, 'make world' again.
|
|
|
|
#
|
1994-10-15 21:19:56 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# heirarchy - ensure that all the needed directories are present
|
|
|
|
#
|
|
|
|
hierarchy:
|
|
|
|
cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
|
|
|
|
|
|
|
|
#
|
|
|
|
# bootstrap - [re]build tools needed to run the actual build, this includes
|
|
|
|
# tools needed by 'make depend', as some tools are needed to generate source
|
|
|
|
# for the dependency information to be gathered from.
|
|
|
|
#
|
|
|
|
bootstrap:
|
1997-08-05 03:49:49 +00:00
|
|
|
.if defined(DESTDIR)
|
|
|
|
rm -f ${DESTDIR}/usr/src/sys
|
|
|
|
ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src
|
|
|
|
cd ${.CURDIR}/include && find -dx . | cpio -dump ${DESTDIR}/usr/include
|
|
|
|
cd ${.CURDIR}/include && make symlinks
|
|
|
|
.endif
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} -DNOLIB && \
|
|
|
|
${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
|
1997-09-28 16:25:28 +00:00
|
|
|
.if !defined(NOOBJDIR)
|
|
|
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} obj
|
|
|
|
.endif
|
1996-07-27 21:47:42 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# include-tools - generally the same as 'bootstrap', except that it's for
|
|
|
|
# things that are specifically needed to generate include files.
|
|
|
|
#
|
1997-08-05 03:49:49 +00:00
|
|
|
# XXX should be merged with bootstrap, it's not worth keeeping them separate.
|
|
|
|
# Well, maybe it is now. We force 'cleandepend' here to avoid dependencies
|
|
|
|
# on cleaned away headers in ${WORLDTMP}.
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
include-tools:
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} -B cleandepend depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 21:47:42 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# includes - possibly generate and install the include files.
|
|
|
|
#
|
1996-02-17 14:23:25 +00:00
|
|
|
includes:
|
1994-08-13 22:47:28 +00:00
|
|
|
.if defined(CLOBBER)
|
1995-03-18 07:02:10 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/include/*
|
|
|
|
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
|
|
|
|
-p ${DESTDIR}/usr/include
|
1994-08-13 22:47:28 +00:00
|
|
|
.endif
|
1997-10-05 09:40:24 +00:00
|
|
|
cd ${.CURDIR}/include && ${MAKE} -B all install
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR}/gnu/include && ${MAKE} install
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libmp && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/gnu/lib/libobjc && ${MAKE} beforeinstall
|
1994-09-12 05:17:15 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
|
1995-03-06 05:52:47 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
|
1997-07-31 08:31:50 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libgmp && ${MAKE} beforeinstall
|
|
|
|
.if exists(secure) && !defined(NOCRYPT)
|
|
|
|
cd ${.CURDIR}/secure/lib/libdes && ${MAKE} beforeinstall
|
|
|
|
.endif
|
|
|
|
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libacl && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libkadm && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libkafs && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libkdb && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libkrb && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib/libtelnet && ${MAKE} beforeinstall
|
|
|
|
.else
|
|
|
|
cd ${.CURDIR}/lib/libtelnet && ${MAKE} beforeinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
.endif
|
1997-04-30 16:02:03 +00:00
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall
|
1997-05-26 05:27:37 +00:00
|
|
|
cd ${.CURDIR}/lib/libalias && ${MAKE} beforeinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/lib/libdisk && ${MAKE} beforeinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
|
1996-06-26 22:47:52 +00:00
|
|
|
cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
|
1994-09-19 05:32:31 +00:00
|
|
|
cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
|
1997-07-31 08:31:50 +00:00
|
|
|
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
|
1995-03-23 19:03:02 +00:00
|
|
|
.if !defined(WANT_CSRG_LIBM)
|
1994-09-30 16:08:47 +00:00
|
|
|
cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
|
|
|
|
.endif
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/lib/libopie && ${MAKE} beforeinstall
|
1995-03-19 17:24:24 +00:00
|
|
|
cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
|
1994-09-29 21:20:12 +00:00
|
|
|
cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
|
1997-10-06 09:58:11 +00:00
|
|
|
.if !defined(NOTCL) && exists (${.CURDIR}/contrib/tcl) && \
|
|
|
|
exists(${.CURDIR}/usr.bin/tclsh) && exists (${.CURDIR}/lib/libtcl)
|
|
|
|
cd ${.CURDIR}/lib/libtcl && ${MAKE} installhdrs
|
|
|
|
.endif
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
|
1995-01-20 20:28:31 +00:00
|
|
|
cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
|
1995-01-21 23:01:19 +00:00
|
|
|
cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
|
1996-07-27 21:47:42 +00:00
|
|
|
cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/lib/libvgl && ${MAKE} beforeinstall
|
1997-06-08 14:03:23 +00:00
|
|
|
cd ${.CURDIR}/lib/libz && ${MAKE} beforeinstall
|
1997-10-06 09:58:11 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/f2c && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} beforeinstall
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# lib-tools - build tools to compile and install the libraries.
|
|
|
|
#
|
1997-08-05 03:49:49 +00:00
|
|
|
# XXX gperf is required for cc
|
|
|
|
# XXX a new ld and tsort is required for cc
|
1995-01-03 22:03:25 +00:00
|
|
|
lib-tools:
|
1997-08-05 03:49:49 +00:00
|
|
|
.for d in \
|
|
|
|
gnu/usr.bin/gperf \
|
|
|
|
gnu/usr.bin/ld \
|
|
|
|
usr.bin/tsort \
|
|
|
|
gnu/usr.bin/as \
|
|
|
|
gnu/usr.bin/bison \
|
|
|
|
gnu/usr.bin/cc \
|
|
|
|
usr.bin/ar \
|
|
|
|
usr.bin/compile_et \
|
|
|
|
usr.bin/lex/lib \
|
|
|
|
usr.bin/mk_cmds \
|
|
|
|
usr.bin/nm \
|
|
|
|
usr.bin/ranlib \
|
|
|
|
usr.bin/uudecode
|
|
|
|
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1997-08-05 03:49:49 +00:00
|
|
|
.endfor
|
1995-01-03 22:03:25 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# libraries - build and install the libraries
|
|
|
|
#
|
1994-08-13 22:47:28 +00:00
|
|
|
libraries:
|
1997-04-09 18:59:36 +00:00
|
|
|
.if exists(lib/csu/i386)
|
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1997-04-09 18:59:36 +00:00
|
|
|
.endif
|
1995-05-05 18:00:30 +00:00
|
|
|
.if exists(lib/libcompat)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 18:00:30 +00:00
|
|
|
.endif
|
1995-05-13 03:34:23 +00:00
|
|
|
.if exists(lib/libncurses)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1995-05-13 03:34:23 +00:00
|
|
|
.endif
|
|
|
|
.if exists(lib/libtermcap)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 21:47:42 +00:00
|
|
|
.endif
|
1995-05-05 18:00:30 +00:00
|
|
|
.if exists(gnu)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 18:00:30 +00:00
|
|
|
.endif
|
1994-08-20 21:34:59 +00:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1994-08-20 21:34:59 +00:00
|
|
|
.endif
|
1994-08-25 14:45:46 +00:00
|
|
|
.if exists(lib)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/lib && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1994-08-25 14:45:46 +00:00
|
|
|
.endif
|
1996-07-21 00:05:31 +00:00
|
|
|
.if exists(usr.bin/lex/lib)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1995-10-24 18:51:08 +00:00
|
|
|
.endif
|
1997-10-05 15:39:47 +00:00
|
|
|
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
|
|
|
cd ${.CURDIR}/kerberosIV/lib && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1994-09-09 20:29:20 +00:00
|
|
|
.endif
|
1995-05-06 03:59:58 +00:00
|
|
|
.if exists(usr.sbin/pcvt/keycap)
|
1996-08-25 05:17:49 +00:00
|
|
|
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
1995-05-06 03:59:58 +00:00
|
|
|
.endif
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
|
|
|
# build-tools - build and install any other tools needed to complete the
|
|
|
|
# compile and install.
|
1997-08-05 03:49:49 +00:00
|
|
|
# ifdef stale
|
|
|
|
# bc and cpp are required to build groff. Otherwise, the order here is
|
|
|
|
# mostly historical, i.e., bogus.
|
|
|
|
# chmod is used to build gcc's tmpmultilib[2] at obscure times.
|
|
|
|
# endif stale
|
|
|
|
# XXX uname is a bug - the target should not depend on the host.
|
1996-07-27 21:47:42 +00:00
|
|
|
#
|
1995-10-26 09:24:59 +00:00
|
|
|
build-tools:
|
1996-10-25 14:22:50 +00:00
|
|
|
.for d in \
|
1997-08-05 03:49:49 +00:00
|
|
|
bin/cat \
|
|
|
|
bin/chmod \
|
|
|
|
bin/cp \
|
|
|
|
bin/date \
|
|
|
|
bin/dd \
|
|
|
|
bin/echo \
|
|
|
|
bin/expr \
|
|
|
|
bin/hostname \
|
|
|
|
bin/ln \
|
|
|
|
bin/ls \
|
|
|
|
bin/mkdir \
|
|
|
|
bin/mv \
|
|
|
|
bin/rm \
|
|
|
|
bin/sh \
|
|
|
|
bin/test \
|
|
|
|
gnu/usr.bin/awk \
|
|
|
|
gnu/usr.bin/bc \
|
|
|
|
gnu/usr.bin/grep \
|
|
|
|
gnu/usr.bin/groff \
|
|
|
|
gnu/usr.bin/gzip \
|
|
|
|
gnu/usr.bin/man/makewhatis \
|
|
|
|
gnu/usr.bin/sort \
|
1997-01-11 10:53:01 +00:00
|
|
|
gnu/usr.bin/texinfo \
|
1997-08-05 03:49:49 +00:00
|
|
|
share/info \
|
|
|
|
usr.bin/basename \
|
|
|
|
usr.bin/cap_mkdb \
|
|
|
|
usr.bin/chflags \
|
|
|
|
usr.bin/cmp \
|
|
|
|
usr.bin/col \
|
|
|
|
usr.bin/cpp \
|
|
|
|
usr.bin/expand \
|
|
|
|
usr.bin/file2c \
|
|
|
|
usr.bin/find \
|
|
|
|
usr.bin/gencat \
|
|
|
|
usr.bin/lorder \
|
|
|
|
usr.bin/m4 \
|
|
|
|
usr.bin/mkdep \
|
|
|
|
usr.bin/paste \
|
|
|
|
usr.bin/sed \
|
|
|
|
usr.bin/size \
|
|
|
|
usr.bin/soelim \
|
|
|
|
usr.bin/strip \
|
1996-10-25 14:22:50 +00:00
|
|
|
usr.bin/symorder \
|
1997-08-05 03:49:49 +00:00
|
|
|
usr.bin/touch \
|
|
|
|
usr.bin/tr \
|
|
|
|
usr.bin/true \
|
|
|
|
usr.bin/uname \
|
|
|
|
usr.bin/uuencode \
|
|
|
|
usr.bin/vgrind \
|
|
|
|
usr.bin/vi \
|
|
|
|
usr.bin/wc \
|
|
|
|
usr.bin/yacc \
|
|
|
|
usr.sbin/chown \
|
|
|
|
usr.sbin/mtree \
|
|
|
|
usr.sbin/zic
|
1996-10-25 14:22:50 +00:00
|
|
|
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
1997-10-05 09:40:24 +00:00
|
|
|
${MAKE} ${MK_FLAGS} all && \
|
|
|
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for __target in clean cleandir obj depend
|
|
|
|
.for entry in ${SUBDIR}
|
|
|
|
${entry}.${__target}__D: .PHONY
|
|
|
|
if test -d ${.CURDIR}/${entry}.${MACHINE}; then \
|
|
|
|
${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE}"; \
|
|
|
|
edir=${entry}.${MACHINE}; \
|
|
|
|
cd ${.CURDIR}/$${edir}; \
|
|
|
|
else \
|
|
|
|
${ECHODIR} "===> ${DIRPRFX}${entry}"; \
|
|
|
|
edir=${entry}; \
|
|
|
|
cd ${.CURDIR}/$${edir}; \
|
|
|
|
fi; \
|
|
|
|
${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
|
|
|
|
.endfor
|
|
|
|
par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
|
1996-10-25 14:22:50 +00:00
|
|
|
.endfor
|
1994-08-13 22:47:28 +00:00
|
|
|
|
1994-05-27 12:42:53 +00:00
|
|
|
.include <bsd.subdir.mk>
|