Makefile revision 210682
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 210682 2010-07-31 14:52:29Z rpaulo $
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
32SUBDIR_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
51SUBDIR=	${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_libproc=	libproc
177.endif
178
179.if ${MACHINE_ARCH} == "ia64"
180_libefi=	libefi
181_libsmb=	libsmb
182.endif
183
184.if ${MACHINE_ARCH} == "amd64"
185.if ${MK_NCP} != "no"
186_libncp=	libncp
187.endif
188_libsmb=	libsmb
189_libvgl=	libvgl
190_libproc=	libproc
191.endif
192
193.if ${MACHINE_CPUARCH} == "powerpc"
194_libsmb=	libsmb
195.endif
196
197.if ${MACHINE_ARCH} == "sparc64"
198_libsmb=	libsmb
199.endif
200
201.if ${MK_OPENSSL} != "no"
202_libmp=		libmp
203.endif
204
205.if ${MK_PMC} != "no"
206_libpmc=	libpmc
207.endif
208
209.if ${MK_PKGTOOLS} != "no"
210_libpkg=	libpkg
211.endif
212
213.if ${MK_SENDMAIL} != "no"
214_libmilter=	libmilter
215_libsm=		libsm
216_libsmdb=	libsmdb
217_libsmutil=	libsmutil
218.endif
219
220.if ${MK_TELNET} != "no"
221_libtelnet=	libtelnet
222.endif
223
224.if ${MK_USB} != "no"
225_libusbhid=	libusbhid
226_libusb=	libusb
227.endif
228
229.include <bsd.subdir.mk>
230