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