sail.6: mdoc conversion
[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
4 # To satisfy shared library or ELF linkage when only the libraries being
5 # built are visible:
6 #
7 # ${_libc_r} must be built before libpthread.
8 # libcom_err must be built before libpam.
9 # libcrypt must be built before libpam.
10 # libmd must be built before libarchive, libatm, libopie, libradius, and libtacplus.
11 # libncurses must be built before libdialog and libedit.
12 # libradius must be built before libpam.
13 # libsbuf must be built before libcam.
14 # libtacplus must be built before libpam.
15 # libthread_xu must be built before libpthread.
16 # libutil must be built before libpam.
17 # libpthread must be built before libprop.
18 #
19 # Otherwise, the SUBDIR list should be in alphabetical order.
20
21 SUBDIR_ORDERED= ${_libc_r} \
22         libcom_err \
23         libcrypt \
24         libmd \
25         libncurses \
26         libradius \
27         libsbuf \
28         libtacplus \
29         libthread_xu \
30         libutil \
31         libpthread
32 SUBDIR= ${SUBDIR_ORDERED} \
33         csu \
34         i18n_module \
35         libalias \
36         libarchive \
37         libatm \
38         libbluetooth \
39         libbz2 \
40         libc \
41         libc_rtld \
42         libcalendar \
43         libcam \
44         libcompat \
45         libdevattr \
46         libdevinfo \
47         libdevstat \
48         libdl \
49         libdm \
50         libdmsg \
51         libedit \
52         libevtr \
53         libexpat \
54         libfetch \
55         libfsid \
56         libftpio \
57         libhammer \
58         libipsec \
59         libipx \
60         libkcore \
61         libkiconv \
62         libkinfo \
63         libkvm \
64         libldns \
65         liblzma \
66         libm \
67         libmagic \
68         libmandoc \
69         ${_libmilter} \
70         libncp \
71         ${_libnetgraph} \
72         libopie \
73         libpam \
74         libpcap \
75         libposix1e \
76         libprop \
77         libpuffs \
78         librefuse \
79         librpcsvc \
80         librt \
81         libsctp \
82         libsdp \
83         ${_libsm} \
84         libsmb \
85         ${_libsmdb} \
86         ${_libsmutil} \
87         libstand \
88         libtcplay \
89         libtelnet \
90         ${_libusb} \
91         ${_libusbhid} \
92         libvgl \
93         libwrap \
94         libxpg4 \
95         liby \
96         libypclnt \
97         libz \
98         pam_module
99
100 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
101 SUBDIR+= compat/${MACHINE_ARCH}
102 .endif
103
104 .if !defined(NO_LIBC_R)
105 _libc_r=        libc_r
106 .endif
107
108 .if !defined(NO_SENDMAIL)
109 _libmilter=     libmilter
110 _libsm=         libsm
111 _libsmdb=       libsmdb
112 _libsmutil=     libsmutil
113 .endif
114
115 .if defined(WANT_NETGRAPH7) 
116 _libnetgraph=   libnetgraph7
117 .else
118 _libnetgraph=   libnetgraph
119 .endif
120
121 .if defined(WANT_USB4BSD)
122 _libusb=        libusb
123 _libusbhid=     libu4bhid
124 .else
125 _libusbhid=     libusbhid
126 .endif
127
128 .include <bsd.subdir.mk>