summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-11-18 01:59:39 +0000
committerjdp <jdp@FreeBSD.org>1998-11-18 01:59:39 +0000
commit617101032a160854784d5732a62fac1f3c9acc6b (patch)
tree994aa7dcec6bdde5381c37de23faa6f4a0dce187 /Makefile.inc1
parentb0e6de8c6eac00bba6acdadfedd67e16dbde6801 (diff)
downloadFreeBSD-src-617101032a160854784d5732a62fac1f3c9acc6b.zip
FreeBSD-src-617101032a160854784d5732a62fac1f3c9acc6b.tar.gz
Add libpam to the "includes" and "libraries" targets.
Build the ordered list of libraries in a variable "_libs" before building any of them. This eliminates a little bit of duplicated code. More importantly, it makes it easier to include or exclude libraries with .if constructs, because the list can be built in multiple steps using "+=".
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc128
1 files changed, 16 insertions, 12 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 2e90ee4..e6ed675 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1,5 +1,5 @@
#
-# $Id: Makefile.inc1,v 1.41 1998/11/15 10:03:12 jb Exp $
+# $Id: Makefile.inc1,v 1.42 1998/11/18 00:40:38 jdp Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
@@ -577,6 +577,7 @@ includes:
cd ${.CURDIR}/lib/msun; ${MAKE} beforeinstall
.endif
cd ${.CURDIR}/lib/libopie; ${MAKE} beforeinstall
+ cd ${.CURDIR}/lib/libpam/libpam; ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libpcap; ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libradius; ${MAKE} beforeinstall
cd ${.CURDIR}/lib/librpcsvc; ${MAKE} beforeinstall
@@ -652,6 +653,7 @@ lib-tools:
# libmytinfo must be built before libdialog and libncurses.
# libncurses must be built before libdialog.
# libtermcap must be built before libcurses, libedit and libreadline.
+# libdes, libkrb, libradius and libtacplus must be built before libpam.
#
# Some libraries are built conditionally and/or are in inconsistently
# named directories:
@@ -716,22 +718,24 @@ bootstrap-libraries:
# the prerequisites first, then build almost everything else in
# alphabetical order.
#
+_libs= ${_csu} lib/libcom_err ${_libcrypt} ${_libm} lib/libmd \
+ lib/libmytinfo lib/libncurses lib/libtermcap \
+ lib/libradius lib/libtacplus
+.if !defined(NOCRYPT) && !defined(NOSECURE)
+_libs+= secure/lib
+.endif
+.if !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
+_libs+= kerberosIV/lib
+.endif
+_libs+= gnu/lib gnu/usr.bin/cc/libgcc ${_libperl} lib usr.bin/lex/lib \
+ usr.sbin/pcvt/keycap
+
libraries:
-.for _lib in ${_csu} lib/libcom_err ${_libcrypt} ${_libm} lib/libmd \
- lib/libmytinfo lib/libncurses lib/libtermcap \
- gnu/lib gnu/usr.bin/cc/libgcc ${_libperl} lib usr.bin/lex/lib \
- usr.sbin/pcvt/keycap
+.for _lib in ${_libs}
.if exists(${.CURDIR}/${_lib})
cd ${.CURDIR}/${_lib}; ${MAKE} all; ${MAKE} -B install
.endif
.endfor
-.if exists(${.CURDIR}/secure/lib) && !defined(NOCRYPT) && !defined(NOSECURE)
- cd ${.CURDIR}/secure/lib; ${MAKE} all; ${MAKE} -B install
-.endif
-.if exists(${.CURDIR}/kerberosIV/lib) && !defined(NOCRYPT) && \
- defined(MAKE_KERBEROS4)
- cd ${.CURDIR}/kerberosIV/lib; ${MAKE} all; ${MAKE} -B install
-.endif
#
# Exclude unused tools from build-tools.
OpenPOWER on IntegriCloud