Makefile revision 244557
1177387Sgnn#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2177387Sgnn# $FreeBSD: head/lib/Makefile 244557 2012-12-21 20:37:38Z brooks $
3177387Sgnn
4177387Sgnn.include <bsd.own.mk>
5177387Sgnn
6177387Sgnn# To satisfy shared library or ELF linkage when only the libraries being
7177387Sgnn# built are visible:
8177387Sgnn#
9177387Sgnn# csu must be built before all shared libaries for ELF.
10177387Sgnn# libc must be built before all other shared libraries.
11177387Sgnn# libbsm must be built before libauditd.
12177387Sgnn# libcom_err must be built before libpam.
13177387Sgnn# libcrypt must be built before libpam.
14177387Sgnn# libkvm must be built before libdevstat.
15177387Sgnn# msun must be built before libg++ and libstdc++.
16177387Sgnn# libmd must be built before libatm, libopie, libradius, and libtacplus.
17177387Sgnn# ncurses must be built before libdialog, libedit and libreadline.
18177387Sgnn# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19177387Sgnn# libopie must be built before libpam.
20177387Sgnn# libradius must be built before libpam.
21177387Sgnn# librpcsvc must be built before libpam.
22177387Sgnn# libsbuf must be built before libcam.
23177387Sgnn# libtacplus must be built before libpam.
24177387Sgnn# libutil must be built before libpam.
25177387Sgnn# libypclnt must be built before libpam.
26177387Sgnn# libgssapi must be built before librpcsec_gss
27177387Sgnn#
28177387Sgnn# Otherwise, the SUBDIR list should be in alphabetical order.
29177387Sgnn#
30177387Sgnn# Except it appears bind needs to be compiled last
31177872Sgnn
32177387SgnnSUBDIR_ORDERED=	${_csu} \
33177387Sgnn	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	libmandoc \
89	libmemstat \
90	${_libmilter} \
91	${_libmp} \
92	${_libnandfs} \
93	libnetbsd \
94	${_libngatm} \
95	libopie \
96	libpam \
97	libpcap \
98	${_libpmc} \
99	${_libproc} \
100	libprocstat \
101	librt \
102	${_librtld_db} \
103	${_libsdp} \
104	${_libsm} \
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	${_atf} \
123	${_bind} \
124	${_clang}
125
126.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
127_csu=csu/${MACHINE_ARCH}-elf
128.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
129_csu=csu/${MACHINE_ARCH}
130.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
131_csu=csu/${MACHINE_CPUARCH}
132.else
133_csu=csu
134.endif
135
136# NB: keep these sorted by MK_* knobs
137
138.if ${MK_ATF} != "no"
139_atf=		atf
140.endif
141
142.if ${MK_ATM} != "no"
143_libngatm=	libngatm
144.endif
145
146.if ${MK_BIND} != "no"
147_bind=		bind
148.endif
149
150.if ${MK_BLUETOOTH} != "no"
151_libbluetooth=	libbluetooth
152_libsdp=	libsdp
153.endif
154
155.if ${MK_BSNMP} != "no"
156_libbsnmp=	libbsnmp
157.endif
158
159.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
160_clang=		clang
161.endif
162
163.if ${MK_GPIB} != "no"
164_libgpib=	libgpib
165.endif
166
167.if ${MK_GSSAPI} != "no"
168_libgssapi=	libgssapi
169_librpcsec_gss=	librpcsec_gss
170.endif
171
172.if ${MK_ICONV} != "no"
173_libiconv_modules=	libiconv_modules
174.endif
175
176.if ${MK_IPX} != "no"
177_libipx=	libipx
178.endif
179
180.if ${MK_LIBTHR} != "no"
181_libthr=	libthr
182.endif
183
184.if ${MK_NAND} != "no"
185_libnandfs=	libnandfs
186.endif
187
188.if ${MK_NETGRAPH} != "no"
189_libnetgraph=	libnetgraph
190.endif
191
192.if ${MK_NIS} != "no"
193_libypclnt=	libypclnt
194.endif
195
196.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
197_libvgl=	libvgl
198_libproc=	libproc
199_librtld_db=	librtld_db
200.endif
201
202.if ${MACHINE_CPUARCH} == "ia64"
203_libefi=	libefi
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_libproc=	libproc
213_librtld_db=	librtld_db
214.endif
215
216.if ${MK_OPENSSL} != "no"
217_libmp=		libmp
218.endif
219
220.if ${MK_LIBCPLUSPLUS} != "no"
221_libcxxrt=	libcxxrt
222_libcplusplus=	libc++
223.endif
224
225.if ${MK_PMC} != "no"
226_libpmc=	libpmc
227.endif
228
229.if ${MK_SENDMAIL} != "no"
230_libmilter=	libmilter
231_libsm=		libsm
232_libsmdb=	libsmdb
233_libsmutil=	libsmutil
234.endif
235
236.if ${MK_TELNET} != "no"
237_libtelnet=	libtelnet
238.endif
239
240.if ${MK_USB} != "no"
241_libusbhid=	libusbhid
242_libusb=	libusb
243.endif
244
245.include <bsd.subdir.mk>
246