Makefile revision 241774
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 241774 2012-10-20 10:06:38Z uqs $
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	libmandoc \
89	libmemstat \
90	${_libmilter} \
91	${_libmp} \
92	${_libnandfs} \
93	${_libngatm} \
94	libopie \
95	libpam \
96	libpcap \
97	${_libpmc} \
98	${_libproc} \
99	libprocstat \
100	librt \
101	${_librtld_db} \
102	${_libsdp} \
103	${_libsm} \
104	${_libsmdb} \
105	${_libsmutil} \
106	libstand \
107	libstdbuf \
108	libstdthreads \
109	${_libtelnet} \
110	${_libthr} \
111	libthread_db \
112	libufs \
113	libugidfw \
114	libulog \
115	${_libusbhid} \
116	${_libusb} \
117	${_libvgl} \
118	libwrap \
119	liby \
120	libz \
121	${_bind} \
122	${_clang}
123
124.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
125_csu=csu/${MACHINE_ARCH}-elf
126.elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
127_csu=csu/${MACHINE_ARCH}
128.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
129_csu=csu/${MACHINE_CPUARCH}
130.else
131_csu=csu
132.endif
133
134# NB: keep these sorted by MK_* knobs
135
136.if ${MK_ATM} != "no"
137_libngatm=	libngatm
138.endif
139
140.if ${MK_BIND} != "no"
141_bind=		bind
142.endif
143
144.if ${MK_BLUETOOTH} != "no"
145_libbluetooth=	libbluetooth
146_libsdp=	libsdp
147.endif
148
149.if ${MK_BSNMP} != "no"
150_libbsnmp=	libbsnmp
151.endif
152
153.if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
154_clang=		clang
155.endif
156
157.if ${MK_GPIB} != "no"
158_libgpib=	libgpib
159.endif
160
161.if ${MK_GSSAPI} != "no"
162_libgssapi=	libgssapi
163_librpcsec_gss=	librpcsec_gss
164.endif
165
166.if ${MK_ICONV} != "no"
167_libiconv_modules=	libiconv_modules
168.endif
169
170.if ${MK_IPX} != "no"
171_libipx=	libipx
172.endif
173
174.if ${MK_LIBTHR} != "no"
175_libthr=	libthr
176.endif
177
178.if ${MK_NAND} != "no"
179_libnandfs=	libnandfs
180.endif
181
182.if ${MK_NETGRAPH} != "no"
183_libnetgraph=	libnetgraph
184.endif
185
186.if ${MK_NIS} != "no"
187_libypclnt=	libypclnt
188.endif
189
190.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
191_libvgl=	libvgl
192_libproc=	libproc
193_librtld_db=	librtld_db
194.endif
195
196.if ${MACHINE_CPUARCH} == "ia64"
197_libefi=	libefi
198.endif
199
200.if ${MACHINE_CPUARCH} == "mips"
201_libproc=	libproc
202_librtld_db=	librtld_db
203.endif
204
205.if ${MK_OPENSSL} != "no"
206_libmp=		libmp
207.endif
208
209.if ${MK_LIBCPLUSPLUS} != "no"
210_libcxxrt=	libcxxrt
211_libcplusplus=	libc++
212.endif
213
214.if ${MK_PMC} != "no"
215_libpmc=	libpmc
216.endif
217
218.if ${MK_SENDMAIL} != "no"
219_libmilter=	libmilter
220_libsm=		libsm
221_libsmdb=	libsmdb
222_libsmutil=	libsmutil
223.endif
224
225.if ${MK_TELNET} != "no"
226_libtelnet=	libtelnet
227.endif
228
229.if ${MK_USB} != "no"
230_libusbhid=	libusbhid
231_libusb=	libusb
232.endif
233
234.include <bsd.subdir.mk>
235