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