Makefile revision 34689
1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $Id$ 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 22.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-${BINFORMAT}) 23_csu=csu/${MACHINE_ARCH}-${BINFORMAT} 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.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT) 33_libcrypt= libcrypt 34.else 35_libcrypt= ../secure/lib/libcrypt 36# Releases need both libraries. 37.if defined(RELEASEDIR) 38_libcrypt+= libcrypt 39.endif 40.endif 41 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 51.endif 52.endif 53 54.if defined(WANT_CSRG_LIBM) 55_libm= libm 56.else 57_libm= msun 58.endif 59 60.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || \ 61 defined(NOCRYPT) || !defined(MAKE_KERBEROS4) 62_libtelnet= libtelnet 63.endif 64 65.include <bsd.subdir.mk> 66