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