Makefile revision 25647
12061Sjkh# 225647Sbde# $Id: Makefile,v 1.123 1997/05/03 02:51:58 jb 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 3625647Sbde.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk 3717308Speter 382061Sjkh# Put initial settings here. 392061SjkhSUBDIR= 401594Srgrimes 4125313Sbde# We must do share/info early so that installation of info `dir' 4225313Sbde# entries works correctly. Do it first since it is less likely to 4325313Sbde# grow dependencies on include and lib than vice versa. 4425313Sbde.if exists(share/info) 4525313SbdeSUBDIR+= share/info 4625313Sbde.endif 4725313Sbde 4825313Sbde# We must do include and lib early so that the perl *.ph generation 497407Srgrimes# works correctly as it uses the header files installed by this. 507108Sphk.if exists(include) 517108SphkSUBDIR+= include 527108Sphk.endif 537407Srgrimes.if exists(lib) 547407SrgrimesSUBDIR+= lib 557407Srgrimes.endif 567108Sphk 572061Sjkh.if exists(bin) 582061SjkhSUBDIR+= bin 592061Sjkh.endif 6017308Speter.if exists(games) && !defined(NOGAMES) 612061SjkhSUBDIR+= games 622061Sjkh.endif 632061Sjkh.if exists(gnu) 642061SjkhSUBDIR+= gnu 652061Sjkh.endif 663197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 672626ScsgrSUBDIR+= eBones 682626Scsgr.endif 692061Sjkh.if exists(libexec) 702061SjkhSUBDIR+= libexec 712061Sjkh.endif 722061Sjkh.if exists(sbin) 732061SjkhSUBDIR+= sbin 742061Sjkh.endif 7519320Sadam.if exists(share) && !defined(NOSHARE) 762061SjkhSUBDIR+= share 772061Sjkh.endif 782061Sjkh.if exists(sys) 792061SjkhSUBDIR+= sys 802061Sjkh.endif 812061Sjkh.if exists(usr.bin) 822061SjkhSUBDIR+= usr.bin 832061Sjkh.endif 842061Sjkh.if exists(usr.sbin) 852061SjkhSUBDIR+= usr.sbin 862061Sjkh.endif 872834Swollman.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 882834SwollmanSUBDIR+= secure 892834Swollman.endif 902834Swollman.if exists(lkm) && !defined(NOLKM) 912834SwollmanSUBDIR+= lkm 922834Swollman.endif 931594Srgrimes 944486Sphk# etc must be last for "distribute" to work 954486Sphk.if exists(etc) && make(distribute) 964486SphkSUBDIR+= etc 974486Sphk.endif 984486Sphk 992061Sjkh# These are last, since it is nice to at least get the base system 1002061Sjkh# rebuilt before you do them. 1012061Sjkh.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile) 1022061SjkhSUBDIR+= local 1032061Sjkh.endif 1042061Sjkh.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile) 1052061SjkhSUBDIR+= ports 1062061Sjkh.endif 1072061Sjkh 10817308Speter# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR 1092061Sjkh.if defined(NOOBJDIR) 1102061SjkhOBJDIR= 1112061Sjkh.else 1122061SjkhOBJDIR= obj 1132061Sjkh.endif 11412483Speter 11512483Speter.if defined(NOCLEAN) 11612483SpeterCLEANDIR= 11712483Speter.else 1182061Sjkh.if defined(NOCLEANDIR) 1192061SjkhCLEANDIR= clean 1208854Srgrimes.else 1212061SjkhCLEANDIR= cleandir 1222061Sjkh.endif 12312483Speter.endif 1242061Sjkh 12518714SacheSUP?= sup 12618714SacheSUPFLAGS?= -v 12718714Sache 12817308Speter# 12917308Speter# While building tools for bootstrapping, we dont need to waste time on 13017308Speter# profiled libraries or man pages. This speeds things up somewhat. 13117308Speter# 13221536SjmacdMK_FLAGS= -DNOINFO -DNOMAN -DNOPROFILE 13315603Smarkm 13417308Speter# 13517308Speter# world 13617308Speter# 13717308Speter# Attempt to rebuild and reinstall *everything*, with reasonable chance of 13817308Speter# success, regardless of how old your existing system is. 13917308Speter# 14017308Speter# >> Beware, it overwrites the local build environment! << 14117308Speter# 14217308Speterworld: 14318362Sjkh @echo "--------------------------------------------------------------" 14419966Sache @echo "make world started on `LC_TIME=C date`" 14518362Sjkh @echo "--------------------------------------------------------------" 14617308Speter.if target(pre-world) 14717308Speter @echo "--------------------------------------------------------------" 14817308Speter @echo " Making 'pre-world' target" 14917308Speter @echo "--------------------------------------------------------------" 15017308Speter cd ${.CURDIR} && ${MAKE} pre-world 15117308Speter @echo 15216550Sjkh.endif 1532061Sjkh @echo "--------------------------------------------------------------" 15417308Speter @echo " Making hierarchy" 1552061Sjkh @echo "--------------------------------------------------------------" 15617308Speter cd ${.CURDIR} && ${MAKE} hierarchy 1572061Sjkh @echo 15817308Speter @echo "--------------------------------------------------------------" 15917308Speter @echo " Cleaning up the source tree" 16017308Speter @echo "--------------------------------------------------------------" 16117308Speter.if defined(NOCLEAN) 16217308Speter @echo "Not cleaning anything! I sure hope you know what you are doing!" 16317308Speter.else 16417466Speter cd ${.CURDIR} && ${MAKE} ${CLEANDIR} 16517308Speter.endif 16617308Speter @echo 16717466Speter.if !defined(NOOBJDIR) 16817308Speter @echo "--------------------------------------------------------------" 16917308Speter @echo " Rebuilding the obj tree" 17017308Speter @echo "--------------------------------------------------------------" 17117308Speter cd ${.CURDIR} && ${MAKE} obj 17217466Speter @echo 17317308Speter.endif 17417308Speter @echo "--------------------------------------------------------------" 17517308Speter @echo " Rebuilding bootstrap tools" 17617308Speter @echo "--------------------------------------------------------------" 17717308Speter cd ${.CURDIR} && ${MAKE} bootstrap 17817308Speter @echo 17917308Speter @echo "--------------------------------------------------------------" 18017308Speter @echo " Rebuilding tools necessary to build the include files" 18117308Speter @echo "--------------------------------------------------------------" 18217308Speter cd ${.CURDIR} && ${MAKE} include-tools 18317308Speter @echo 18417308Speter @echo "--------------------------------------------------------------" 18517308Speter @echo " Rebuilding /usr/include" 18617308Speter @echo "--------------------------------------------------------------" 18717308Speter cd ${.CURDIR} && ${MAKE} includes 18817308Speter @echo 18917308Speter @echo "--------------------------------------------------------------" 19017308Speter @echo " Rebuilding tools needed to build the libraries" 19117308Speter @echo "--------------------------------------------------------------" 19217308Speter cd ${.CURDIR} && ${MAKE} lib-tools 19317308Speter @echo 19417308Speter @echo "--------------------------------------------------------------" 19517308Speter @echo " Rebuilding /usr/lib" 19617308Speter @echo "--------------------------------------------------------------" 19717308Speter cd ${.CURDIR} && ${MAKE} libraries 19817308Speter @echo 19917308Speter @echo "--------------------------------------------------------------" 20018392Speter @echo " Rebuilding sgml tools, symorder, groff and zic(8)" 20117308Speter @echo "--------------------------------------------------------------" 20217308Speter cd ${.CURDIR} && ${MAKE} build-tools 20317308Speter @echo 20417308Speter @echo "--------------------------------------------------------------" 20517962Speter @echo " Rebuilding dependencies" 20617308Speter @echo "--------------------------------------------------------------" 20717962Speter cd ${.CURDIR} && ${MAKE} depend 20817962Speter @echo 20917962Speter @echo "--------------------------------------------------------------" 21017962Speter @echo " Building everything.." 21117962Speter @echo "--------------------------------------------------------------" 21217962Speter cd ${.CURDIR} && ${MAKE} all 21317962Speter @echo 21417962Speter @echo "--------------------------------------------------------------" 21517962Speter @echo " Installing everything.." 21617962Speter @echo "--------------------------------------------------------------" 21717962Speter cd ${.CURDIR} && ${MAKE} install 21817962Speter @echo 21917962Speter @echo "--------------------------------------------------------------" 22017962Speter @echo " Rebuilding man page indexes" 22117962Speter @echo "--------------------------------------------------------------" 22217308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 22316550Sjkh.if target(post-world) 22417308Speter @echo 22517308Speter @echo "--------------------------------------------------------------" 22617308Speter @echo " Making 'post-world' target" 22717308Speter @echo "--------------------------------------------------------------" 22816550Sjkh cd ${.CURDIR} && ${MAKE} post-world 22916550Sjkh.endif 23017308Speter @echo 23117308Speter @echo "--------------------------------------------------------------" 23219966Sache @echo "make world completed on `LC_TIME=C date`" 23317962Speter @echo "--------------------------------------------------------------" 2342061Sjkh 23517308Speter# 23617308Speter# reinstall 23717308Speter# 23817308Speter# If you have a build server, you can NFS mount the source and obj directories 23917308Speter# and do a 'make reinstall' on the *client* to install new binaries from the 24017308Speter# most recent server build. 24117308Speter# 24217308Speterreinstall: 24312483Speter @echo "--------------------------------------------------------------" 24417308Speter @echo " Making hierarchy" 24512483Speter @echo "--------------------------------------------------------------" 24617308Speter cd ${.CURDIR} && ${MAKE} hierarchy 24712483Speter @echo 2482061Sjkh @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# bootstrap - [re]build tools needed to run the actual build, this includes 35417308Speter# tools needed by 'make depend', as some tools are needed to generate source 35517308Speter# for the dependency information to be gathered from. 35617308Speter# 35717308Speterbootstrap: 35817820Sjkh cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \ 35917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 36017820Sjkh cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \ 36117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 36217820Sjkh cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \ 36317467Speter ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR} 36417308Speter 36517308Speter# 36617308Speter# include-tools - generally the same as 'bootstrap', except that it's for 36717308Speter# things that are specifically needed to generate include files. 36817308Speter# 36917308Speter# XXX should be merged with bootstrap, it's not worth keeeping them seperate 37017308Speter# 37117308Speterinclude-tools: 37217820Sjkh cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \ 37317820Sjkh ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR} 37417308Speter 37517308Speter# 37617308Speter# includes - possibly generate and install the include files. 37717308Speter# 37814119Speterincludes: 3792061Sjkh.if defined(CLOBBER) 3807130Srgrimes rm -rf ${DESTDIR}/usr/include/* 3817130Srgrimes mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 3827130Srgrimes -p ${DESTDIR}/usr/include 3832061Sjkh.endif 38417962Speter cd ${.CURDIR}/include/rpcsvc && ${MAKE} all 3852061Sjkh cd ${.CURDIR}/include && ${MAKE} install 38617308Speter cd ${.CURDIR}/gnu/include && ${MAKE} install 3872685Srgrimes cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall 3886927Snate cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall 38918674Speter cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall 3902685Srgrimes cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall 3913518Sache cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall 3923197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 3933197Scsgr cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall 39412166Sjkh cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall 39512485Sjkh cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall 3963197Scsgr.endif 39725313Sbde cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall 3982061Sjkh cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall 3992061Sjkh cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall 4002061Sjkh cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall 40116786Snate cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall 4022883Sphk cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall 40317308Speter cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall 40417308Speter cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall 4057281Srgrimes.if !defined(WANT_CSRG_LIBM) 4063242Spaul cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall 4073242Spaul.endif 4087171Sats cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall 4092061Sjkh cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall 4103213Spst cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall 41117308Speter cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall 41217308Speter cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall 4135749Swollman cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall 4145772Swollman cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall 41517308Speter cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall 41617308Speter cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall 4172061Sjkh 41817308Speter# 41917308Speter# lib-tools - build tools to compile and install the libraries. 42017308Speter# 4215366Snatelib-tools: 42217820Sjkh cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \ 42317467Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 42417820Sjkh cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \ 42517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 42618674Speter cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \ 42718674Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 42817820Sjkh cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \ 42917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43017820Sjkh cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \ 43117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43217820Sjkh cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \ 43317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43417820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 43517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43617820Sjkh cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \ 43717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \ 4385728Swollman rm -f /usr/sbin/compile_et 43917820Sjkh cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \ 44017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44121922Sjkh cd ${.CURDIR}/usr.bin/uudecode && ${MAKE} depend && \ 44221922Sjkh ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44318392Speter cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \ 44418392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44518392Speter cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \ 44618392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44718392Speter cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \ 44818392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4495366Snate 45017308Speter# 45117308Speter# libraries - build and install the libraries 45217308Speter# 4532061Sjkhlibraries: 45424754Sjdp.if exists(lib/csu/i386) 45524754Sjdp cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ 45624754Sjdp ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45724754Sjdp.endif 4588295Srgrimes.if exists(lib/libcompat) 45917820Sjkh cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \ 46017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4618295Srgrimes.endif 4628489Srgrimes.if exists(lib/libncurses) 46317820Sjkh cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \ 46417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4658489Srgrimes.endif 4668489Srgrimes.if exists(lib/libtermcap) 46717820Sjkh cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \ 46817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4698489Srgrimes.endif 4708295Srgrimes.if exists(gnu) 47117820Sjkh cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \ 47217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4738295Srgrimes.endif 4742160Scsgr.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 47517820Sjkh cd ${.CURDIR}/secure/lib && ${MAKE} depend && \ 47617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4772160Scsgr.endif 4782279Spaul.if exists(lib) 47917820Sjkh cd ${.CURDIR}/lib && ${MAKE} depend && \ 48017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4812279Spaul.endif 48217234Sjraynard.if exists(usr.bin/lex/lib) 48317820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 48417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 48511772Snate.endif 4863197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 48717820Sjkh cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \ 48817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4892626Scsgr.endif 4908304Srgrimes.if exists(usr.sbin/pcvt/keycap) 49117820Sjkh cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \ 49217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4938304Srgrimes.endif 4942061Sjkh 49517308Speter# 49617308Speter# build-tools - build and install any other tools needed to complete the 49717308Speter# compile and install. 49817308Speter# 49911806Sphkbuild-tools: 50019175Sbde.for d in \ 50121673Sjkh share/info \ 50221536Sjmacd gnu/usr.bin/texinfo \ 50319175Sbde usr.bin/symorder \ 50419175Sbde usr.bin/sgmls \ 50519175Sbde usr.bin/sgmlfmt \ 50619175Sbde share/sgml \ 50719175Sbde usr.sbin/zic \ 50819175Sbde gnu/usr.bin/awk \ 50919175Sbde gnu/usr.bin/groff 51019175Sbde cd ${.CURDIR}/$d && ${MAKE} depend && \ 51117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51219175Sbde.endfor 5132061Sjkh 5141594Srgrimes.include <bsd.subdir.mk> 515