]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/blob - lib/Makefile
Fix Denial of Service vulnerability in named(8). [13:07]
[FreeBSD/releng/9.1.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         libcompiler_rt \
38         libcrypt \
39         libelf \
40         ${_libiconv_modules} \
41         libkvm \
42         msun \
43         libmd \
44         ncurses \
45         ${_libnetgraph} \
46         libradius \
47         librpcsvc \
48         libsbuf \
49         libtacplus \
50         libutil \
51         ${_libypclnt} \
52         ${_libcxxrt} \
53         ${_libcplusplus}
54
55 SUBDIR= ${SUBDIR_ORDERED} \
56         libalias \
57         libarchive \
58         ${_libatm} \
59         libbegemot \
60         libblocksruntime \
61         ${_libbluetooth} \
62         ${_libbsnmp} \
63         libbz2 \
64         libcalendar \
65         libcam \
66         libcompat \
67         libdevinfo \
68         libdevstat \
69         libdisk \
70         libdwarf \
71         libedit \
72         ${_libefi} \
73         libexpat \
74         libfetch \
75         libftpio \
76         libgeom \
77         ${_libgpib} \
78         ${_libgssapi} \
79         ${_librpcsec_gss} \
80         libipsec \
81         ${_libipx} \
82         libjail \
83         libkiconv \
84         liblzma \
85         libmagic \
86         libmemstat \
87         ${_libmilter} \
88         ${_libmp} \
89         ${_libncp} \
90         ${_libngatm} \
91         libopie \
92         libpam \
93         libpcap \
94         ${_libpmc} \
95         ${_libproc} \
96         libprocstat \
97         librt \
98         ${_librtld_db} \
99         ${_libsdp} \
100         ${_libsm} \
101         ${_libsmb} \
102         ${_libsmdb} \
103         ${_libsmutil} \
104         libstand \
105         libstdbuf \
106         ${_libtelnet} \
107         ${_libthr} \
108         libthread_db \
109         libufs \
110         libugidfw \
111         libulog \
112         ${_libusbhid} \
113         ${_libusb} \
114         ${_libvgl} \
115         libwrap \
116         liby \
117         libz \
118         ${_bind} \
119         ${_clang}
120
121 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
122 _csu=csu/${MACHINE_ARCH}-elf
123 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
124 _csu=csu/${MACHINE_ARCH}
125 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
126 _csu=csu/${MACHINE_CPUARCH}
127 .else
128 _csu=csu
129 .endif
130
131 # NB: keep these sorted by MK_* knobs
132
133 .if ${MK_ATM} != "no"
134 _libngatm=      libngatm
135 .endif
136
137 .if ${MK_BIND} != "no"
138 _bind=          bind
139 .endif
140
141 .if ${MK_BLUETOOTH} != "no"
142 _libbluetooth=  libbluetooth
143 _libsdp=        libsdp
144 .endif
145
146 .if ${MK_BSNMP} != "no"
147 _libbsnmp=      libbsnmp
148 .endif
149
150 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
151 _clang=         clang
152 .endif
153
154 .if ${MK_GPIB} != "no"
155 _libgpib=       libgpib
156 .endif
157
158 .if ${MK_GSSAPI} != "no"
159 _libgssapi=     libgssapi
160 _librpcsec_gss= librpcsec_gss
161 .endif
162
163 .if ${MK_ICONV} != "no"
164 _libiconv_modules=      libiconv_modules
165 .endif
166
167 .if ${MK_IPX} != "no"
168 _libipx=        libipx
169 .endif
170
171 .if ${MK_LIBTHR} != "no"
172 _libthr=        libthr
173 .endif
174
175 .if ${MK_NETGRAPH} != "no"
176 _libnetgraph=   libnetgraph
177 .endif
178
179 .if ${MK_NIS} != "no"
180 _libypclnt=     libypclnt
181 .endif
182
183 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
184 .if ${MK_NCP} != "no"
185 _libncp=        libncp
186 .endif
187 _libsmb=        libsmb
188 _libvgl=        libvgl
189 _libproc=       libproc
190 _librtld_db=    librtld_db
191 .endif
192
193 .if ${MACHINE_CPUARCH} == "ia64"
194 _libefi=        libefi
195 _libsmb=        libsmb
196 .endif
197
198 .if ${MACHINE_CPUARCH} == "amd64"
199 .if ${MK_NCP} != "no"
200 _libncp=        libncp
201 .endif
202 .endif
203
204 .if ${MACHINE_CPUARCH} == "powerpc"
205 _libsmb=        libsmb
206 .endif
207
208 .if ${MACHINE_CPUARCH} == "sparc64"
209 _libsmb=        libsmb
210 .endif
211
212 .if ${MK_OPENSSL} != "no"
213 _libmp=         libmp
214 .endif
215
216 .if ${MK_LIBCPLUSPLUS} != "no"
217 _libcxxrt=      libcxxrt
218 _libcplusplus=  libc++
219 .endif
220
221 .if ${MK_PMC} != "no"
222 _libpmc=        libpmc
223 .endif
224
225 .if ${MK_SENDMAIL} != "no"
226 _libmilter=     libmilter
227 _libsm=         libsm
228 _libsmdb=       libsmdb
229 _libsmutil=     libsmutil
230 .endif
231
232 .if ${MK_TELNET} != "no"
233 _libtelnet=     libtelnet
234 .endif
235
236 .if ${MK_USB} != "no"
237 _libusbhid=     libusbhid
238 _libusb=        libusb
239 .endif
240
241 .include <bsd.subdir.mk>