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