1994-08-14 00:47:28 +02:00
|
|
|
#
|
1997-07-31 10:31:50 +02:00
|
|
|
# $Id: Makefile,v 1.131 1997/07/31 08:06:29 asami Exp $
|
1994-08-14 00:47:28 +02:00
|
|
|
#
|
|
|
|
# Make command line options:
|
1996-05-04 09:12:07 +02:00
|
|
|
# -DCLOBBER will remove /usr/include
|
1994-09-29 14:06:54 +01:00
|
|
|
# -DMAKE_EBONES to build eBones (KerberosIV)
|
1996-12-20 09:18:47 +01:00
|
|
|
# -DALLLANG to build documentation for all languages
|
|
|
|
# (where available -- see share/doc/Makefile)
|
1994-09-29 14:06:54 +01:00
|
|
|
#
|
1994-08-14 00:47:28 +02:00
|
|
|
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
|
1995-11-25 02:28:07 +01:00
|
|
|
# -DNOCLEAN do not clean at all
|
1994-08-20 23:34:59 +02:00
|
|
|
# -DNOCRYPT will prevent building of crypt versions
|
1994-09-16 22:24:29 +02:00
|
|
|
# -DNOLKM do not build loadable kernel modules
|
1994-08-14 00:47:28 +02:00
|
|
|
# -DNOOBJDIR do not run ``${MAKE} obj''
|
|
|
|
# -DNOPROFILE do not build profiled libraries
|
1994-08-20 23:34:59 +02:00
|
|
|
# -DNOSECURE do not go into secure subdir
|
1996-07-27 23:47:42 +02:00
|
|
|
# -DNOGAMES do not go into games subdir
|
1996-11-01 20:03:33 +01:00
|
|
|
# -DNOSHARE do not go into share subdir
|
1997-07-31 10:06:29 +02:00
|
|
|
# -DNOINFO do not make or install info files
|
|
|
|
# -DNOLIBC_R do not build libc_r.
|
1997-05-22 00:48:51 +02:00
|
|
|
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
|
1996-07-27 23:47:42 +02: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 16:22:50 +02: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 23:47:42 +02:00
|
|
|
|
1997-05-10 08:53:40 +02:00
|
|
|
.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk
|
1994-05-27 14:42:53 +02:00
|
|
|
|
1994-08-14 00:47:28 +02:00
|
|
|
# Put initial settings here.
|
|
|
|
SUBDIR=
|
1994-05-27 14:42:53 +02:00
|
|
|
|
1997-04-30 18:02:03 +02: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 03:31:09 +02:00
|
|
|
# works correctly as it uses the header files installed by this.
|
1995-03-17 05:59:44 +01:00
|
|
|
.if exists(include)
|
|
|
|
SUBDIR+= include
|
|
|
|
.endif
|
1995-03-27 03:31:09 +02:00
|
|
|
.if exists(lib)
|
|
|
|
SUBDIR+= lib
|
|
|
|
.endif
|
1995-03-17 05:59:44 +01:00
|
|
|
|
1994-08-14 00:47:28 +02:00
|
|
|
.if exists(bin)
|
|
|
|
SUBDIR+= bin
|
|
|
|
.endif
|
1996-07-27 23:47:42 +02:00
|
|
|
.if exists(games) && !defined(NOGAMES)
|
1994-08-14 00:47:28 +02: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 22:29:20 +02:00
|
|
|
SUBDIR+= eBones
|
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
.if exists(libexec)
|
|
|
|
SUBDIR+= libexec
|
|
|
|
.endif
|
|
|
|
.if exists(sbin)
|
|
|
|
SUBDIR+= sbin
|
|
|
|
.endif
|
1996-11-01 20:03:33 +01:00
|
|
|
.if exists(share) && !defined(NOSHARE)
|
1994-08-14 00:47:28 +02: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 22:24:29 +02:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
|
|
|
SUBDIR+= secure
|
|
|
|
.endif
|
|
|
|
.if exists(lkm) && !defined(NOLKM)
|
|
|
|
SUBDIR+= lkm
|
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1994-11-14 21:52:54 +01:00
|
|
|
# etc must be last for "distribute" to work
|
|
|
|
.if exists(etc) && make(distribute)
|
|
|
|
SUBDIR+= etc
|
|
|
|
.endif
|
|
|
|
|
1994-08-14 00:47:28 +02:00
|
|
|
# These are last, since it is nice to at least get the base system
|
|
|
|
# rebuilt before you do them.
|
1997-05-21 21:41:16 +02:00
|
|
|
.if defined(LOCAL_DIRS)
|
|
|
|
.for _DIR in ${LOCAL_DIRS}
|
|
|
|
.if exists(${_DIR}) & exists(${_DIR}/Makefile)
|
|
|
|
SUBDIR+= ${_DIR}
|
1994-08-14 00:47:28 +02:00
|
|
|
.endif
|
1997-05-21 21:41:16 +02:00
|
|
|
.endfor
|
1994-08-14 00:47:28 +02:00
|
|
|
.endif
|
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR
|
1994-08-14 00:47:28 +02:00
|
|
|
.if defined(NOOBJDIR)
|
|
|
|
OBJDIR=
|
|
|
|
.else
|
|
|
|
OBJDIR= obj
|
|
|
|
.endif
|
1995-11-25 02:28:07 +01:00
|
|
|
|
|
|
|
.if defined(NOCLEAN)
|
|
|
|
CLEANDIR=
|
|
|
|
.else
|
1994-08-14 00:47:28 +02:00
|
|
|
.if defined(NOCLEANDIR)
|
|
|
|
CLEANDIR= clean
|
1995-05-30 01:50:55 +02:00
|
|
|
.else
|
1994-08-14 00:47:28 +02:00
|
|
|
CLEANDIR= cleandir
|
|
|
|
.endif
|
1995-11-25 02:28:07 +01:00
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1996-10-05 20:36:38 +02:00
|
|
|
SUP?= sup
|
|
|
|
SUPFLAGS?= -v
|
|
|
|
|
1996-07-27 23:47:42 +02: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 11:53:01 +01:00
|
|
|
MK_FLAGS= -DNOINFO -DNOMAN -DNOPROFILE
|
1996-05-04 09:12:07 +02:00
|
|
|
|
1996-07-27 23:47:42 +02: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 20:14:37 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-11-26 04:26:31 +01:00
|
|
|
@echo "make world started on `LC_TIME=C date`"
|
1996-09-18 20:14:37 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
.if target(pre-world)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Making 'pre-world' target"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} pre-world
|
|
|
|
@echo
|
1996-06-20 20:47:04 +02:00
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo " Making hierarchy"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} hierarchy
|
|
|
|
@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 15:21:43 +02:00
|
|
|
cd ${.CURDIR} && ${MAKE} ${CLEANDIR}
|
1996-07-27 23:47:42 +02:00
|
|
|
.endif
|
|
|
|
@echo
|
1996-08-07 15:21:43 +02:00
|
|
|
.if !defined(NOOBJDIR)
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding the obj tree"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR} && ${MAKE} obj
|
|
|
|
@echo
|
1996-08-07 15:21:43 +02:00
|
|
|
.endif
|
1996-07-27 23:47:42 +02: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 "--------------------------------------------------------------"
|
1997-06-08 17:04:06 +02:00
|
|
|
@echo " Rebuilding symorder, groff and zic(8)"
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR} && ${MAKE} build-tools
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-08-31 00:35:30 +02: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 23:47:42 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
1996-06-20 20:47:04 +02:00
|
|
|
.if target(post-world)
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Making 'post-world' target"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-06-20 20:47:04 +02:00
|
|
|
cd ${.CURDIR} && ${MAKE} post-world
|
|
|
|
.endif
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-11-26 04:26:31 +01:00
|
|
|
@echo "make world completed on `LC_TIME=C date`"
|
1996-08-31 00:35:30 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1996-07-27 23:47:42 +02: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 02:28:07 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo " Making hierarchy"
|
1995-11-25 02:28:07 +01:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR} && ${MAKE} hierarchy
|
1995-11-25 02:28:07 +01:00
|
|
|
@echo
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-08-31 00:35:30 +02:00
|
|
|
@echo " Installing everything.."
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR} && ${MAKE} install
|
1996-08-31 00:35:30 +02:00
|
|
|
@echo
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo " Rebuilding man page indexes"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
|
|
|
|
1994-08-26 22:16:58 +02:00
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
#
|
|
|
|
# update
|
|
|
|
#
|
|
|
|
# Update the source tree, by running sup and/or running cvs to update to the
|
|
|
|
# latest copy.
|
|
|
|
#
|
1994-08-26 22:16:58 +02:00
|
|
|
update:
|
|
|
|
.if defined(SUP_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Running sup"
|
|
|
|
@echo "--------------------------------------------------------------"
|
1996-10-05 20:36:38 +02:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE}
|
1995-09-15 03:09:59 +02:00
|
|
|
.if defined(SUPFILE1)
|
1996-10-05 20:36:38 +02:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE1}
|
1995-09-15 03:09:59 +02:00
|
|
|
.endif
|
|
|
|
.if defined(SUPFILE2)
|
1996-10-05 20:36:38 +02:00
|
|
|
@${SUP} ${SUPFLAGS} ${SUPFILE2}
|
1995-09-15 03:09:59 +02:00
|
|
|
.endif
|
1994-08-26 22:16:58 +02:00
|
|
|
.endif
|
|
|
|
.if defined(CVS_UPDATE)
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
@echo "Updating /usr/src from cvs repository" ${CVSROOT}
|
|
|
|
@echo "--------------------------------------------------------------"
|
1997-07-31 10:31:50 +02:00
|
|
|
cd ${.CURDIR} && cvs -q update -P -d
|
1994-08-26 22:16:58 +02:00
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# most
|
|
|
|
#
|
|
|
|
# Build most of the user binaries on the existing system libs and includes.
|
|
|
|
#
|
|
|
|
most:
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02:00
|
|
|
@echo " Building programs only"
|
1994-08-14 00:47:28 +02:00
|
|
|
@echo "--------------------------------------------------------------"
|
1996-07-27 23:47:42 +02: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-14 00:47:28 +02:00
|
|
|
|
1996-07-27 23:47:42 +02: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 22:32:46 +01: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 23:47:42 +02: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 23:47:42 +02: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:
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
|
1996-08-07 15:25:59 +02:00
|
|
|
${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 23:47:42 +02: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 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
|
1996-07-27 23:47:42 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# includes - possibly generate and install the include files.
|
|
|
|
#
|
1996-02-17 15:23:25 +01:00
|
|
|
includes:
|
1994-08-14 00:47:28 +02:00
|
|
|
.if defined(CLOBBER)
|
1995-03-18 08:02:10 +01:00
|
|
|
rm -rf ${DESTDIR}/usr/include/*
|
|
|
|
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
|
|
|
|
-p ${DESTDIR}/usr/include
|
1994-08-14 00:47:28 +02:00
|
|
|
.endif
|
1997-05-13 20:11:38 +02:00
|
|
|
cd ${.CURDIR}/include && ${MAKE} all install
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR}/gnu/include && ${MAKE} install
|
1994-09-12 07:17:15 +02:00
|
|
|
cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
|
1995-03-06 06:52:47 +01:00
|
|
|
cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
|
1997-07-31 10:31:50 +02:00
|
|
|
cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
|
1997-06-08 16:03:23 +02:00
|
|
|
cd ${.CURDIR}/gnu/lib/libmp && ${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 10:58:17 +01:00
|
|
|
cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall
|
1995-11-26 08:31:13 +01:00
|
|
|
cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall
|
1994-08-14 00:47:28 +02:00
|
|
|
.endif
|
1997-04-30 18:02:03 +02:00
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall
|
1997-05-26 07:27:37 +02:00
|
|
|
cd ${.CURDIR}/lib/libalias && ${MAKE} beforeinstall
|
1994-08-14 00:47:28 +02:00
|
|
|
cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
|
1996-06-27 00:47:52 +02:00
|
|
|
cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
|
1994-09-19 07:32:31 +02:00
|
|
|
cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
|
1997-07-31 10:31:50 +02:00
|
|
|
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
|
1995-03-23 20:03:02 +01:00
|
|
|
.if !defined(WANT_CSRG_LIBM)
|
1994-09-30 17:08:47 +01:00
|
|
|
cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
|
|
|
|
.endif
|
1995-03-19 18:24:24 +01:00
|
|
|
cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
|
1994-08-14 00:47:28 +02:00
|
|
|
cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
|
1994-09-29 22:20:12 +01:00
|
|
|
cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
|
1995-01-20 21:28:31 +01:00
|
|
|
cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
|
1995-01-22 00:01:19 +01:00
|
|
|
cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
|
1996-07-27 23:47:42 +02:00
|
|
|
cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
|
|
|
|
cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
|
1997-06-08 16:03:23 +02:00
|
|
|
cd ${.CURDIR}/lib/libz && ${MAKE} beforeinstall
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
#
|
|
|
|
# lib-tools - build tools to compile and install the libraries.
|
|
|
|
#
|
1995-01-03 23:03:25 +01:00
|
|
|
lib-tools:
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \
|
1996-08-07 15:25:59 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-10-04 10:48:27 +02:00
|
|
|
cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \
|
1995-01-19 23:41:25 +01:00
|
|
|
rm -f /usr/sbin/compile_et
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1997-01-21 14:12:10 +01:00
|
|
|
cd ${.CURDIR}/usr.bin/uudecode && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-09-19 18:36:24 +02: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 23:03:25 +01:00
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
#
|
|
|
|
# libraries - build and install the libraries
|
|
|
|
#
|
1994-08-14 00:47:28 +02:00
|
|
|
libraries:
|
1997-04-09 20:59:36 +02:00
|
|
|
.if exists(lib/csu/i386)
|
|
|
|
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \
|
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
|
|
|
.endif
|
1995-05-05 20:00:30 +02:00
|
|
|
.if exists(lib/libcompat)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 20:00:30 +02:00
|
|
|
.endif
|
1995-05-13 05:34:23 +02:00
|
|
|
.if exists(lib/libncurses)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-13 05:34:23 +02:00
|
|
|
.endif
|
|
|
|
.if exists(lib/libtermcap)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
|
|
|
.endif
|
1995-05-05 20:00:30 +02:00
|
|
|
.if exists(gnu)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-05 20:00:30 +02:00
|
|
|
.endif
|
1994-08-20 23:34:59 +02:00
|
|
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-08-20 23:34:59 +02:00
|
|
|
.endif
|
1994-08-25 16:45:46 +02:00
|
|
|
.if exists(lib)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-08-25 16:45:46 +02:00
|
|
|
.endif
|
1996-07-21 02:05:31 +02:00
|
|
|
.if exists(usr.bin/lex/lib)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-10-24 19:51:08 +01:00
|
|
|
.endif
|
1994-09-29 14:06:54 +01:00
|
|
|
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1994-09-09 22:29:20 +02:00
|
|
|
.endif
|
1995-05-06 05:59:58 +02:00
|
|
|
.if exists(usr.sbin/pcvt/keycap)
|
1996-08-25 07:17:49 +02:00
|
|
|
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
|
1996-07-27 23:47:42 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1995-05-06 05:59:58 +02:00
|
|
|
.endif
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1996-07-27 23:47:42 +02:00
|
|
|
#
|
|
|
|
# build-tools - build and install any other tools needed to complete the
|
|
|
|
# compile and install.
|
|
|
|
#
|
1995-10-26 10:24:59 +01:00
|
|
|
build-tools:
|
1996-10-25 16:22:50 +02:00
|
|
|
.for d in \
|
1997-01-14 08:20:47 +01:00
|
|
|
share/info \
|
1997-01-11 11:53:01 +01:00
|
|
|
gnu/usr.bin/texinfo \
|
1996-10-25 16:22:50 +02:00
|
|
|
usr.bin/symorder \
|
|
|
|
usr.sbin/zic \
|
|
|
|
gnu/usr.bin/awk \
|
|
|
|
gnu/usr.bin/groff
|
|
|
|
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
1996-09-18 20:14:37 +02:00
|
|
|
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
1996-10-25 16:22:50 +02:00
|
|
|
.endfor
|
1994-08-14 00:47:28 +02:00
|
|
|
|
1994-05-27 14:42:53 +02:00
|
|
|
.include <bsd.subdir.mk>
|