Makefile revision 18392
12061Sjkh# 218392Speter# $Id: Makefile,v 1.101 1996/09/18 18:14:37 jkh 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) 93197Scsgr# 102061Sjkh# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 1112483Speter# -DNOCLEAN do not clean at all 122160Scsgr# -DNOCRYPT will prevent building of crypt versions 132834Swollman# -DNOLKM do not build loadable kernel modules 142061Sjkh# -DNOOBJDIR do not run ``${MAKE} obj'' 152061Sjkh# -DNOPROFILE do not build profiled libraries 162160Scsgr# -DNOSECURE do not go into secure subdir 1717308Speter# -DNOGAMES do not go into games subdir 181594Srgrimes 1917308Speter# 2017308Speter# The intended user-driven targets are: 2117308Speter# world - rebuild *everything*, including glue to help do upgrades. 2217308Speter# reinstall - use an existing (eg: NFS mounted) build to do an update. 2317308Speter# update - convenient way to update your source tree (eg: sup/cvs) 2417308Speter# most - build user commands, no libraries or include files 2517308Speter# installmost - install user commands, no libraries or include files 2617308Speter# all - run through SUBDIR and build everything. This is an implicit 2717308Speter# rule, not particularly useful for everybody. Use 'world'. 2817308Speter 2917308Speter 302061Sjkh# Put initial settings here. 312061SjkhSUBDIR= 321594Srgrimes 337407Srgrimes# We must do include and lib first so that the perl *.ph generation 347407Srgrimes# works correctly as it uses the header files installed by this. 357108Sphk.if exists(include) 367108SphkSUBDIR+= include 377108Sphk.endif 387407Srgrimes.if exists(lib) 397407SrgrimesSUBDIR+= lib 407407Srgrimes.endif 417108Sphk 422061Sjkh.if exists(bin) 432061SjkhSUBDIR+= bin 442061Sjkh.endif 4517308Speter.if exists(games) && !defined(NOGAMES) 462061SjkhSUBDIR+= games 472061Sjkh.endif 482061Sjkh.if exists(gnu) 492061SjkhSUBDIR+= gnu 502061Sjkh.endif 513197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 522626ScsgrSUBDIR+= eBones 532626Scsgr.endif 542061Sjkh.if exists(libexec) 552061SjkhSUBDIR+= libexec 562061Sjkh.endif 572061Sjkh.if exists(sbin) 582061SjkhSUBDIR+= sbin 592061Sjkh.endif 602061Sjkh.if exists(share) 612061SjkhSUBDIR+= share 622061Sjkh.endif 632061Sjkh.if exists(sys) 642061SjkhSUBDIR+= sys 652061Sjkh.endif 662061Sjkh.if exists(usr.bin) 672061SjkhSUBDIR+= usr.bin 682061Sjkh.endif 692061Sjkh.if exists(usr.sbin) 702061SjkhSUBDIR+= usr.sbin 712061Sjkh.endif 722834Swollman.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 732834SwollmanSUBDIR+= secure 742834Swollman.endif 752834Swollman.if exists(lkm) && !defined(NOLKM) 762834SwollmanSUBDIR+= lkm 772834Swollman.endif 781594Srgrimes 794486Sphk# etc must be last for "distribute" to work 804486Sphk.if exists(etc) && make(distribute) 814486SphkSUBDIR+= etc 824486Sphk.endif 834486Sphk 842061Sjkh# These are last, since it is nice to at least get the base system 852061Sjkh# rebuilt before you do them. 862061Sjkh.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile) 872061SjkhSUBDIR+= local 882061Sjkh.endif 892061Sjkh.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile) 902061SjkhSUBDIR+= ports 912061Sjkh.endif 922061Sjkh 9317308Speter# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR 942061Sjkh.if defined(NOOBJDIR) 952061SjkhOBJDIR= 962061Sjkh.else 972061SjkhOBJDIR= obj 982061Sjkh.endif 9912483Speter 10012483Speter.if defined(NOCLEAN) 10112483SpeterCLEANDIR= 10212483Speter.else 1032061Sjkh.if defined(NOCLEANDIR) 1042061SjkhCLEANDIR= clean 1058854Srgrimes.else 1062061SjkhCLEANDIR= cleandir 1072061Sjkh.endif 10812483Speter.endif 1092061Sjkh 11017308Speter# 11117308Speter# While building tools for bootstrapping, we dont need to waste time on 11217308Speter# profiled libraries or man pages. This speeds things up somewhat. 11317308Speter# 11415603SmarkmMK_FLAGS= -DNOMAN -DNOPROFILE 11515603Smarkm 11617308Speter# 11717308Speter# world 11817308Speter# 11917308Speter# Attempt to rebuild and reinstall *everything*, with reasonable chance of 12017308Speter# success, regardless of how old your existing system is. 12117308Speter# 12217308Speter# >> Beware, it overwrites the local build environment! << 12317308Speter# 12417308Speterworld: 12518362Sjkh @echo "--------------------------------------------------------------" 12618362Sjkh @echo "make world started on `date`" 12718362Sjkh @echo "--------------------------------------------------------------" 12817308Speter.if target(pre-world) 12917308Speter @echo "--------------------------------------------------------------" 13017308Speter @echo " Making 'pre-world' target" 13117308Speter @echo "--------------------------------------------------------------" 13217308Speter cd ${.CURDIR} && ${MAKE} pre-world 13317308Speter @echo 13416550Sjkh.endif 1352061Sjkh @echo "--------------------------------------------------------------" 13617308Speter @echo " Making hierarchy" 1372061Sjkh @echo "--------------------------------------------------------------" 13817308Speter cd ${.CURDIR} && ${MAKE} hierarchy 1392061Sjkh @echo 14017308Speter @echo "--------------------------------------------------------------" 14117308Speter @echo " Rebuilding /usr/share/mk" 14217308Speter @echo "--------------------------------------------------------------" 14317308Speter cd ${.CURDIR} && ${MAKE} mk 14417308Speter @echo 14517308Speter @echo "--------------------------------------------------------------" 14617308Speter @echo " Cleaning up the source tree" 14717308Speter @echo "--------------------------------------------------------------" 14817308Speter.if defined(NOCLEAN) 14917308Speter @echo "Not cleaning anything! I sure hope you know what you are doing!" 15017308Speter.else 15117466Speter cd ${.CURDIR} && ${MAKE} ${CLEANDIR} 15217308Speter.endif 15317308Speter @echo 15417466Speter.if !defined(NOOBJDIR) 15517308Speter @echo "--------------------------------------------------------------" 15617308Speter @echo " Rebuilding the obj tree" 15717308Speter @echo "--------------------------------------------------------------" 15817308Speter cd ${.CURDIR} && ${MAKE} obj 15917466Speter @echo 16017308Speter.endif 16117308Speter @echo "--------------------------------------------------------------" 16217308Speter @echo " Rebuilding bootstrap tools" 16317308Speter @echo "--------------------------------------------------------------" 16417308Speter cd ${.CURDIR} && ${MAKE} bootstrap 16517308Speter @echo 16617308Speter @echo "--------------------------------------------------------------" 16717308Speter @echo " Rebuilding tools necessary to build the include files" 16817308Speter @echo "--------------------------------------------------------------" 16917308Speter cd ${.CURDIR} && ${MAKE} include-tools 17017308Speter @echo 17117308Speter @echo "--------------------------------------------------------------" 17217308Speter @echo " Rebuilding /usr/include" 17317308Speter @echo "--------------------------------------------------------------" 17417308Speter cd ${.CURDIR} && ${MAKE} includes 17517308Speter @echo 17617308Speter @echo "--------------------------------------------------------------" 17717308Speter @echo " Rebuilding tools needed to build the libraries" 17817308Speter @echo "--------------------------------------------------------------" 17917308Speter cd ${.CURDIR} && ${MAKE} lib-tools 18017308Speter @echo 18117308Speter @echo "--------------------------------------------------------------" 18217308Speter @echo " Rebuilding /usr/lib" 18317308Speter @echo "--------------------------------------------------------------" 18417308Speter cd ${.CURDIR} && ${MAKE} libraries 18517308Speter @echo 18617308Speter @echo "--------------------------------------------------------------" 18718392Speter @echo " Rebuilding sgml tools, symorder, groff and zic(8)" 18817308Speter @echo "--------------------------------------------------------------" 18917308Speter cd ${.CURDIR} && ${MAKE} build-tools 19017308Speter @echo 19117308Speter @echo "--------------------------------------------------------------" 19217962Speter @echo " Rebuilding dependencies" 19317308Speter @echo "--------------------------------------------------------------" 19417962Speter cd ${.CURDIR} && ${MAKE} depend 19517962Speter @echo 19617962Speter @echo "--------------------------------------------------------------" 19717962Speter @echo " Building everything.." 19817962Speter @echo "--------------------------------------------------------------" 19917962Speter cd ${.CURDIR} && ${MAKE} all 20017962Speter @echo 20117962Speter @echo "--------------------------------------------------------------" 20217962Speter @echo " Installing everything.." 20317962Speter @echo "--------------------------------------------------------------" 20417962Speter cd ${.CURDIR} && ${MAKE} install 20517962Speter @echo 20617962Speter @echo "--------------------------------------------------------------" 20717962Speter @echo " Rebuilding man page indexes" 20817962Speter @echo "--------------------------------------------------------------" 20917308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 21016550Sjkh.if target(post-world) 21117308Speter @echo 21217308Speter @echo "--------------------------------------------------------------" 21317308Speter @echo " Making 'post-world' target" 21417308Speter @echo "--------------------------------------------------------------" 21516550Sjkh cd ${.CURDIR} && ${MAKE} post-world 21616550Sjkh.endif 21717308Speter @echo 21817308Speter @echo "--------------------------------------------------------------" 21914545Sjkh @echo "make world completed on `date`" 22017962Speter @echo "--------------------------------------------------------------" 2212061Sjkh 22217308Speter# 22317308Speter# reinstall 22417308Speter# 22517308Speter# If you have a build server, you can NFS mount the source and obj directories 22617308Speter# and do a 'make reinstall' on the *client* to install new binaries from the 22717308Speter# most recent server build. 22817308Speter# 22917308Speterreinstall: 23012483Speter @echo "--------------------------------------------------------------" 23117308Speter @echo " Making hierarchy" 23212483Speter @echo "--------------------------------------------------------------" 23317308Speter cd ${.CURDIR} && ${MAKE} hierarchy 23412483Speter @echo 2352061Sjkh @echo "--------------------------------------------------------------" 23617308Speter @echo " Rebuilding /usr/share/mk" 2372061Sjkh @echo "--------------------------------------------------------------" 23817308Speter cd ${.CURDIR} && ${MAKE} mk 23917308Speter @echo 24017308Speter @echo "--------------------------------------------------------------" 24117308Speter @echo " Rebuilding /usr/include" 24217308Speter @echo "--------------------------------------------------------------" 24317308Speter cd ${.CURDIR} && ${MAKE} includes 24417308Speter @echo 24517308Speter @echo "--------------------------------------------------------------" 24617962Speter @echo " Rebuilding dependencies" 24717308Speter @echo "--------------------------------------------------------------" 24817962Speter cd ${.CURDIR} && ${MAKE} depend 24917308Speter @echo 25017962Speter @echo "--------------------------------------------------------------" 25117962Speter @echo " Building everything.." 25217962Speter @echo "--------------------------------------------------------------" 25317962Speter cd ${.CURDIR} && ${MAKE} all 25417962Speter @echo 25517962Speter @echo "--------------------------------------------------------------" 25617962Speter @echo " Installing everything.." 25717962Speter @echo "--------------------------------------------------------------" 25817308Speter cd ${.CURDIR} && ${MAKE} install 25917962Speter @echo 26017962Speter @echo "--------------------------------------------------------------" 26117962Speter @echo " Rebuilding man page indexes" 26217962Speter @echo "--------------------------------------------------------------" 26317308Speter cd ${.CURDIR}/share/man && ${MAKE} makedb 2642061Sjkh 26517308Speter 26617308Speter# 26717308Speter# update 26817308Speter# 26917308Speter# Update the source tree, by running sup and/or running cvs to update to the 27017308Speter# latest copy. 27117308Speter# 2722302Spaulupdate: 2732302Spaul.if defined(SUP_UPDATE) 2742302Spaul @echo "--------------------------------------------------------------" 2752302Spaul @echo "Running sup" 2762302Spaul @echo "--------------------------------------------------------------" 2772302Spaul @sup -v ${SUPFILE} 27810760Sache.if defined(SUPFILE1) 27910760Sache @sup -v ${SUPFILE1} 2802302Spaul.endif 28110760Sache.if defined(SUPFILE2) 28210760Sache @sup -v ${SUPFILE2} 28310760Sache.endif 28410760Sache.endif 2852302Spaul.if defined(CVS_UPDATE) 2862302Spaul @echo "--------------------------------------------------------------" 2872302Spaul @echo "Updating /usr/src from cvs repository" ${CVSROOT} 2882302Spaul @echo "--------------------------------------------------------------" 28916591Spst cd ${.CURDIR} && cvs -q update -P -d 2902302Spaul.endif 2912302Spaul 29217308Speter 29317308Speter# 29417308Speter# most 29517308Speter# 29617308Speter# Build most of the user binaries on the existing system libs and includes. 29717308Speter# 29817308Spetermost: 2992061Sjkh @echo "--------------------------------------------------------------" 30017308Speter @echo " Building programs only" 3012061Sjkh @echo "--------------------------------------------------------------" 30217308Speter cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all 30317308Speter cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all 30417308Speter cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all 30517308Speter cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all 30617308Speter cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 30717308Speter cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all 30817308Speter cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all 30917308Speter cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all 31017308Speter#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 31117308Speter# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most 31217308Speter#.endif 31317308Speter#.if !defined(NOSECURE) && !defined(NOCRYPT) 31417308Speter# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most 31517308Speter#.endif 3162061Sjkh 31717308Speter# 31817308Speter# installmost 31917308Speter# 32017308Speter# Install the binaries built by the 'most' target. This does not include 32117308Speter# libraries or include files. 32217308Speter# 3233626Swollmaninstallmost: 3243626Swollman @echo "--------------------------------------------------------------" 3253626Swollman @echo " Installing programs only" 3263626Swollman @echo "--------------------------------------------------------------" 3273626Swollman cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install 3283626Swollman cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install 3293626Swollman cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install 3303626Swollman cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3313626Swollman cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3323626Swollman cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install 3333626Swollman cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install 3347059Sroberto cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install 3353626Swollman#.if defined(MAKE_EBONES) && !defined(NOCRYPT) 3363626Swollman# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost 3373626Swollman#.endif 3383626Swollman#.if !defined(NOSECURE) && !defined(NOCRYPT) 3393626Swollman# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost 3403626Swollman#.endif 3413626Swollman 34217308Speter# 34317308Speter# ------------------------------------------------------------------------ 34417308Speter# 34517308Speter# From here onwards are utility targets used by the 'make world' and 34617308Speter# related targets. If your 'world' breaks, you may like to try to fix 34717308Speter# the problem and manually run the following targets to attempt to 34817308Speter# complete the build. Beware, this is *not* guaranteed to work, you 34917308Speter# need to have a pretty good grip on the current state of the system 35017308Speter# to attempt to manually finish it. If in doubt, 'make world' again. 35117308Speter# 3523626Swollman 35317308Speter# 35417308Speter# heirarchy - ensure that all the needed directories are present 35517308Speter# 35617308Speterhierarchy: 35717308Speter cd ${.CURDIR}/etc && ${MAKE} distrib-dirs 35817308Speter 35917308Speter# 36017308Speter# mk - update the /usr/share/mk makefiles. 36117308Speter# 3622061Sjkhmk: 36316663Sjkh cd ${.CURDIR}/share/mk && ${MAKE} install 3642061Sjkh 36517308Speter# 36617308Speter# bootstrap - [re]build tools needed to run the actual build, this includes 36717308Speter# tools needed by 'make depend', as some tools are needed to generate source 36817308Speter# for the dependency information to be gathered from. 36917308Speter# 37017308Speterbootstrap: 37117820Sjkh cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \ 37217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 37317820Sjkh cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \ 37417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 37517820Sjkh cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \ 37617467Speter ${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR} 37717308Speter 37817308Speter# 37917308Speter# include-tools - generally the same as 'bootstrap', except that it's for 38017308Speter# things that are specifically needed to generate include files. 38117308Speter# 38217308Speter# XXX should be merged with bootstrap, it's not worth keeeping them seperate 38317308Speter# 38417308Speterinclude-tools: 38517820Sjkh cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \ 38617820Sjkh ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR} 38717308Speter 38817308Speter# 38917308Speter# includes - possibly generate and install the include files. 39017308Speter# 39114119Speterincludes: 3922061Sjkh.if defined(CLOBBER) 3937130Srgrimes rm -rf ${DESTDIR}/usr/include/* 3947130Srgrimes mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 3957130Srgrimes -p ${DESTDIR}/usr/include 3962061Sjkh.endif 39717962Speter cd ${.CURDIR}/include/rpcsvc && ${MAKE} all 3982061Sjkh cd ${.CURDIR}/include && ${MAKE} install 39917308Speter cd ${.CURDIR}/gnu/include && ${MAKE} install 4002685Srgrimes cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall 4016927Snate cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall 4022685Srgrimes cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall 4033518Sache cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall 4043197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 4053197Scsgr cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall 40612166Sjkh cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall 40712485Sjkh cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall 4083197Scsgr.endif 4092061Sjkh cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall 4102061Sjkh cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall 4112061Sjkh cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall 41216786Snate cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall 4132883Sphk cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall 41417308Speter cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall 41517308Speter cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall 4167281Srgrimes.if !defined(WANT_CSRG_LIBM) 4173242Spaul cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall 4183242Spaul.endif 4197171Sats cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall 4202061Sjkh cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall 4213213Spst cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall 42217308Speter cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall 42317308Speter cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall 4245749Swollman cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall 4255772Swollman cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall 42617308Speter cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall 42717308Speter cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall 4282061Sjkh 42917308Speter# 43017308Speter# lib-tools - build tools to compile and install the libraries. 43117308Speter# 4325366Snatelib-tools: 43317820Sjkh cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \ 43417467Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43517820Sjkh cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \ 43617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43717820Sjkh cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \ 43817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 43917820Sjkh cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \ 44017308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44117820Sjkh cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \ 44217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44317820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 44417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 44517820Sjkh cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \ 44617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \ 4475728Swollman rm -f /usr/sbin/compile_et 44817820Sjkh cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \ 44917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45018392Speter cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \ 45118392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45218392Speter cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \ 45318392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 45418392Speter cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \ 45518392Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4565366Snate 45717308Speter# 45817308Speter# libraries - build and install the libraries 45917308Speter# 4602061Sjkhlibraries: 4618295Srgrimes.if exists(lib/libcompat) 46217820Sjkh cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \ 46317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4648295Srgrimes.endif 4658489Srgrimes.if exists(lib/libncurses) 46617820Sjkh cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \ 46717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4688489Srgrimes.endif 4698489Srgrimes.if exists(lib/libtermcap) 47017820Sjkh cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \ 47117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4728489Srgrimes.endif 47317308Speter.if exists(lib) 47417820Sjkh cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ 47517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 47617308Speter.endif 4778295Srgrimes.if exists(gnu) 47817820Sjkh cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \ 47917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4808295Srgrimes.endif 4812160Scsgr.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 48217820Sjkh cd ${.CURDIR}/secure/lib && ${MAKE} depend && \ 48317308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4842160Scsgr.endif 4852279Spaul.if exists(lib) 48617820Sjkh cd ${.CURDIR}/lib && ${MAKE} depend && \ 48717308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4882279Spaul.endif 48917234Sjraynard.if exists(usr.bin/lex/lib) 49017820Sjkh cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \ 49117308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 49211772Snate.endif 4933197Scsgr.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES) 49417820Sjkh cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \ 49517308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 4962626Scsgr.endif 4978304Srgrimes.if exists(usr.sbin/pcvt/keycap) 49817820Sjkh cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \ 49917308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 5008304Srgrimes.endif 5012061Sjkh 50217308Speter# 50317308Speter# build-tools - build and install any other tools needed to complete the 50417308Speter# compile and install. 50517308Speter# 50611806Sphkbuild-tools: 50717820Sjkh cd ${.CURDIR}/usr.bin/symorder && ${MAKE} depend && \ 50817308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 50918204Sjfieber cd ${.CURDIR}/usr.bin/sgmls && ${MAKE} depend && \ 51018204Sjfieber ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51117820Sjkh cd ${.CURDIR}/usr.bin/sgmlfmt && ${MAKE} depend && \ 51217308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51317820Sjkh cd ${.CURDIR}/share/sgml && ${MAKE} depend && \ 51417308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51517820Sjkh cd ${.CURDIR}/usr.sbin/zic && ${MAKE} depend && \ 51617308Speter ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 51718362Sjkh cd ${.CURDIR}/gnu/usr.bin/groff && ${MAKE} depend && \ 51818362Sjkh ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} 5192061Sjkh 5201594Srgrimes.include <bsd.subdir.mk> 521