Makefile revision 20710
12061Sjkh# 220710Sasami# $Id: Makefile,v 1.110 1996/11/26 03:26:31 ache Exp $ 32061Sjkh# 42061Sjkh# Make command line options: 515603Smarkm# -DCLOBBER will remove /usr/include 62061Sjkh# -DMAKE_LOCAL to add ./local to the SUBDIR list 72061Sjkh# -DMAKE_PORTS to add ./ports to the SUBDIR list 83197Scsgr# -DMAKE_EBONES to build eBones (KerberosIV) 920710Sasami# -DALLLANG to build documentation for all languages 1020710Sasami# (where available -- see share/doc/Makefile) 113197Scsgr# 122061Sjkh# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 1312483Speter# -DNOCLEAN do not clean at all 142160Scsgr# -DNOCRYPT will prevent building of crypt versions 152834Swollman# -DNOLKM do not build loadable kernel modules 162061Sjkh# -DNOOBJDIR do not run ``${MAKE} obj'' 172061Sjkh# -DNOPROFILE do not build profiled libraries 182160Scsgr# -DNOSECURE do not go into secure subdir 1917308Speter# -DNOGAMES do not go into games subdir 2019320Sadam# -DNOSHARE do not go into share subdir 211594Srgrimes 2217308Speter# 2317308Speter# The intended user-driven targets are: 2417308Speter# world - rebuild *everything*, including glue to help do upgrades. 2517308Speter# reinstall - use an existing (eg: NFS mounted) build to do an update. 2617308Speter# update - convenient way to update your source tree (eg: sup/cvs) 2717308Speter# most - build user commands, no libraries or include files 2817308Speter# installmost - install user commands, no libraries or include files 2919175Sbde# 3019175Sbde# Standard targets (not defined here) are documented in the makefiles in 3119175Sbde# /usr/share/mk. These include: 3219175Sbde# obj depend all install clean cleandepend cleanobj 3317308Speter 3417308Speter 352061Sjkh# Put initial settings here. 362061SjkhSUBDIR= 371594Srgrimes 387407Srgrimes# We must do include and lib first so that the perl *.ph generation 397407Srgrimes# works correctly as it uses the header files installed by this. 407108Sphk.if exists(include) 417108SphkSUBDIR+= include 427108Sphk.endif 437407Srgrimes.if exists(lib) 447407SrgrimesSUBDIR+= lib 457407Srgrimes.endif 467108Sphk 472061Sjkh.if exists(bin) 482061SjkhSUBDIR+= bin 492061Sjkh.endif 5017308Speter.if exists(games) && !defined(NOGAMES) 512061SjkhSUBDIR+= games 522061Sjkh.endif 532061Sjkh.if exists(gnu) 542061SjkhSUBDIR+= gnu 552061Sjkh.endif 563197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 572626ScsgrSUBDIR+= eBones 582626Scsgr.endif 592061Sjkh.if exists(libexec) 602061SjkhSUBDIR+= libexec 612061Sjkh.endif 622061Sjkh.if exists(sbin) 632061SjkhSUBDIR+= sbin 642061Sjkh.endif 6519320Sadam.if exists(share) && !defined(NOSHARE) 662061SjkhSUBDIR+= share 672061Sjkh.endif 682061Sjkh.if exists(sys) 692061SjkhSUBDIR+= sys 702061Sjkh.endif 712061Sjkh.if exists(usr.bin) 722061SjkhSUBDIR+= usr.bin 732061Sjkh.endif 742061Sjkh.if exists(usr.sbin) 752061SjkhSUBDIR+= usr.sbin 762061Sjkh.endif 772834Swollman.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 782834SwollmanSUBDIR+= secure 792834Swollman.endif 802834Swollman.if exists(lkm) && !defined(NOLKM) 812834SwollmanSUBDIR+= lkm 822834Swollman.endif 831594Srgrimes 844486Sphk# etc must be last for "distribute" to work 854486Sphk.if exists(etc) && make(distribute) 864486SphkSUBDIR+= etc 874486Sphk.endif 884486Sphk 892061Sjkh# These are last, since it is nice to at least get the base system 902061Sjkh# rebuilt before you do them. 912061Sjkh.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile) 922061SjkhSUBDIR+= local 932061Sjkh.endif 942061Sjkh.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile) 952061SjkhSUBDIR+= ports 962061Sjkh.endif 972061Sjkh 9817308Speter# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR 992061Sjkh.if defined(NOOBJDIR) 1002061SjkhOBJDIR= 1012061Sjkh.else 1022061SjkhOBJDIR= obj 1032061Sjkh.endif 10412483Speter 10512483Speter.if defined(NOCLEAN) 10612483SpeterCLEANDIR= 10712483Speter.else 1082061Sjkh.if defined(NOCLEANDIR) 1092061SjkhCLEANDIR= clean 1108854Srgrimes.else 1112061SjkhCLEANDIR= cleandir 1122061Sjkh.endif 11312483Speter.endif 1142061Sjkh 11518714SacheSUP?= sup 11618714SacheSUPFLAGS?= -v 11718714Sache 11817308Speter# 11917308Speter# While building tools for bootstrapping, we dont need to waste time on 12017308Speter# profiled libraries or man pages. This speeds things up somewhat. 12117308Speter# 12215603SmarkmMK_FLAGS= -DNOMAN -DNOPROFILE 12315603Smarkm 12417308Speter# 12517308Speter# world 12617308Speter# 12717308Speter# Attempt to rebuild and reinstall *everything*, with reasonable chance of 12817308Speter# success, regardless of how old your existing system is. 12917308Speter# 13017308Speter# >> Beware, it overwrites the local build environment! << 13117308Speter# 13217308Speterworld: 13318362Sjkh @echo "--------------------------------------------------------------" 13419966Sache @echo "make world started on `LC_TIME=C date`" 13518362Sjkh @echo "--------------------------------------------------------------" 13617308Speter.if target(pre-world) 13717308Speter @echo "--------------------------------------------------------------" 13817308Speter @echo " Making 'pre-world' target" 13917308Speter @echo "--------------------------------------------------------------" 14017308Speter cd ${.CURDIR} && ${MAKE} pre-world 14117308Speter @echo 14216550Sjkh.endif 1432061Sjkh @echo "--------------------------------------------------------------" 14417308Speter @echo " Making hierarchy" 1452061Sjkh @echo "--------------------------------------------------------------" 14617308Speter cd ${.CURDIR} && ${MAKE} hierarchy 1472061Sjkh @echo 14817308Speter @echo "--------------------------------------------------------------" 14917308Speter @echo " Rebuilding /usr/share/mk" 15017308Speter @echo "--------------------------------------------------------------" 15117308Speter cd ${.CURDIR} && ${MAKE} mk 15217308Speter @echo 15317308Speter @echo "--------------------------------------------------------------" 15417308Speter @echo " Cleaning up the source tree" 15517308Speter @echo "--------------------------------------------------------------" 15617308Speter.if defined(NOCLEAN) 15717308Speter @echo "Not cleaning anything! I sure hope you know what you are doing!" 15817308Speter.else 15917466Speter cd ${.CURDIR} && ${MAKE} ${CLEANDIR} 16017308Speter.endif 16117308Speter @echo 16217466Speter.if !defined(NOOBJDIR) 16317308Speter @echo "--------------------------------------------------------------" 16417308Speter @echo " Rebuilding the obj tree" 16517308Speter @echo "--------------------------------------------------------------" 16617308Speter cd ${.CURDIR} && ${MAKE} obj 16717466Speter @echo 16817308Speter.endif 16917308Speter @echo "--------------------------------------------------------------" 17017308Speter @echo " Rebuilding bootstrap tools" 17117308Speter @echo "--------------------------------------------------------------" 17217308Speter cd ${.CURDIR} && ${MAKE} bootstrap 17317308Speter @echo 17417308Speter @echo "--------------------------------------------------------------" 17517308Speter @echo " Rebuilding tools necessary to build the include files" 17617308Speter @echo "--------------------------------------------------------------" 17717308Speter cd ${.CURDIR} && ${MAKE} include-tools 17817308Speter @echo 17917308Speter @echo "--------------------------------------------------------------" 18017308Speter @echo " Rebuilding /usr/include" 18117308Speter @echo "--------------------------------------------------------------" 18217308Speter cd ${.CURDIR} && ${MAKE} includes 18317308Speter @echo 18417308Speter @echo "--------------------------------------------------------------" 18517308Speter @echo " Rebuilding tools needed to build the libraries" 18617308Speter @echo "--------------------------------------------------------------" 18717308Speter cd ${.CURDIR} && ${MAKE} lib-tools 18817308Speter @echo 18917308Speter @echo "--------------------------------------------------------------" 19017308Speter @echo " Rebuilding /usr/lib" 19117308Speter @echo "--------------------------------------------------------------" 19217308Speter cd ${.CURDIR} && ${MAKE} libraries 19317308Speter @echo 19417308Speter @echo "--------------------------------------------------------------" 19518392Speter @echo " Rebuilding sgml tools, symorder, groff and zic(8)" 19617308Speter @echo "--------------------------------------------------------------" 19717308Speter cd ${.CURDIR} && ${MAKE} build-tools 19817308Speter @echo 19917308Speter @echo "--------------------------------------------------------------" 20017962Speter @echo " Rebuilding dependencies" 20117308Speter @echo "--------------------------------------------------------------" 20217962Speter cd ${.CURDIR} && ${MAKE} depend 20317962Speter @echo 20417962Speter @echo "--------------------------------------------------------------" 20517962Speter @echo " Building everything.." 20617962Speter @echo "--------------------------------------------------------------" 20717962Speter cd ${.CURDIR} && ${MAKE} all 20817962Speter @echo 20917962Speter @echo "--------------------------------------------------------------" 21017962Speter @echo " Installing everything.." 21117962Speter @echo "--------------------------------------------------------------" 21217962Speter cd ${.CURDIR} && ${MAKE} install 21317962Speter @echo 21417962Speter @echo "--------------------------------------------------------------" 21517962Speter @echo " Rebuilding man page indexes" 21617962Speter @echo "--------------------------------------------------------------" 21717308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 21816550Sjkh.if target(post-world) 21917308Speter @echo 22017308Speter @echo "--------------------------------------------------------------" 22117308Speter @echo " Making 'post-world' target" 22217308Speter @echo "--------------------------------------------------------------" 22316550Sjkh cd ${.CURDIR} && ${MAKE} post-world 22416550Sjkh.endif 22517308Speter @echo 22617308Speter @echo "--------------------------------------------------------------" 22719966Sache @echo "make world completed on `LC_TIME=C date`" 22817962Speter @echo "--------------------------------------------------------------" 2292061Sjkh 23017308Speter# 23117308Speter# reinstall 23217308Speter# 23317308Speter# If you have a build server, you can NFS mount the source and obj directories 23417308Speter# and do a 'make reinstall' on the *client* to install new binaries from the 23517308Speter# most recent server build. 23617308Speter# 23717308Speterreinstall: 23812483Speter @echo "--------------------------------------------------------------" 23917308Speter @echo " Making hierarchy" 24012483Speter @echo "--------------------------------------------------------------" 24117308Speter cd ${.CURDIR} && ${MAKE} hierarchy 24212483Speter @echo 2432061Sjkh @echo "--------------------------------------------------------------" 24417308Speter @echo " Rebuilding /usr/share/mk" 2452061Sjkh @echo "--------------------------------------------------------------" 24617308Speter cd ${.CURDIR} && ${MAKE} mk 24717308Speter @echo 24817308Speter @echo "--------------------------------------------------------------" 24917962Speter @echo " Installing everything.." 25017962Speter @echo "--------------------------------------------------------------" 25117308Speter cd ${.CURDIR} && ${MAKE} install 25217962Speter @echo 25317962Speter @echo "--------------------------------------------------------------" 25417962Speter @echo " Rebuilding man page indexes" 25517962Speter @echo "--------------------------------------------------------------" 25617308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 2572061Sjkh 25817308Speter 25917308Speter# 26017308Speter# update 26117308Speter# 26217308Speter# Update the source tree, by running sup and/or running cvs to update to the 26317308Speter# latest copy. 26417308Speter# 2652302Spaulupdate: 2662302Spaul.if defined(SUP_UPDATE) 2672302Spaul @echo "--------------------------------------------------------------" 2682302Spaul @echo "Running sup" 2692302Spaul @echo "--------------------------------------------------------------" 27018714Sache @${SUP} ${SUPFLAGS} ${SUPFILE} 27110760Sache.if defined(SUPFILE1) 27218714Sache @${SUP} ${SUPFLAGS} ${SUPFILE1} 2732302Spaul.endif 27410760Sache.if defined(SUPFILE2) 27518714Sache @${SUP} ${SUPFLAGS} ${SUPFILE2} 27610760Sache.endif 27710760Sache.endif 2782302Spaul.if defined(CVS_UPDATE) 2792302Spaul @echo "--------------------------------------------------------------" 2802302Spaul @echo "Updating /usr/src from cvs repository" ${CVSROOT} 2812302Spaul @echo "--------------------------------------------------------------" 28216591Spst cd ${.CURDIR} && cvs -q update -P -d 2832302Spaul.endif 2842302Spaul 28517308Speter 28617308Speter# 28717308Speter# most 28817308Speter# 28917308Speter# Build most of the user binaries on the existing system libs and includes. 29017308Speter# 29117308Spetermost: 2922061Sjkh @echo "--------------------------------------------------------------" 29317308Speter @echo " Building programs only" 2942061Sjkh @echo "--------------------------------------------------------------" 29517308Speter cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all 29617308Speter cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all 29717308Speter cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all 29817308Speter cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all 29917308Speter cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 30017308Speter cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all 30117308Speter cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all 30217308Speter cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 30317308Speter#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 30417308Speter# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most 30517308Speter#.endif 30617308Speter#.if !defined(NOSECURE) && !defined(NOCRYPT) 30717308Speter# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most 30817308Speter#.endif 3092061Sjkh 31017308Speter# 31117308Speter# installmost 31217308Speter# 31317308Speter# Install the binaries built by the 'most' target. This does not include 31417308Speter# libraries or include files. 31517308Speter# 3163626Swollmaninstallmost: 3173626Swollman @echo "--------------------------------------------------------------" 3183626Swollman @echo " Installing programs only" 3193626Swollman @echo "--------------------------------------------------------------" 3203626Swollman cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install 3213626Swollman cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install 3223626Swollman cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install 3233626Swollman cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3243626Swollman cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3253626Swollman cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install 3263626Swollman cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3277059Sroberto cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3283626Swollman#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 3293626Swollman# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost 3303626Swollman#.endif 3313626Swollman#.if !defined(NOSECURE) && !defined(NOCRYPT) 3323626Swollman# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost 3333626Swollman#.endif 3343626Swollman 33517308Speter# 33617308Speter# ------------------------------------------------------------------------ 33717308Speter# 33817308Speter# From here onwards are utility targets used by the 'make world' and 33917308Speter# related targets. If your 'world' breaks, you may like to try to fix 34017308Speter# the problem and manually run the following targets to attempt to 34117308Speter# complete the build. Beware, this is *not* guaranteed to work, you 34217308Speter# need to have a pretty good grip on the current state of the system 34317308Speter# to attempt to manually finish it. If in doubt, 'make world' again. 34417308Speter# 3453626Swollman 34617308Speter# 34717308Speter# heirarchy - ensure that all the needed directories are present 34817308Speter# 34917308Speterhierarchy: 35017308Speter cd ${.CURDIR}/etc && ${MAKE} distrib-dirs 35117308Speter 35217308Speter# 35317308Speter# mk - update the /usr/share/mk makefiles. 35417308Speter# 3552061Sjkhmk: 35616663Sjkh cd ${.CURDIR}/share/mk && ${MAKE} install 3572061Sjkh 35817308Speter# 35917308Speter# bootstrap - [re]build tools needed to run the actual build, this includes 36017308Speter# tools needed by 'make depend', as some tools are needed to generate source 36117308Speter# for the dependency information to be gathered from. 36217308Speter# 36317308Speterbootstrap: 36417820Sjkh cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \ 36517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 36617820Sjkh cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \ 36717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 36817820Sjkh cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \ 36917467Speter ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR} 37017308Speter 37117308Speter# 37217308Speter# include-tools - generally the same as 'bootstrap', except that it's for 37317308Speter# things that are specifically needed to generate include files. 37417308Speter# 37517308Speter# XXX should be merged with bootstrap, it's not worth keeeping them seperate 37617308Speter# 37717308Speterinclude-tools: 37817820Sjkh cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \ 37917820Sjkh ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR} 38017308Speter 38117308Speter# 38217308Speter# includes - possibly generate and install the include files. 38317308Speter# 38414119Speterincludes: 3852061Sjkh.if defined(CLOBBER) 3867130Srgrimes rm -rf ${DESTDIR}/usr/include/* 3877130Srgrimes mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 3887130Srgrimes -p ${DESTDIR}/usr/include 3892061Sjkh.endif 39017962Speter cd ${.CURDIR}/include/rpcsvc && ${MAKE} all 3912061Sjkh cd ${.CURDIR}/include && ${MAKE} install 39217308Speter cd ${.CURDIR}/gnu/include && ${MAKE} install 3932685Srgrimes cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall 3946927Snate cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall 39518674Speter cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall 3962685Srgrimes cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall 3973518Sache cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall 3983197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 3993197Scsgr cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall 40012166Sjkh cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall 40112485Sjkh cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall 4023197Scsgr.endif 4032061Sjkh cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall 4042061Sjkh cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall 4052061Sjkh cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall 40616786Snate cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall 4072883Sphk cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall 40817308Speter cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall 40917308Speter cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall 4107281Srgrimes.if !defined(WANT_CSRG_LIBM) 4113242Spaul cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall 4123242Spaul.endif 4137171Sats cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall 4142061Sjkh cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall 4153213Spst cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall 41617308Speter cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall 41717308Speter cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall 4185749Swollman cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall 4195772Swollman cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall 42017308Speter cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall 42117308Speter cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall 4222061Sjkh 42317308Speter# 42417308Speter# lib-tools - build tools to compile and install the libraries. 42517308Speter# 4265366Snatelib-tools: 42717820Sjkh cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \ 42817467Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 42917820Sjkh cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \ 43017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43118674Speter cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \ 43218674Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43317820Sjkh cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \ 43417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43517820Sjkh cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \ 43617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43717820Sjkh cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \ 43817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43917820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 44017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44117820Sjkh cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \ 44217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \ 4435728Swollman rm -f /usr/sbin/compile_et 44417820Sjkh cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \ 44517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44618392Speter cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \ 44718392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44818392Speter cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \ 44918392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45018392Speter cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \ 45118392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4525366Snate 45317308Speter# 45417308Speter# libraries - build and install the libraries 45517308Speter# 4562061Sjkhlibraries: 4578295Srgrimes.if exists(lib/libcompat) 45817820Sjkh cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \ 45917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4608295Srgrimes.endif 4618489Srgrimes.if exists(lib/libncurses) 46217820Sjkh cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \ 46317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4648489Srgrimes.endif 4658489Srgrimes.if exists(lib/libtermcap) 46617820Sjkh cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \ 46717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4688489Srgrimes.endif 46917308Speter.if exists(lib) 47017820Sjkh cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ 47117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 47217308Speter.endif 4738295Srgrimes.if exists(gnu) 47417820Sjkh cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \ 47517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4768295Srgrimes.endif 4772160Scsgr.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 47817820Sjkh cd ${.CURDIR}/secure/lib && ${MAKE} depend && \ 47917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4802160Scsgr.endif 4812279Spaul.if exists(lib) 48217820Sjkh cd ${.CURDIR}/lib && ${MAKE} depend && \ 48317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4842279Spaul.endif 48517234Sjraynard.if exists(usr.bin/lex/lib) 48617820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 48717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 48811772Snate.endif 4893197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 49017820Sjkh cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \ 49117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4922626Scsgr.endif 4938304Srgrimes.if exists(usr.sbin/pcvt/keycap) 49417820Sjkh cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \ 49517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4968304Srgrimes.endif 4972061Sjkh 49817308Speter# 49917308Speter# build-tools - build and install any other tools needed to complete the 50017308Speter# compile and install. 50117308Speter# 50211806Sphkbuild-tools: 50319175Sbde.for d in \ 50419175Sbde usr.bin/symorder \ 50519175Sbde usr.bin/sgmls \ 50619175Sbde usr.bin/sgmlfmt \ 50719175Sbde share/sgml \ 50819175Sbde usr.sbin/zic \ 50919175Sbde gnu/usr.bin/awk \ 51019175Sbde gnu/usr.bin/groff 51119175Sbde cd ${.CURDIR}/$d && ${MAKE} depend && \ 51217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51319175Sbde.endfor 5142061Sjkh 5151594Srgrimes.include <bsd.subdir.mk> 516