xref: /dragonfly/lib/Makefile (revision fcf53d9b)
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.35 2008/09/30 12:20:29 hasso Exp $
4
5# To satisfy shared library or ELF linkage when only the libraries being
6# built are visible:
7#
8# ${_libc_r} must be built before libpthread.
9# libcom_err must be built before libpam.
10# libcrypt must be built before libpam.
11# libmd must be built before libarchive, libatm, libopie, libradius, and libtacplus.
12# libncurses must be built before libdialog and libedit.
13# libradius must be built before libpam.
14# libsbuf must be built before libcam.
15# libtacplus must be built before libpam.
16# libthread_xu must be built before libpthread.
17# libutil must be built before libpam.
18# libpthread must be built before libprop.
19#
20# Otherwise, the SUBDIR list should be in alphabetical order.
21
22SUBDIR_ORDERED=	${_libc_r} \
23	libcom_err \
24	libcrypt \
25	libmd \
26	libncurses \
27	libradius \
28	libsbuf \
29	libtacplus \
30	libthread_xu \
31	libutil \
32	libpthread
33SUBDIR=	${SUBDIR_ORDERED} \
34	csu \
35	i18n_module \
36	libalias \
37	libarchive \
38	libatm \
39	libbluetooth \
40	libbz2 \
41	libc \
42	libc_rtld \
43	libcalendar \
44	libcam \
45	libcompat \
46	libdevattr \
47	libdevinfo \
48	libdevstat \
49	libedit \
50	libevtr \
51	libexpat \
52	libfetch \
53	libfsid \
54	libftpio \
55	libipsec \
56	libipx \
57	libkcore \
58	libkiconv \
59	libkinfo \
60	libkvm \
61	libldns \
62	liblzma \
63	libm \
64	libmagic \
65	${_libmilter} \
66	libncp \
67	libnetgraph \
68	libopie \
69	libpam \
70	libpcap \
71	libposix1e \
72	libprop \
73	librpcsvc \
74	librt \
75	libsctp \
76	libsdp \
77	${_libsm} \
78	libsmb \
79	${_libsmdb} \
80	${_libsmutil} \
81	libstand \
82	libtelnet \
83	libusbhid \
84	libvgl \
85	libwrap \
86	libxpg4 \
87	liby \
88	libypclnt \
89	libz \
90	pam_module
91
92.if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
93SUBDIR+= compat/${MACHINE_ARCH}
94.endif
95
96.if !defined(NO_LIBC_R)
97_libc_r=	libc_r
98.endif
99
100.if !defined(NO_SENDMAIL)
101_libmilter=	libmilter
102_libsm=		libsm
103_libsmdb=	libsmdb
104_libsmutil=	libsmutil
105.endif
106
107.include <bsd.subdir.mk>
108