xref: /dragonfly/lib/Makefile (revision 44753b81)
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
4# To satisfy shared library or ELF linkage when only the libraries being
5# built are visible:
6#
7# [Handled by /usr/src/Makefile.inc1, before this Makefile triggers]
8#    libmd must be built before libopie, libradius, libtacplus
9#    libthread_xu|libc_r must be built before libpthread.
10#    libpthread must be built before liblmza, libprop.
11#    libprop must be built before libdevattr
12#    libpam must be built before pam_module
13#
14# libmd must be built before libfetch, libarchive.
15# libcrypt must be built before libfetch and libradius.
16# libz must be built before libarchive, libmagic.
17# libbz2 must be built before libarchive
18# libncurses must be built before libedit.
19# libsbuf must be built before libcam.
20# libpthread must be built before librt, and libusb.
21# liblmza must be built before libarchive.
22# libelf must be built before libexecinfo.
23#
24# Otherwise, the SUBDIR list should be in alphabetical order.
25
26SUBDIR_ORDERED=	${_libc_r} \
27	libcrypt \
28	libz \
29	libmd \
30	libncurses \
31	libradius \
32	libsbuf \
33	libtacplus \
34	libthread_xu \
35	libutil \
36	libpthread \
37	liblzma \
38	libarchive \
39	libfetch \
40	libedit \
41	libcam \
42	librt \
43	libusb \
44	libelf \
45	libexecinfo
46SUBDIR=	${SUBDIR_ORDERED} \
47	csu \
48	i18n_module \
49	libalias \
50	libbluetooth \
51	libbz2 \
52	libc \
53	libc_rtld \
54	libcalendar \
55	libcompat \
56	libdevattr \
57	libdevinfo \
58	libdevstat \
59	libdl \
60	libdm \
61	${_libdmsg} \
62	libevtr \
63	libexpat \
64	libfsid \
65	libftpio \
66	libhammer \
67	libipfw3 \
68	libipsec \
69	libkcore \
70	libkiconv \
71	libkinfo \
72	libkvm \
73	libm \
74	libmagic \
75	libmandoc \
76	${_libnetgraph} \
77	libopie \
78	libpam \
79	libpcap \
80	libposix1e \
81	libprop \
82	libpuffs \
83	librefuse \
84	librpcsvc \
85	libsdp \
86	${_libsm} \
87	libsmb \
88	${_libsmdb} \
89	${_libsmutil} \
90	libstand \
91	libtelnet \
92	libu4bhid \
93	libvgl \
94	libwrap \
95	liby \
96	libypclnt \
97	pam_module
98
99.if make(install)
100SUBDIR:=	libc ${SUBDIR:Nlibc}
101.endif
102
103.if !defined(NO_LIBRESSL)
104.  if defined(WANT_HAMMER2)
105_libdmsg=	libdmsg
106.  endif
107
108SUBDIR+=	libldns \
109		libtcplay
110.endif
111
112.if !defined(NO_LIBC_R)
113_libc_r=	libc_r
114.endif
115
116.if defined(WANT_NETGRAPH7)
117_libnetgraph=	libnetgraph7
118.else
119_libnetgraph=	libnetgraph
120.endif
121
122.include <bsd.subdir.mk>
123