| 1 | # @(#)Makefile 8.1 (Berkeley) 6/4/93 |
| 2 | # $FreeBSD: src/lib/Makefile,v 1.107.2.16 2002/10/10 19:24:35 kbyanc Exp $ |
| 3 | # $DragonFly: src/lib/Makefile,v 1.7 2004/06/14 19:35:36 joerg Exp $ |
| 4 | |
| 5 | # To satisfy shared library or ELF linkage when only the libraries being |
| 6 | # built are visible: |
| 7 | # |
| 8 | # csu must be built before all shared libaries for ELF. |
| 9 | # libcom_err must be built before libkrb and libpam. |
| 10 | # libcrypt must be built before libkrb, libpam and libskey. |
| 11 | # msun must be built before libg++ and libstdc++. |
| 12 | # libmd must be built before libatm, libopie, libradius, libskey, and |
| 13 | # libtacplus. |
| 14 | # libncurses must be built before libdialog, libedit and libreadline. |
| 15 | # libradius must be built before libpam. |
| 16 | # libskey must be built before libpam. |
| 17 | # libtacplus must be built before libpam. |
| 18 | # libutil must be built before libpam. |
| 19 | # libsbuf must be built before libcam. |
| 20 | # |
| 21 | # Otherwise, the SUBDIR list should be in alphabetical order. |
| 22 | |
| 23 | SUBDIR= ${_csu} csu/common libcom_err libcrypt msun libmd \ |
| 24 | libncurses libradius libskey libtacplus libutil libsbuf \ |
| 25 | ${_compat} libalias libatm ${_libbind} libbz2 libc ${_libc_r} libcalendar \ |
| 26 | libcam libcompat libdevstat libdisk libedit libfetch libform \ |
| 27 | libftpio ${_libio} libipsec libipx libisc libkvm libmenu \ |
| 28 | ${_libmilter} ${_libncp} \ |
| 29 | libnetgraph libopie libpam libpanel libpcap \ |
| 30 | libposix1e librpcsvc ${_libsm} ${_libsmb} ${_libsmdb} \ |
| 31 | ${_libsmutil} \ |
| 32 | libstand ${_libtelnet} libusbhid ${_libvgl} libwrap libxpg4 liby libz |
| 33 | |
| 34 | .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) |
| 35 | _csu=csu/${MACHINE_ARCH}-elf |
| 36 | .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}) |
| 37 | _csu=csu/${MACHINE_ARCH} |
| 38 | .endif |
| 39 | |
| 40 | .if ${MACHINE_ARCH} == "i386" |
| 41 | .if !defined(NOLIBC_R) |
| 42 | _libc_r= libc_r |
| 43 | .endif |
| 44 | .endif |
| 45 | |
| 46 | .if !defined(NO_BIND) |
| 47 | _libbind= libbind |
| 48 | .endif |
| 49 | |
| 50 | .if !defined(NO_SENDMAIL) |
| 51 | _libmilter= libmilter |
| 52 | _libsm= libsm |
| 53 | _libsmdb= libsmdb |
| 54 | _libsmutil= libsmutil |
| 55 | .endif |
| 56 | |
| 57 | .if ${MACHINE_ARCH} == "i386" |
| 58 | _compat= compat |
| 59 | _libncp= libncp |
| 60 | _libsmb= libsmb |
| 61 | _libvgl= libvgl |
| 62 | .endif |
| 63 | |
| 64 | .if ${MACHINE_ARCH} == "alpha" |
| 65 | _libio= libio |
| 66 | _compat= compat |
| 67 | .endif |
| 68 | |
| 69 | .if defined(RELEASEDIR) || \ |
| 70 | !exists(${.CURDIR}/../secure) || defined(NOCRYPT) |
| 71 | _libtelnet= libtelnet |
| 72 | .endif |
| 73 | |
| 74 | .include <bsd.subdir.mk> |