Deleted Added
full compact
Makefile (34330) Makefile (34689)
1# $Id$
2# @(#)Makefile 8.1 (Berkeley) 6/4/93
1# @(#)Makefile 8.1 (Berkeley) 6/4/93
2# $Id$
3
3
4# To satisfy shared library or ELF linkage when only the libraries being
5# built are visible:
6#
7# libcom_err must be built before libss.
8# libcrypt and libmd must be built before libskey.
9# libm must be built before libtcl.
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
15SUBDIR= libcom_err ${_libcrypt} ${_libm} libmytinfo libtermcap \
16 compat ${_csu} libalias libc ${_libc_r} libcalendar \
17 libcompat libcurses ${_libdisk} libedit libf2c libftpio \
18 libgnumalloc libipx ${_libkvm} libmd libncurses libopie \
19 libpcap libresolv librpcsvc ${_libscsi} libskey libss \
20 ${_libtcl} ${_libtelnet} libutil ${_libvgl} libxpg4 liby libz
21
4.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
22.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT})
5SUBDIR=csu/${MACHINE_ARCH}-${BINFORMAT}
23_csu=csu/${MACHINE_ARCH}-${BINFORMAT}
6.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
24.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
7SUBDIR=csu/${MACHINE_ARCH}
25_csu=csu/${MACHINE_ARCH}
8.endif
9
26.endif
27
10# XXX MISSING: libplot
11SUBDIR+=libalias libc libcalendar libcompat libcom_err libcurses \
12 libedit libf2c libftpio libgnumalloc libipx libmd libmytinfo \
13 libncurses libopie libpcap libresolv librpcsvc \
14 libskey libss libtermcap libutil libxpg4 liby libz
15
16.if !defined(NOLIBC_R)
28.if !defined(NOLIBC_R)
17SUBDIR+= libc_r
29_libc_r= libc_r
18.endif
19
30.endif
31
20.if ${MACHINE_ARCH} == "i386"
21SUBDIR+=libdisk libkvm libscsi libvgl
22
23.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
24 exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
25SUBDIR+=libtcl
26.endif
27.endif
28
29.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT)
32.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT)
30SUBDIR+= libcrypt
33_libcrypt= libcrypt
31.else
34.else
32SUBDIR+= ../secure/lib/libcrypt
35_libcrypt= ../secure/lib/libcrypt
36# Releases need both libraries.
33.if defined(RELEASEDIR)
37.if defined(RELEASEDIR)
34# releases do need both libraries
35SUBDIR+= libcrypt
38_libcrypt+= libcrypt
36.endif
37.endif
38
39.endif
40.endif
41
39.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
40# releases do need both libraries
41SUBDIR+= libtelnet
42.if ${MACHINE_ARCH} == "i386"
43_libdisk= libdisk
44_libkvm= libkvm
45_libscsi= libscsi
46_libvgl= libvgl
47
48.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
49 exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
50_libtcl= libtcl
42.endif
51.endif
52.endif
43
44.if defined(WANT_CSRG_LIBM)
53
54.if defined(WANT_CSRG_LIBM)
45SUBDIR+= libm
55_libm= libm
46.else
56.else
47SUBDIR+= msun
57_libm= msun
48.endif
49
58.endif
59
50SUBDIR+= compat
60.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \
61 defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
62_libtelnet= libtelnet
63.endif
51
52.include <bsd.subdir.mk>
64
65.include <bsd.subdir.mk>