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