]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Build libsmb should be on powerpc64 as well.
[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         ${_libsdp} \
94         ${_libsm} \
95         ${_libsmb} \
96         ${_libsmdb} \
97         ${_libsmutil} \
98         libstand \
99         ${_libtelnet} \
100         ${_libthr} \
101         libthread_db \
102         libufs \
103         libugidfw \
104         libulog \
105         ${_libusbhid} \
106         ${_libusb} \
107         ${_libvgl} \
108         libwrap \
109         liby \
110         libz \
111         ${_bind} \
112         ${_clang}
113
114 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
115 _csu=csu/${MACHINE_ARCH}-elf
116 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
117 _csu=csu/${MACHINE_ARCH}
118 .else
119 _csu=csu
120 .endif
121
122 # NB: keep these sorted by MK_* knobs
123
124 .if ${MK_ATM} != "no"
125 _libngatm=      libngatm
126 .endif
127
128 .if ${MK_BIND} != "no"
129 _bind=          bind
130 .endif
131
132 .if ${MK_BLUETOOTH} != "no"
133 _libbluetooth=  libbluetooth
134 _libsdp=        libsdp
135 .endif
136
137 .if ${MK_BSNMP} != "no"
138 _libbsnmp=      libbsnmp
139 .endif
140
141 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
142 _clang=         clang
143 .endif
144
145 .if ${MK_GPIB} != "no"
146 _libgpib=       libgpib
147 .endif
148
149 .if ${MK_GSSAPI} != "no"
150 _libgssapi=     libgssapi
151 _librpcsec_gss= librpcsec_gss
152 .endif
153
154 .if ${MK_IPX} != "no"
155 _libipx=        libipx
156 .endif
157
158 .if ${MK_LIBTHR} != "no"
159 _libthr=        libthr
160 .endif
161
162 .if ${MK_NETGRAPH} != "no"
163 _libnetgraph=   libnetgraph
164 .endif
165
166 .if ${MK_NIS} != "no"
167 _libypclnt=     libypclnt
168 .endif
169
170 .if ${MACHINE_ARCH} == "i386"
171 .if ${MK_NCP} != "no"
172 _libncp=        libncp
173 .endif
174 _libsmb=        libsmb
175 _libvgl=        libvgl
176 .endif
177
178 .if ${MACHINE_ARCH} == "ia64"
179 _libefi=        libefi
180 _libsmb=        libsmb
181 .endif
182
183 .if ${MACHINE_ARCH} == "amd64"
184 .if ${MK_NCP} != "no"
185 _libncp=        libncp
186 .endif
187 _libsmb=        libsmb
188 _libvgl=        libvgl
189 .endif
190
191 .if ${MACHINE_CPUARCH} == "powerpc"
192 _libsmb=        libsmb
193 .endif
194
195 .if ${MACHINE_ARCH} == "sparc64"
196 _libsmb=        libsmb
197 .endif
198
199 .if ${MK_OPENSSL} != "no"
200 _libmp=         libmp
201 .endif
202
203 .if ${MK_PMC} != "no"
204 _libpmc=        libpmc
205 .endif
206
207 .if ${MK_PKGTOOLS} != "no"
208 _libpkg=        libpkg
209 .endif
210
211 .if ${MK_SENDMAIL} != "no"
212 _libmilter=     libmilter
213 _libsm=         libsm
214 _libsmdb=       libsmdb
215 _libsmutil=     libsmutil
216 .endif
217
218 .if ${MK_TELNET} != "no"
219 _libtelnet=     libtelnet
220 .endif
221
222 .if ${MK_USB} != "no"
223 _libusbhid=     libusbhid
224 _libusb=        libusb
225 .endif
226
227 .include <bsd.subdir.mk>