]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
This commit was generated by cvs2svn to compensate for changes in r42575,
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 #       $Id: Makefile,v 1.86 1998/11/29 02:47:52 bde Exp $
3
4 # To satisfy shared library or ELF linkage when only the libraries being
5 # built are visible:
6 #
7 # csu must be built before all shared libaries for ELF.
8 # libcom_err must be built before libss.
9 # libcrypt must be built before libskey.
10 # libm must be built before libf2c, libg++ and libstdc++.
11 # libmd must be built before libatm, libopie, libradius, libskey,
12 # and libtacplus.
13 # libmytinfo must be built before libdialog and libncurses.
14 # libncurses must be built before libdialog.
15 # libradius must be built before libpam.
16 # libskey must be built before libpam.
17 # libtacplus must be built before libpam.
18 # libtermcap must be built before libcurses, libedit and libreadline.
19 #
20 # Otherwise, the SUBDIR list should be in alphabetical order.
21
22 SUBDIR= ${_csu} libcom_err ${_libcrypt} ${_libm} libmd libmytinfo \
23         libncurses libradius libskey libtacplus libtermcap \
24         ${_compat} libalias libatm libbind libc ${_libc_r} libcalendar libcam \
25         libcompat libcurses libdevstat libdisk libedit libf2c libfetch \
26         libftpio libgnumalloc ${_libio} libipx libkvm libopie libpam \
27         libpcap libresolv librpcsvc libss libstand \
28         ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
29
30 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
31 _csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
32 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
33 _csu=csu/${MACHINE_ARCH}
34 .endif
35
36 .if !defined(NOLIBC_R)
37 _libc_r=        libc_r
38 .endif
39
40 # Build both libraries. They have different names, so no harm,
41 # and this avoids having stale libscrypt.*
42 .if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
43 _libcrypt=      ../secure/lib/libcrypt libcrypt
44 .else
45 _libcrypt=      libcrypt
46 .endif
47
48 .if ${MACHINE_ARCH} == "i386"
49 _compat=        compat
50 _libvgl=        libvgl
51 .endif
52
53 .if defined(WANT_CSRG_LIBM)
54 _libm=          libm
55 .else
56 _libm=          msun
57 .endif
58
59 .if ${MACHINE_ARCH} == "alpha"
60 _libio=         libio
61 .endif
62
63 .if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
64     defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
65 _libtelnet=     libtelnet
66 .endif
67
68 .include <bsd.subdir.mk>