]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
MFtbemd:
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 # To satisfy shared library or ELF linkage when only the libraries being
7 # built are visible:
8 #
9 # csu must be built before all shared libaries for ELF.
10 # libc must be built before all other shared libraries.
11 # libbsm must be built before ibauditd.
12 # libcom_err must be built before libpam.
13 # libcrypt must be built before libpam.
14 # libkvm must be built before libdevstat.
15 # msun must be built before libg++ and libstdc++.
16 # libmd must be built before libatm, libopie, libradius, and libtacplus.
17 # ncurses must be built before libdialog, libedit and libreadline.
18 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19 # libopie must be built before libpam.
20 # libradius must be built before libpam.
21 # librpcsvc must be built before libpam.
22 # libsbuf must be built before libcam.
23 # libtacplus must be built before libpam.
24 # libutil must be built before libpam.
25 # libypclnt must be built before libpam.
26 # libgssapi must be built before librpcsec_gss
27 #
28 # Otherwise, the SUBDIR list should be in alphabetical order.
29 #
30 # Except it appears bind needs to be compiled last
31
32 SUBDIR_ORDERED= ${_csu} \
33         libc \
34         libbsm \
35         libauditd \
36         libcom_err \
37         libcrypt \
38         libelf \
39         libkvm \
40         msun \
41         libmd \
42         ncurses \
43         ${_libnetgraph} \
44         libradius \
45         librpcsvc \
46         libsbuf \
47         libtacplus \
48         libutil \
49         ${_libypclnt}
50
51 SUBDIR= ${SUBDIR_ORDERED} \
52         libalias \
53         libarchive \
54         ${_libatm} \
55         libbegemot \
56         ${_libbluetooth} \
57         ${_libbsnmp} \
58         libbz2 \
59         libcalendar \
60         libcam \
61         libcompat \
62         libdevinfo \
63         libdevstat \
64         libdisk \
65         libdwarf \
66         libedit \
67         ${_libefi} \
68         libexpat \
69         libfetch \
70         libftpio \
71         libgeom \
72         ${_libgpib} \
73         ${_libgssapi} \
74         ${_librpcsec_gss} \
75         libipsec \
76         ${_libipx} \
77         libjail \
78         libkiconv \
79         liblzma \
80         libmagic \
81         libmemstat \
82         ${_libmilter} \
83         ${_libmp} \
84         ${_libncp} \
85         ${_libngatm} \
86         libopie \
87         libpam \
88         libpcap \
89         ${_libpkg} \
90         ${_libpmc} \
91         ${_libproc} \
92         librt \
93         ${_librtld_db} \
94         ${_libsdp} \
95         ${_libsm} \
96         ${_libsmb} \
97         ${_libsmdb} \
98         ${_libsmutil} \
99         libstand \
100         ${_libtelnet} \
101         ${_libthr} \
102         libthread_db \
103         libufs \
104         libugidfw \
105         libulog \
106         ${_libusbhid} \
107         ${_libusb} \
108         ${_libvgl} \
109         libwrap \
110         liby \
111         libz \
112         ${_bind} \
113         ${_clang}
114
115 .if exists(${.CURDIR}/csu/${MACHINE_CPUARCH}-elf)
116 _csu=csu/${MACHINE_CPUARCH}-elf
117 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
118 _csu=csu/${MACHINE_CPUARCH}
119 .else
120 _csu=csu
121 .endif
122
123 # NB: keep these sorted by MK_* knobs
124
125 .if ${MK_ATM} != "no"
126 _libngatm=      libngatm
127 .endif
128
129 .if ${MK_BIND} != "no"
130 _bind=          bind
131 .endif
132
133 .if ${MK_BLUETOOTH} != "no"
134 _libbluetooth=  libbluetooth
135 _libsdp=        libsdp
136 .endif
137
138 .if ${MK_BSNMP} != "no"
139 _libbsnmp=      libbsnmp
140 .endif
141
142 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
143 _clang=         clang
144 .endif
145
146 .if ${MK_GPIB} != "no"
147 _libgpib=       libgpib
148 .endif
149
150 .if ${MK_GSSAPI} != "no"
151 _libgssapi=     libgssapi
152 _librpcsec_gss= librpcsec_gss
153 .endif
154
155 .if ${MK_IPX} != "no"
156 _libipx=        libipx
157 .endif
158
159 .if ${MK_LIBTHR} != "no"
160 _libthr=        libthr
161 .endif
162
163 .if ${MK_NETGRAPH} != "no"
164 _libnetgraph=   libnetgraph
165 .endif
166
167 .if ${MK_NIS} != "no"
168 _libypclnt=     libypclnt
169 .endif
170
171 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
172 .if ${MK_NCP} != "no"
173 _libncp=        libncp
174 .endif
175 _libsmb=        libsmb
176 _libvgl=        libvgl
177 _libproc=       libproc
178 _librtld_db=    librtld_db
179 .endif
180
181 .if ${MACHINE_CPUARCH} == "ia64"
182 _libefi=        libefi
183 _libsmb=        libsmb
184 .endif
185
186 .if ${MACHINE_CPUARCH} == "amd64"
187 .if ${MK_NCP} != "no"
188 _libncp=        libncp
189 .endif
190 .endif
191
192 .if ${MACHINE_CPUARCH} == "powerpc"
193 _libsmb=        libsmb
194 .endif
195
196 .if ${MACHINE_CPUARCH} == "sparc64"
197 _libsmb=        libsmb
198 .endif
199
200 .if ${MK_OPENSSL} != "no"
201 _libmp=         libmp
202 .endif
203
204 .if ${MK_PMC} != "no"
205 _libpmc=        libpmc
206 .endif
207
208 .if ${MK_PKGTOOLS} != "no"
209 _libpkg=        libpkg
210 .endif
211
212 .if ${MK_SENDMAIL} != "no"
213 _libmilter=     libmilter
214 _libsm=         libsm
215 _libsmdb=       libsmdb
216 _libsmutil=     libsmutil
217 .endif
218
219 .if ${MK_TELNET} != "no"
220 _libtelnet=     libtelnet
221 .endif
222
223 .if ${MK_USB} != "no"
224 _libusbhid=     libusbhid
225 _libusb=        libusb
226 .endif
227
228 .include <bsd.subdir.mk>