Makefile revision 181344
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/Makefile 181344 2008-08-06 14:02:05Z dfr $
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# libcom_err must be built before libkrb5 and libpam.
12# libcrypt must be built before libkrb5 and libpam.
13# libkvm must be built before libdevstat.
14# msun must be built before libg++ and libstdc++.
15# libmd must be built before libatm, libopie, libradius, and libtacplus.
16# ncurses must be built before libdialog, libedit and libreadline.
17# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
18# libopie must be built before libpam.
19# libradius must be built before libpam.
20# librpcsvc must be built before libpam.
21# libsbuf must be built before libcam.
22# libtacplus must be built before libpam.
23# libutil must be built before libpam.
24# libypclnt must be built before libpam.
25# libgssapi must be built before librpcsec_gss
26#
27# Otherwise, the SUBDIR list should be in alphabetical order.
28
29SUBDIR=	${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
30	ncurses libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
31	${_libypclnt} libalias libarchive ${_libatm} \
32	libbegemot ${_libbluetooth} libbsnmp libbz2 \
33	libcalendar libcam libcompat libdevinfo libdevstat libdisk \
34	libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
35	${_libgssapi} ${_librpcsec_gss} libipsec \
36	${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
37	${_libncp} ${_libngatm} libopie libpam libpcap \
38	libpmc libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
39	${_libsmdb} \
40	${_libsmutil} libstand libtelnet ${_libthr} libthread_db libufs \
41	libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
42
43.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
44_csu=csu/${MACHINE_ARCH}-elf
45.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
46_csu=csu/${MACHINE_ARCH}
47.else
48_csu=csu
49.endif
50
51.if ${MK_ATM} != "no"
52_libngatm=	libngatm
53.endif
54
55.if ${MK_BIND} != "no"
56_bind=		bind
57.endif
58
59.if ${MK_BLUETOOTH} != "no"
60_libbluetooth=	libbluetooth
61_libsdp=	libsdp
62.endif
63
64.if ${MK_GSSAPI} != "no"
65_libgssapi=	libgssapi
66_librpcsec_gss=	librpcsec_gss
67.endif
68
69.if ${MK_IPX} != "no"
70_libipx=	libipx
71.endif
72
73.if ${MACHINE_ARCH} == "i386"
74.if ${MK_NCP} != "no"
75_libncp=	libncp
76.endif
77_libsmb=	libsmb
78_libvgl=	libvgl
79.endif
80
81.if ${MACHINE_ARCH} == "ia64"
82_libsmb=	libsmb
83.endif
84
85.if ${MK_SENDMAIL} != "no"
86_libmilter=	libmilter
87_libsm=		libsm
88_libsmdb=	libsmdb
89_libsmutil=	libsmutil
90.endif
91
92.if ${MK_OPENSSL} != "no"
93_libmp=		libmp
94.endif
95
96.if ${MACHINE_ARCH} == "amd64"
97.if ${MK_NCP} != "no"
98_libncp=	libncp
99.endif
100_libsmb=	libsmb
101.endif
102
103.if ${MACHINE_ARCH} == "powerpc"
104_libsmb=	libsmb
105.endif
106
107.if ${MK_LIBTHR} != "no"
108_libthr=	libthr
109.endif
110
111.if ${MK_USB} != "no"
112_libusbhid=	libusbhid
113.endif
114
115.if ${MK_NIS} != "no"
116_libypclnt=	libypclnt
117.endif
118
119.if ${MK_GPIB} != "no"
120_libgpib=	libgpib
121.endif
122
123.include <bsd.subdir.mk>
124