xref: /dragonfly/lib/Makefile (revision 6b5c5d0d)
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2# $FreeBSD: src/lib/Makefile,v 1.107.2.16 2002/10/10 19:24:35 kbyanc Exp $
3# $DragonFly: src/lib/Makefile,v 1.33 2008/01/30 12:57:50 hasso Exp $
4
5# To satisfy shared library or ELF linkage when only the libraries being
6# built are visible:
7#
8# csu must be built before all shared libaries for ELF.
9# libcom_err must be built before libkrb and libpam.
10# libcrypt must be built before libkrb, libpam and libskey.
11# libmd must be built before libatm, libopie, libradius, libskey, and
12# libtacplus.
13# libncurses must be built before libdialog, libedit and libreadline.
14# libradius must be built before libpam.
15# libskey must be built before libpam.
16# libtacplus must be built before libpam.
17# libutil must be built before libpam.
18# libsbuf must be built before libcam.
19# libthread_xu must be built before libpthread.
20# ${_libc_r} must be built before libpthread.
21#
22# Otherwise, the SUBDIR list should be in alphabetical order.
23
24SUBDIR=	libarchive libbluetooth libcom_err libcrypt libm libmd \
25	libncurses libradius libskey libtacplus libutil libsbuf \
26	libalias libatm ${_libbind} ${_libbind9} libbz2 libc ${_libc_r} \
27	libcalendar libcam libcompat libdevstat libedit libevent libfetch \
28	libftpio libipsec libipx libisc libkcore libkinfo libkvm libmagic \
29	${_libmilter} ${_libncp} libnetgraph libopie libpam \
30	libpcap libposix1e libsdp libthread_xu libpthread librpcsvc ${_libsm} \
31	${_libsmb} ${_libsmdb} ${_libsmutil} libstand libtelnet libusbhid \
32	${_libvgl} libwrap libxpg4 liby libz i18n_module pam_module \
33	libc_rtld libsctp
34
35.if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
36SUBDIR+= compat/${MACHINE_ARCH}
37.endif
38
39.if !defined(NO_LIBC_R)
40_libc_r=	libc_r
41.endif
42
43.if !defined(NO_BIND)
44_libbind=	libbind
45_libbind9=	libbind9
46.endif
47
48.if !defined(NO_SENDMAIL)
49_libmilter=	libmilter
50_libsm=		libsm
51_libsmdb=	libsmdb
52_libsmutil=	libsmutil
53.endif
54
55.if ${MACHINE_ARCH} == "i386"
56_libncp=	libncp
57_libsmb=	libsmb
58_libvgl=	libvgl
59.endif
60
61.include <bsd.subdir.mk>
62