]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Hook up libcam and libdevstat.
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 #       $Id: Makefile,v 1.77 1998/09/07 13:59:15 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 and libmd must be built before libskey.
10 # libmytinfo must be built before libncurses.
11 # libtermcap must be built before libcurses and libedit.
12 #
13 # Otherwise, the SUBDIR list should be in alphabetical order.
14
15 SUBDIR= ${_csu} libcom_err ${_libcrypt} libmytinfo libtermcap \
16         ${_compat} libalias libbind libc ${_libc_r} libcalendar libcam \
17         libcompat libcurses libdevstat ${_libdisk} libedit libf2c libfetch \
18         libftpio libgnumalloc libipx libkvm ${_libm} libmd libncurses libopie \
19         libpcap libresolv librpcsvc ${_libscsi} libskey libss libstand \
20         ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
21
22 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${OBJFORMAT})
23 _csu=csu/${MACHINE_ARCH}-${OBJFORMAT}
24 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
25 _csu=csu/${MACHINE_ARCH}
26 .endif
27
28 .if !defined(NOLIBC_R)
29 _libc_r=        libc_r
30 .endif
31
32 # Build both libraries. They have different names, so no harm,
33 # and this avoids having stale libscrypt.*
34 .if exists(${.CURDIR}/../secure) && !defined(NOSECURE) && !defined(NOCRYPT)
35 _libcrypt=      ../secure/lib/libcrypt libcrypt
36 .else
37 _libcrypt=      libcrypt
38 .endif
39
40 .if ${MACHINE_ARCH} == "i386"
41 _compat=        compat
42 _libdisk=       libdisk
43 _libscsi=       libscsi
44 _libvgl=        libvgl
45 .endif
46
47 .if defined(WANT_CSRG_LIBM)
48 _libm=          libm
49 .else
50 _libm=          msun
51 .endif
52
53 .if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
54     defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
55 _libtelnet=     libtelnet
56 .endif
57
58 .include <bsd.subdir.mk>