]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
- fix some style(9) nits with my last commit
[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         ${_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         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         ${_libpmc} \
92         ${_libproc} \
93         libprocstat \
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_ICONV} != "no"
160 _libiconv_modules=      libiconv_modules
161 .endif
162
163 .if ${MK_IPX} != "no"
164 _libipx=        libipx
165 .endif
166
167 .if ${MK_LIBTHR} != "no"
168 _libthr=        libthr
169 .endif
170
171 .if ${MK_NETGRAPH} != "no"
172 _libnetgraph=   libnetgraph
173 .endif
174
175 .if ${MK_NIS} != "no"
176 _libypclnt=     libypclnt
177 .endif
178
179 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
180 .if ${MK_NCP} != "no"
181 _libncp=        libncp
182 .endif
183 _libsmb=        libsmb
184 _libvgl=        libvgl
185 _libproc=       libproc
186 _librtld_db=    librtld_db
187 .endif
188
189 .if ${MACHINE_CPUARCH} == "ia64"
190 _libefi=        libefi
191 _libsmb=        libsmb
192 .endif
193
194 .if ${MACHINE_CPUARCH} == "powerpc"
195 _libsmb=        libsmb
196 .endif
197
198 .if ${MACHINE_CPUARCH} == "sparc64"
199 _libsmb=        libsmb
200 .endif
201
202 .if ${MK_OPENSSL} != "no"
203 _libmp=         libmp
204 .endif
205
206 .if ${MK_PMC} != "no"
207 _libpmc=        libpmc
208 .endif
209
210 .if ${MK_SENDMAIL} != "no"
211 _libmilter=     libmilter
212 _libsm=         libsm
213 _libsmdb=       libsmdb
214 _libsmutil=     libsmutil
215 .endif
216
217 .if ${MK_TELNET} != "no"
218 _libtelnet=     libtelnet
219 .endif
220
221 .if ${MK_USB} != "no"
222 _libusbhid=     libusbhid
223 _libusb=        libusb
224 .endif
225
226 .include <bsd.subdir.mk>