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