Makefile revision 25399
12061Sjkh# 225399Sjb# $Id: Makefile,v 1.122 1997/04/30 16:02:03 bde 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 2121536Sjmacd# -DNOINFO do not make or install info files 2225399Sjb# -DNOLIBC_R do not build libc_r. 231594Srgrimes 2417308Speter# 2517308Speter# The intended user-driven targets are: 2617308Speter# world - rebuild *everything*, including glue to help do upgrades. 2717308Speter# reinstall - use an existing (eg: NFS mounted) build to do an update. 2817308Speter# update - convenient way to update your source tree (eg: sup/cvs) 2917308Speter# most - build user commands, no libraries or include files 3017308Speter# installmost - install user commands, no libraries or include files 3119175Sbde# 3219175Sbde# Standard targets (not defined here) are documented in the makefiles in 3319175Sbde# /usr/share/mk. These include: 3419175Sbde# obj depend all install clean cleandepend cleanobj 3517308Speter 3617308Speter 372061Sjkh# Put initial settings here. 382061SjkhSUBDIR= 391594Srgrimes 4025313Sbde# We must do share/info early so that installation of info `dir' 4125313Sbde# entries works correctly. Do it first since it is less likely to 4225313Sbde# grow dependencies on include and lib than vice versa. 4325313Sbde.if exists(share/info) 4425313SbdeSUBDIR+= share/info 4525313Sbde.endif 4625313Sbde 4725313Sbde# We must do include and lib early so that the perl *.ph generation 487407Srgrimes# works correctly as it uses the header files installed by this. 497108Sphk.if exists(include) 507108SphkSUBDIR+= include 517108Sphk.endif 527407Srgrimes.if exists(lib) 537407SrgrimesSUBDIR+= lib 547407Srgrimes.endif 557108Sphk 562061Sjkh.if exists(bin) 572061SjkhSUBDIR+= bin 582061Sjkh.endif 5917308Speter.if exists(games) && !defined(NOGAMES) 602061SjkhSUBDIR+= games 612061Sjkh.endif 622061Sjkh.if exists(gnu) 632061SjkhSUBDIR+= gnu 642061Sjkh.endif 653197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 662626ScsgrSUBDIR+= eBones 672626Scsgr.endif 682061Sjkh.if exists(libexec) 692061SjkhSUBDIR+= libexec 702061Sjkh.endif 712061Sjkh.if exists(sbin) 722061SjkhSUBDIR+= sbin 732061Sjkh.endif 7419320Sadam.if exists(share) && !defined(NOSHARE) 752061SjkhSUBDIR+= share 762061Sjkh.endif 772061Sjkh.if exists(sys) 782061SjkhSUBDIR+= sys 792061Sjkh.endif 802061Sjkh.if exists(usr.bin) 812061SjkhSUBDIR+= usr.bin 822061Sjkh.endif 832061Sjkh.if exists(usr.sbin) 842061SjkhSUBDIR+= usr.sbin 852061Sjkh.endif 862834Swollman.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 872834SwollmanSUBDIR+= secure 882834Swollman.endif 892834Swollman.if exists(lkm) && !defined(NOLKM) 902834SwollmanSUBDIR+= lkm 912834Swollman.endif 921594Srgrimes 934486Sphk# etc must be last for "distribute" to work 944486Sphk.if exists(etc) && make(distribute) 954486SphkSUBDIR+= etc 964486Sphk.endif 974486Sphk 982061Sjkh# These are last, since it is nice to at least get the base system 992061Sjkh# rebuilt before you do them. 1002061Sjkh.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile) 1012061SjkhSUBDIR+= local 1022061Sjkh.endif 1032061Sjkh.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile) 1042061SjkhSUBDIR+= ports 1052061Sjkh.endif 1062061Sjkh 10717308Speter# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR 1082061Sjkh.if defined(NOOBJDIR) 1092061SjkhOBJDIR= 1102061Sjkh.else 1112061SjkhOBJDIR= obj 1122061Sjkh.endif 11312483Speter 11412483Speter.if defined(NOCLEAN) 11512483SpeterCLEANDIR= 11612483Speter.else 1172061Sjkh.if defined(NOCLEANDIR) 1182061SjkhCLEANDIR= clean 1198854Srgrimes.else 1202061SjkhCLEANDIR= cleandir 1212061Sjkh.endif 12212483Speter.endif 1232061Sjkh 12418714SacheSUP?= sup 12518714SacheSUPFLAGS?= -v 12618714Sache 12717308Speter# 12817308Speter# While building tools for bootstrapping, we dont need to waste time on 12917308Speter# profiled libraries or man pages. This speeds things up somewhat. 13017308Speter# 13121536SjmacdMK_FLAGS= -DNOINFO -DNOMAN -DNOPROFILE 13215603Smarkm 13317308Speter# 13417308Speter# world 13517308Speter# 13617308Speter# Attempt to rebuild and reinstall *everything*, with reasonable chance of 13717308Speter# success, regardless of how old your existing system is. 13817308Speter# 13917308Speter# >> Beware, it overwrites the local build environment! << 14017308Speter# 14117308Speterworld: 14218362Sjkh @echo "--------------------------------------------------------------" 14319966Sache @echo "make world started on `LC_TIME=C date`" 14418362Sjkh @echo "--------------------------------------------------------------" 14517308Speter.if target(pre-world) 14617308Speter @echo "--------------------------------------------------------------" 14717308Speter @echo " Making 'pre-world' target" 14817308Speter @echo "--------------------------------------------------------------" 14917308Speter cd ${.CURDIR} && ${MAKE} pre-world 15017308Speter @echo 15116550Sjkh.endif 1522061Sjkh @echo "--------------------------------------------------------------" 15317308Speter @echo " Making hierarchy" 1542061Sjkh @echo "--------------------------------------------------------------" 15517308Speter cd ${.CURDIR} && ${MAKE} hierarchy 1562061Sjkh @echo 15717308Speter @echo "--------------------------------------------------------------" 15817308Speter @echo " Rebuilding /usr/share/mk" 15917308Speter @echo "--------------------------------------------------------------" 16017308Speter cd ${.CURDIR} && ${MAKE} mk 16117308Speter @echo 16217308Speter @echo "--------------------------------------------------------------" 16317308Speter @echo " Cleaning up the source tree" 16417308Speter @echo "--------------------------------------------------------------" 16517308Speter.if defined(NOCLEAN) 16617308Speter @echo "Not cleaning anything! I sure hope you know what you are doing!" 16717308Speter.else 16817466Speter cd ${.CURDIR} && ${MAKE} ${CLEANDIR} 16917308Speter.endif 17017308Speter @echo 17117466Speter.if !defined(NOOBJDIR) 17217308Speter @echo "--------------------------------------------------------------" 17317308Speter @echo " Rebuilding the obj tree" 17417308Speter @echo "--------------------------------------------------------------" 17517308Speter cd ${.CURDIR} && ${MAKE} obj 17617466Speter @echo 17717308Speter.endif 17817308Speter @echo "--------------------------------------------------------------" 17917308Speter @echo " Rebuilding bootstrap tools" 18017308Speter @echo "--------------------------------------------------------------" 18117308Speter cd ${.CURDIR} && ${MAKE} bootstrap 18217308Speter @echo 18317308Speter @echo "--------------------------------------------------------------" 18417308Speter @echo " Rebuilding tools necessary to build the include files" 18517308Speter @echo "--------------------------------------------------------------" 18617308Speter cd ${.CURDIR} && ${MAKE} include-tools 18717308Speter @echo 18817308Speter @echo "--------------------------------------------------------------" 18917308Speter @echo " Rebuilding /usr/include" 19017308Speter @echo "--------------------------------------------------------------" 19117308Speter cd ${.CURDIR} && ${MAKE} includes 19217308Speter @echo 19317308Speter @echo "--------------------------------------------------------------" 19417308Speter @echo " Rebuilding tools needed to build the libraries" 19517308Speter @echo "--------------------------------------------------------------" 19617308Speter cd ${.CURDIR} && ${MAKE} lib-tools 19717308Speter @echo 19817308Speter @echo "--------------------------------------------------------------" 19917308Speter @echo " Rebuilding /usr/lib" 20017308Speter @echo "--------------------------------------------------------------" 20117308Speter cd ${.CURDIR} && ${MAKE} libraries 20217308Speter @echo 20317308Speter @echo "--------------------------------------------------------------" 20418392Speter @echo " Rebuilding sgml tools, symorder, groff and zic(8)" 20517308Speter @echo "--------------------------------------------------------------" 20617308Speter cd ${.CURDIR} && ${MAKE} build-tools 20717308Speter @echo 20817308Speter @echo "--------------------------------------------------------------" 20917962Speter @echo " Rebuilding dependencies" 21017308Speter @echo "--------------------------------------------------------------" 21117962Speter cd ${.CURDIR} && ${MAKE} depend 21217962Speter @echo 21317962Speter @echo "--------------------------------------------------------------" 21417962Speter @echo " Building everything.." 21517962Speter @echo "--------------------------------------------------------------" 21617962Speter cd ${.CURDIR} && ${MAKE} all 21717962Speter @echo 21817962Speter @echo "--------------------------------------------------------------" 21917962Speter @echo " Installing everything.." 22017962Speter @echo "--------------------------------------------------------------" 22117962Speter cd ${.CURDIR} && ${MAKE} install 22217962Speter @echo 22317962Speter @echo "--------------------------------------------------------------" 22417962Speter @echo " Rebuilding man page indexes" 22517962Speter @echo "--------------------------------------------------------------" 22617308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 22716550Sjkh.if target(post-world) 22817308Speter @echo 22917308Speter @echo "--------------------------------------------------------------" 23017308Speter @echo " Making 'post-world' target" 23117308Speter @echo "--------------------------------------------------------------" 23216550Sjkh cd ${.CURDIR} && ${MAKE} post-world 23316550Sjkh.endif 23417308Speter @echo 23517308Speter @echo "--------------------------------------------------------------" 23619966Sache @echo "make world completed on `LC_TIME=C date`" 23717962Speter @echo "--------------------------------------------------------------" 2382061Sjkh 23917308Speter# 24017308Speter# reinstall 24117308Speter# 24217308Speter# If you have a build server, you can NFS mount the source and obj directories 24317308Speter# and do a 'make reinstall' on the *client* to install new binaries from the 24417308Speter# most recent server build. 24517308Speter# 24617308Speterreinstall: 24712483Speter @echo "--------------------------------------------------------------" 24817308Speter @echo " Making hierarchy" 24912483Speter @echo "--------------------------------------------------------------" 25017308Speter cd ${.CURDIR} && ${MAKE} hierarchy 25112483Speter @echo 2522061Sjkh @echo "--------------------------------------------------------------" 25317308Speter @echo " Rebuilding /usr/share/mk" 2542061Sjkh @echo "--------------------------------------------------------------" 25517308Speter cd ${.CURDIR} && ${MAKE} mk 25617308Speter @echo 25717308Speter @echo "--------------------------------------------------------------" 25817962Speter @echo " Installing everything.." 25917962Speter @echo "--------------------------------------------------------------" 26017308Speter cd ${.CURDIR} && ${MAKE} install 26117962Speter @echo 26217962Speter @echo "--------------------------------------------------------------" 26317962Speter @echo " Rebuilding man page indexes" 26417962Speter @echo "--------------------------------------------------------------" 26517308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 2662061Sjkh 26717308Speter 26817308Speter# 26917308Speter# update 27017308Speter# 27117308Speter# Update the source tree, by running sup and/or running cvs to update to the 27217308Speter# latest copy. 27317308Speter# 2742302Spaulupdate: 2752302Spaul.if defined(SUP_UPDATE) 2762302Spaul @echo "--------------------------------------------------------------" 2772302Spaul @echo "Running sup" 2782302Spaul @echo "--------------------------------------------------------------" 27918714Sache @${SUP} ${SUPFLAGS} ${SUPFILE} 28010760Sache.if defined(SUPFILE1) 28118714Sache @${SUP} ${SUPFLAGS} ${SUPFILE1} 2822302Spaul.endif 28310760Sache.if defined(SUPFILE2) 28418714Sache @${SUP} ${SUPFLAGS} ${SUPFILE2} 28510760Sache.endif 28610760Sache.endif 2872302Spaul.if defined(CVS_UPDATE) 2882302Spaul @echo "--------------------------------------------------------------" 2892302Spaul @echo "Updating /usr/src from cvs repository" ${CVSROOT} 2902302Spaul @echo "--------------------------------------------------------------" 29116591Spst cd ${.CURDIR} && cvs -q update -P -d 2922302Spaul.endif 2932302Spaul 29417308Speter 29517308Speter# 29617308Speter# most 29717308Speter# 29817308Speter# Build most of the user binaries on the existing system libs and includes. 29917308Speter# 30017308Spetermost: 3012061Sjkh @echo "--------------------------------------------------------------" 30217308Speter @echo " Building programs only" 3032061Sjkh @echo "--------------------------------------------------------------" 30417308Speter cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all 30517308Speter cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all 30617308Speter cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all 30717308Speter cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all 30817308Speter cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 30917308Speter cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all 31017308Speter cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all 31117308Speter cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 31217308Speter#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 31317308Speter# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most 31417308Speter#.endif 31517308Speter#.if !defined(NOSECURE) && !defined(NOCRYPT) 31617308Speter# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most 31717308Speter#.endif 3182061Sjkh 31917308Speter# 32017308Speter# installmost 32117308Speter# 32217308Speter# Install the binaries built by the 'most' target. This does not include 32317308Speter# libraries or include files. 32417308Speter# 3253626Swollmaninstallmost: 3263626Swollman @echo "--------------------------------------------------------------" 3273626Swollman @echo " Installing programs only" 3283626Swollman @echo "--------------------------------------------------------------" 3293626Swollman cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install 3303626Swollman cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install 3313626Swollman cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install 3323626Swollman cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3333626Swollman cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3343626Swollman cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install 3353626Swollman cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3367059Sroberto cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3373626Swollman#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 3383626Swollman# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost 3393626Swollman#.endif 3403626Swollman#.if !defined(NOSECURE) && !defined(NOCRYPT) 3413626Swollman# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost 3423626Swollman#.endif 3433626Swollman 34417308Speter# 34517308Speter# ------------------------------------------------------------------------ 34617308Speter# 34717308Speter# From here onwards are utility targets used by the 'make world' and 34817308Speter# related targets. If your 'world' breaks, you may like to try to fix 34917308Speter# the problem and manually run the following targets to attempt to 35017308Speter# complete the build. Beware, this is *not* guaranteed to work, you 35117308Speter# need to have a pretty good grip on the current state of the system 35217308Speter# to attempt to manually finish it. If in doubt, 'make world' again. 35317308Speter# 3543626Swollman 35517308Speter# 35617308Speter# heirarchy - ensure that all the needed directories are present 35717308Speter# 35817308Speterhierarchy: 35917308Speter cd ${.CURDIR}/etc && ${MAKE} distrib-dirs 36017308Speter 36117308Speter# 36217308Speter# mk - update the /usr/share/mk makefiles. 36317308Speter# 3642061Sjkhmk: 36516663Sjkh cd ${.CURDIR}/share/mk && ${MAKE} install 3662061Sjkh 36717308Speter# 36817308Speter# bootstrap - [re]build tools needed to run the actual build, this includes 36917308Speter# tools needed by 'make depend', as some tools are needed to generate source 37017308Speter# for the dependency information to be gathered from. 37117308Speter# 37217308Speterbootstrap: 37317820Sjkh cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \ 37417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 37517820Sjkh cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \ 37617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 37717820Sjkh cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \ 37817467Speter ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR} 37917308Speter 38017308Speter# 38117308Speter# include-tools - generally the same as 'bootstrap', except that it's for 38217308Speter# things that are specifically needed to generate include files. 38317308Speter# 38417308Speter# XXX should be merged with bootstrap, it's not worth keeeping them seperate 38517308Speter# 38617308Speterinclude-tools: 38717820Sjkh cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \ 38817820Sjkh ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR} 38917308Speter 39017308Speter# 39117308Speter# includes - possibly generate and install the include files. 39217308Speter# 39314119Speterincludes: 3942061Sjkh.if defined(CLOBBER) 3957130Srgrimes rm -rf ${DESTDIR}/usr/include/* 3967130Srgrimes mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 3977130Srgrimes -p ${DESTDIR}/usr/include 3982061Sjkh.endif 39917962Speter cd ${.CURDIR}/include/rpcsvc && ${MAKE} all 4002061Sjkh cd ${.CURDIR}/include && ${MAKE} install 40117308Speter cd ${.CURDIR}/gnu/include && ${MAKE} install 4022685Srgrimes cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall 4036927Snate cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall 40418674Speter cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall 4052685Srgrimes cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall 4063518Sache cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall 4073197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 4083197Scsgr cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall 40912166Sjkh cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall 41012485Sjkh cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall 4113197Scsgr.endif 41225313Sbde cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall 4132061Sjkh cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall 4142061Sjkh cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall 4152061Sjkh cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall 41616786Snate cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall 4172883Sphk cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall 41817308Speter cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall 41917308Speter cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall 4207281Srgrimes.if !defined(WANT_CSRG_LIBM) 4213242Spaul cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall 4223242Spaul.endif 4237171Sats cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall 4242061Sjkh cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall 4253213Spst cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall 42617308Speter cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall 42717308Speter cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall 4285749Swollman cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall 4295772Swollman cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall 43017308Speter cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall 43117308Speter cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall 4322061Sjkh 43317308Speter# 43417308Speter# lib-tools - build tools to compile and install the libraries. 43517308Speter# 4365366Snatelib-tools: 43717820Sjkh cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \ 43817467Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43917820Sjkh cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \ 44017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44118674Speter cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \ 44218674Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44317820Sjkh cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \ 44417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44517820Sjkh cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \ 44617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44717820Sjkh cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \ 44817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44917820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 45017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45117820Sjkh cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \ 45217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \ 4535728Swollman rm -f /usr/sbin/compile_et 45417820Sjkh cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \ 45517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45621922Sjkh cd ${.CURDIR}/usr.bin/uudecode && ${MAKE} depend && \ 45721922Sjkh ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45818392Speter cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \ 45918392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 46018392Speter cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \ 46118392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 46218392Speter cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \ 46318392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4645366Snate 46517308Speter# 46617308Speter# libraries - build and install the libraries 46717308Speter# 4682061Sjkhlibraries: 46924754Sjdp.if exists(lib/csu/i386) 47024754Sjdp cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ 47124754Sjdp ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 47224754Sjdp.endif 4738295Srgrimes.if exists(lib/libcompat) 47417820Sjkh cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \ 47517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4768295Srgrimes.endif 4778489Srgrimes.if exists(lib/libncurses) 47817820Sjkh cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \ 47917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4808489Srgrimes.endif 4818489Srgrimes.if exists(lib/libtermcap) 48217820Sjkh cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \ 48317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4848489Srgrimes.endif 4858295Srgrimes.if exists(gnu) 48617820Sjkh cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \ 48717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4888295Srgrimes.endif 4892160Scsgr.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 49017820Sjkh cd ${.CURDIR}/secure/lib && ${MAKE} depend && \ 49117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4922160Scsgr.endif 4932279Spaul.if exists(lib) 49417820Sjkh cd ${.CURDIR}/lib && ${MAKE} depend && \ 49517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4962279Spaul.endif 49717234Sjraynard.if exists(usr.bin/lex/lib) 49817820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 49917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 50011772Snate.endif 5013197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 50217820Sjkh cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \ 50317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 5042626Scsgr.endif 5058304Srgrimes.if exists(usr.sbin/pcvt/keycap) 50617820Sjkh cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \ 50717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 5088304Srgrimes.endif 5092061Sjkh 51017308Speter# 51117308Speter# build-tools - build and install any other tools needed to complete the 51217308Speter# compile and install. 51317308Speter# 51411806Sphkbuild-tools: 51519175Sbde.for d in \ 51621673Sjkh share/info \ 51721536Sjmacd gnu/usr.bin/texinfo \ 51819175Sbde usr.bin/symorder \ 51919175Sbde usr.bin/sgmls \ 52019175Sbde usr.bin/sgmlfmt \ 52119175Sbde share/sgml \ 52219175Sbde usr.sbin/zic \ 52319175Sbde gnu/usr.bin/awk \ 52419175Sbde gnu/usr.bin/groff 52519175Sbde cd ${.CURDIR}/$d && ${MAKE} depend && \ 52617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 52719175Sbde.endfor 5282061Sjkh 5291594Srgrimes.include <bsd.subdir.mk> 530