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 "+=".
This commit is contained in:
parent
a0a4fbec88
commit
3da08d4af1
@ -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:
|
# Make command line options:
|
||||||
# -DCLOBBER will remove /usr/include
|
# -DCLOBBER will remove /usr/include
|
||||||
@ -577,6 +577,7 @@ includes:
|
|||||||
cd ${.CURDIR}/lib/msun; ${MAKE} beforeinstall
|
cd ${.CURDIR}/lib/msun; ${MAKE} beforeinstall
|
||||||
.endif
|
.endif
|
||||||
cd ${.CURDIR}/lib/libopie; ${MAKE} beforeinstall
|
cd ${.CURDIR}/lib/libopie; ${MAKE} beforeinstall
|
||||||
|
cd ${.CURDIR}/lib/libpam/libpam; ${MAKE} beforeinstall
|
||||||
cd ${.CURDIR}/lib/libpcap; ${MAKE} beforeinstall
|
cd ${.CURDIR}/lib/libpcap; ${MAKE} beforeinstall
|
||||||
cd ${.CURDIR}/lib/libradius; ${MAKE} beforeinstall
|
cd ${.CURDIR}/lib/libradius; ${MAKE} beforeinstall
|
||||||
cd ${.CURDIR}/lib/librpcsvc; ${MAKE} beforeinstall
|
cd ${.CURDIR}/lib/librpcsvc; ${MAKE} beforeinstall
|
||||||
@ -652,6 +653,7 @@ lib-tools:
|
|||||||
# libmytinfo must be built before libdialog and libncurses.
|
# libmytinfo must be built before libdialog and libncurses.
|
||||||
# libncurses must be built before libdialog.
|
# libncurses must be built before libdialog.
|
||||||
# libtermcap must be built before libcurses, libedit and libreadline.
|
# 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
|
# Some libraries are built conditionally and/or are in inconsistently
|
||||||
# named directories:
|
# named directories:
|
||||||
@ -716,22 +718,24 @@ bootstrap-libraries:
|
|||||||
# the prerequisites first, then build almost everything else in
|
# the prerequisites first, then build almost everything else in
|
||||||
# alphabetical order.
|
# 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:
|
libraries:
|
||||||
.for _lib in ${_csu} lib/libcom_err ${_libcrypt} ${_libm} lib/libmd \
|
.for _lib in ${_libs}
|
||||||
lib/libmytinfo lib/libncurses lib/libtermcap \
|
|
||||||
gnu/lib gnu/usr.bin/cc/libgcc ${_libperl} lib usr.bin/lex/lib \
|
|
||||||
usr.sbin/pcvt/keycap
|
|
||||||
.if exists(${.CURDIR}/${_lib})
|
.if exists(${.CURDIR}/${_lib})
|
||||||
cd ${.CURDIR}/${_lib}; ${MAKE} all; ${MAKE} -B install
|
cd ${.CURDIR}/${_lib}; ${MAKE} all; ${MAKE} -B install
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.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.
|
# Exclude unused tools from build-tools.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user