1994-08-13 23:47:28 +01:00
|
|
|
#
|
1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1994-08-13 23:47:28 +01:00
|
|
|
#
|
|
|
|
# Make command line options:
|
1996-05-04 08:12:07 +01:00
|
|
|
# -DCLOBBER will remove /usr/include
|
1994-08-13 23:47:28 +01:00
|
|
|
# -DMAKE_LOCAL to add ./local to the SUBDIR list
|
|
|
|
# -DMAKE_PORTS to add ./ports to the SUBDIR list
|
1994-09-29 14:06:54 +01:00
|
|
|
# -DMAKE_EBONES to build eBones (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 14:06:54 +01:00
|
|
|
#
|
1994-08-13 23:47:28 +01: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 22:34:59 +01:00
|
|
|
# -DNOCRYPT will prevent building of crypt versions
|
1994-09-16 21:24:29 +01:00
|
|
|
# -DNOLKM do not build loadable kernel modules
|
1994-08-13 23:47:28 +01:00
|
|
|
# -DNOOBJDIR do not run ``${MAKE} obj''
|
|
|
|
# -DNOPROFILE do not build profiled libraries
|
1994-08-20 22:34:59 +01:00
|
|
|
# -DNOSECURE do not go into secure subdir
|
1996-07-27 22:47:42 +01:00
|
|
|
# -DNOGAMES do not go into games subdir
|
1996-11-01 19:03:33 +00:00
|
|
|
# -DNOSHARE do not go into share subdir
|
1997-01-11 10:53:01 +00:00
|
|
|
# -DNOINFO do not make or install info files
|
1996-07-27 22:47:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# The intended user-driven targets are:
|
|
|
|
# world - rebuild *everything*, including glue to help do upgrades.
|
|
|
|
# reinstall - use an existing (eg: NFS mounted) build to do an update.
|
|
|
|
# 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 15:22:50 +01: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 22:47:42 +01:00
|
|
|
|
1994-05-27 13:42:53 +01:00
|
|
|
|
1994-08-13 23:47:28 +01:00
|
|
|
# Put initial settings here.
|
|
|
|
SUBDIR=
|
1994-05-27 13:42:53 +01:00
|
|
|
|
1995-03-27 02:31:09 +01:00
|
|
|
# We must do include and lib first so that the perl *.ph generation
|
|
|
|
# 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 02:31:09 +01:00
|
|
|
.if exists(lib)
|
|
|
|
SUBDIR+= lib
|
|
|
|
.endif
|
1995-03-17 04:59:44 +00:00
|
|
|
|
1994-08-13 23:47:28 +01:00
|
|
|
.if exists(bin)
|
|
|
|
SUBDIR+= bin
|
|
|
|
.endif
|
1996-07-27 22:47:42 +01:00
|
|
|
.if exists(games) && !defined(NOGAMES)
|
1994-08-13 23:47:28 +01:00
|
|
|
SUBDIR+= games
|
|
|
|
.endif
|
|
|
|
.if exists(gnu)
|
|
|
|
SUBDIR+= gnu
|
|
|
|
.endif
|
1994-09-29 14:06:54 +01:00
|
|
|
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
1994-09-09 21:29:20 +01:00
|
|
|
SUBDIR+= eBones
|
|
|
|
.endif
|
1994-08-13 23:47:28 +01: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 23:47:28 +01: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 21:24:29 +01:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
|
|
|
SUBDIR+= secure
|
|
|
|
.endif
|
|
|
|
.if exists(lkm) && !defined(NOLKM)
|
|
|
|
SUBDIR+= lkm
|
|
|
|
.endif
|
1994-08-13 23:47:28 +01: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 23:47:28 +01:00
|
|
|
# These are last, since it is nice to at least get the base system
|
|
|
|
# rebuilt before you do them.
|
|
|
|
.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
|
|
|
|
SUBDIR+= local
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
|
|
|
|
SUBDIR+= ports
|
|
|
|
.endif
|
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR
|
1994-08-13 23:47:28 +01: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 23:47:28 +01:00
|
|
|
.if defined(NOCLEANDIR)
|
|
|
|
CLEANDIR= clean
|
1995-05-30 00:50:55 +01:00
|
|
|
.else
|
1994-08-13 23:47:28 +01:00
|
|
|
CLEANDIR= cleandir
|
|
|
|
.endif
|
1995-11-25 01:28:07 +00:00
|
|
|
.endif
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-10-05 19:36:38 +01:00
|
|
|
SUP?= sup
|
|
|
|
SUPFLAGS?= -v
|
|
|
|
|
1996-07-27 22:47:42 +01: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 08:12:07 +01:00
|
|
|
|
1996-07-27 22:47:42 +01: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 19:14:37 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-11-26 03:26:31 +00:00
|
|
|
@echo "make world started on `LC_TIME=C date`"
|
1996-09-18 19:14:37 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
.if target(pre-world)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Making 'pre-world' target"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} pre-world
|
|
|
|
@echo
|
1996-06-20 19:47:04 +01:00
|
|
|
.endif
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo " Making hierarchy"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} hierarchy
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding /usr/share/mk"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} mk
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Cleaning up the source tree"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
.if defined(NOCLEAN)
|
|
|
|
@echo "Not cleaning anything! I sure hope you know what you are doing!"
|
|
|
|
.else
|
1996-08-07 14:21:43 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} ${CLEANDIR}
|
1996-07-27 22:47:42 +01:00
|
|
|
.endif
|
|
|
|
@echo
|
1996-08-07 14:21:43 +01:00
|
|
|
.if !defined(NOOBJDIR)
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding the obj tree"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} obj
|
|
|
|
@echo
|
1996-08-07 14:21:43 +01:00
|
|
|
.endif
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding bootstrap tools"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} bootstrap
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding tools necessary to build the include files"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} include-tools
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding /usr/include"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} includes
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding tools needed to build the libraries"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} lib-tools
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding /usr/lib"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} libraries
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-09-19 17:36:24 +01:00
|
|
|
@echo " Rebuilding sgml tools, symorder, groff and zic(8)"
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} build-tools
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-08-30 23:35:30 +01:00
|
|
|
@echo " Rebuilding dependencies"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} depend
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Building everything.."
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} all
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Installing everything.."
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} install
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding man page indexes"
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
1996-06-20 19:47:04 +01:00
|
|
|
.if target(post-world)
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Making 'post-world' target"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-06-20 19:47:04 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} post-world
|
|
|
|
.endif
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-11-26 03:26:31 +00:00
|
|
|
@echo "make world completed on `LC_TIME=C date`"
|
1996-08-30 23:35:30 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01: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 22:47:42 +01:00
|
|
|
@echo " Making hierarchy"
|
1995-11-25 01:28:07 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} hierarchy
|
1995-11-25 01:28:07 +00:00
|
|
|
@echo
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo " Rebuilding /usr/share/mk"
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} mk
|
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-08-30 23:35:30 +01:00
|
|
|
@echo " Installing everything.."
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR} && ${MAKE} install
|
1996-08-30 23:35:30 +01:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding man page indexes"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
|
|
|
|
1994-08-26 21:16:58 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# update
|
|
|
|
#
|
|
|
|
# Update the source tree, by running sup and/or running cvs to update to the
|
|
|
|
# latest copy.
|
|
|
|
#
|
1994-08-26 21:16:58 +01:00
|
|
|
update:
|
|
|
|
.if defined(SUP_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Running sup"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-10-05 19:36:38 +01:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE}
|
1995-09-15 02:09:59 +01:00
|
|
|
.if defined(SUPFILE1)
|
1996-10-05 19:36:38 +01:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE1}
|
1995-09-15 02:09:59 +01:00
|
|
|
.endif
|
|
|
|
.if defined(SUPFILE2)
|
1996-10-05 19:36:38 +01:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE2}
|
1995-09-15 02:09:59 +01:00
|
|
|
.endif
|
1994-08-26 21:16:58 +01:00
|
|
|
.endif
|
|
|
|
.if defined(CVS_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Updating /usr/src from cvs repository" ${CVSROOT}
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-06-22 18:58:44 +01:00
|
|
|
cd ${.CURDIR} && cvs -q update -P -d
|
1994-08-26 21:16:58 +01:00
|
|
|
.endif
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# most
|
|
|
|
#
|
|
|
|
# Build most of the user binaries on the existing system libs and includes.
|
|
|
|
#
|
|
|
|
most:
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01:00
|
|
|
@echo " Building programs only"
|
1994-08-13 23:47:28 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 22:47:42 +01: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
|
|
|
|
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most
|
|
|
|
#.endif
|
|
|
|
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most
|
|
|
|
#.endif
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# installmost
|
|
|
|
#
|
|
|
|
# Install the binaries built by the 'most' target. This does not include
|
|
|
|
# libraries or include files.
|
|
|
|
#
|
1994-10-15 22:19:56 +01:00
|
|
|
installmost:
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Installing programs only"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
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
|
1995-03-14 21:32:46 +00:00
|
|
|
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
|
1994-10-15 22:19:56 +01:00
|
|
|
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost
|
|
|
|
#.endif
|
|
|
|
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
|
|
|
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost
|
|
|
|
#.endif
|
|
|
|
|
1996-07-27 22:47:42 +01: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 22:19:56 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# heirarchy - ensure that all the needed directories are present
|
|
|
|
#
|
|
|
|
hierarchy:
|
|
|
|
cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
|
|
|
|
|
|
|
|
#
|
|
|
|
# mk - update the /usr/share/mk makefiles.
|
|
|
|
#
|
1994-08-13 23:47:28 +01:00
|
|
|
mk:
|
1996-06-24 05:26:21 +01:00
|
|
|
cd ${.CURDIR}/share/mk && ${MAKE} install
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# 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:
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
|
1996-08-07 14:25:59 +01:00
|
|
|
${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 22:47:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# include-tools - generally the same as 'bootstrap', except that it's for
|
|
|
|
# things that are specifically needed to generate include files.
|
|
|
|
#
|
|
|
|
# XXX should be merged with bootstrap, it's not worth keeeping them seperate
|
|
|
|
#
|
|
|
|
include-tools:
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 22:47:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# includes - possibly generate and install the include files.
|
|
|
|
#
|
1996-02-17 14:23:25 +00:00
|
|
|
includes:
|
1994-08-13 23:47:28 +01: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 23:47:28 +01:00
|
|
|
.endif
|
1996-08-30 23:35:30 +01:00
|
|
|
cd ${.CURDIR}/include/rpcsvc && ${MAKE} all
|
1994-08-13 23:47:28 +01:00
|
|
|
cd ${.CURDIR}/include && ${MAKE} install
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR}/gnu/include && ${MAKE} install
|
1994-09-12 06:17:15 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
|
1995-03-06 05:52:47 +00:00
|
|
|
cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
|
1996-10-04 09:48:27 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall
|
1994-09-12 06:17:15 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
|
1994-10-12 00:33:00 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
|
1994-09-29 14:06:54 +01:00
|
|
|
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
|
|
|
cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall
|
1995-11-09 09:58:17 +00:00
|
|
|
cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall
|
1995-11-26 07:31:13 +00:00
|
|
|
cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall
|
1994-08-13 23:47:28 +01:00
|
|
|
.endif
|
1997-01-12 18:32:53 +00:00
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall
|
1994-08-13 23:47:28 +01:00
|
|
|
cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
|
1996-06-26 23:47:52 +01:00
|
|
|
cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
|
1994-09-19 06:32:31 +01:00
|
|
|
cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
|
1995-03-23 19:03:02 +00:00
|
|
|
.if !defined(WANT_CSRG_LIBM)
|
1994-09-30 17:08:47 +01:00
|
|
|
cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
|
|
|
|
.endif
|
1995-03-19 17:24:24 +00:00
|
|
|
cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
|
1994-08-13 23:47:28 +01:00
|
|
|
cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
|
1994-09-29 22:20:12 +01:00
|
|
|
cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
|
1996-07-27 22:47:42 +01:00
|
|
|
cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall
|
|
|
|
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 22:47:42 +01:00
|
|
|
cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# lib-tools - build tools to compile and install the libraries.
|
|
|
|
#
|
1995-01-03 22:03:25 +00:00
|
|
|
lib-tools:
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \
|
1996-08-07 14:25:59 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-10-04 09:48:27 +01:00
|
|
|
cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \
|
1995-01-19 22:41:25 +00:00
|
|
|
rm -f /usr/sbin/compile_et
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-09-19 17:36:24 +01:00
|
|
|
cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
|
|
|
cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
|
|
|
cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-01-03 22:03:25 +00:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# libraries - build and install the libraries
|
|
|
|
#
|
1994-08-13 23:47:28 +01:00
|
|
|
libraries:
|
1995-05-05 19:00:30 +01:00
|
|
|
.if exists(lib/libcompat)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 19:00:30 +01:00
|
|
|
.endif
|
1995-05-13 04:34:23 +01:00
|
|
|
.if exists(lib/libncurses)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-13 04:34:23 +01:00
|
|
|
.endif
|
|
|
|
.if exists(lib/libtermcap)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
|
|
|
.endif
|
|
|
|
.if exists(lib)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-13 04:34:23 +01:00
|
|
|
.endif
|
1995-05-05 19:00:30 +01:00
|
|
|
.if exists(gnu)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 19:00:30 +01:00
|
|
|
.endif
|
1994-08-20 22:34:59 +01:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-08-20 22:34:59 +01:00
|
|
|
.endif
|
1994-08-25 15:45:46 +01:00
|
|
|
.if exists(lib)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-08-25 15:45:46 +01:00
|
|
|
.endif
|
1996-07-21 01:05:31 +01:00
|
|
|
.if exists(usr.bin/lex/lib)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-10-24 18:51:08 +00:00
|
|
|
.endif
|
1994-09-29 14:06:54 +01:00
|
|
|
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-09-09 21:29:20 +01:00
|
|
|
.endif
|
1995-05-06 04:59:58 +01:00
|
|
|
.if exists(usr.sbin/pcvt/keycap)
|
1996-08-25 06:17:49 +01:00
|
|
|
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
|
1996-07-27 22:47:42 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-06 04:59:58 +01:00
|
|
|
.endif
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1996-07-27 22:47:42 +01:00
|
|
|
#
|
|
|
|
# build-tools - build and install any other tools needed to complete the
|
|
|
|
# compile and install.
|
|
|
|
#
|
1995-10-26 09:24:59 +00:00
|
|
|
build-tools:
|
1996-10-25 15:22:50 +01:00
|
|
|
.for d in \
|
1997-01-14 07:20:47 +00:00
|
|
|
share/info \
|
1997-01-11 10:53:01 +00:00
|
|
|
gnu/usr.bin/texinfo \
|
1996-10-25 15:22:50 +01:00
|
|
|
usr.bin/symorder \
|
|
|
|
usr.bin/sgmls \
|
|
|
|
usr.bin/sgmlfmt \
|
|
|
|
share/sgml \
|
|
|
|
usr.sbin/zic \
|
|
|
|
gnu/usr.bin/awk \
|
|
|
|
gnu/usr.bin/groff
|
|
|
|
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
1996-09-18 19:14:37 +01:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-10-25 15:22:50 +01:00
|
|
|
.endfor
|
1994-08-13 23:47:28 +01:00
|
|
|
|
1994-05-27 13:42:53 +01:00
|
|
|
.include <bsd.subdir.mk>
|