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