Merge from vendor branch CVS:
[dragonfly.git] / lib / Makefile
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.15 2005/02/09 21:01:50 drhodus 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 libarchive libcom_err libcrypt msun libmd \
24         libncurses libradius libskey libtacplus libutil libsbuf ${_compat} \
25         libalias libatm ${_libbind} libbz2 libc ${_libc_r} libcalendar \
26         libcam libcompat libdevstat libdisk libedit libfetch libform libftpio \
27         ${_libio} libipsec libipx libisc libkcore libkinfo libkvm libmagic \
28         libmenu ${_libmilter} ${_libncp} libnetgraph libopie libpam libpanel \
29         libpcap libposix1e librpcsvc ${_libsm} ${_libsmb} ${_libsmdb} \
30         ${_libsmutil} libstand libtelnet libthread_xu libusbhid ${_libvgl} \
31         libwrap libxpg4 liby libz
32
33 _csu=csu/${MACHINE_ARCH}
34
35 .if ${MACHINE_ARCH} == "i386"
36 .if !defined(NOLIBC_R)
37 _libc_r=        libc_r
38 .endif
39 .endif
40
41 .if !defined(NO_BIND)
42 _libbind=       libbind
43 .endif
44
45 .if !defined(NO_SENDMAIL)
46 _libmilter=     libmilter
47 _libsm=         libsm
48 _libsmdb=       libsmdb
49 _libsmutil=     libsmutil
50 .endif
51
52 .if ${MACHINE_ARCH} == "i386"
53 _compat=        compat
54 _libncp=        libncp
55 _libsmb=        libsmb
56 _libvgl=        libvgl
57 .endif
58
59 .if ${MACHINE_ARCH} == "alpha"
60 _libio=         libio
61 _compat=        compat
62 .endif
63
64 .include <bsd.subdir.mk>