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