xref: /dragonfly/lib/Makefile (revision b8c93cad)
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, libarchive, 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
28.if !defined(NO_CRYPT)
29SUBDIR_ORDERED+=librecrypto libressl libssh
30.endif
31
32SUBDIR_ORDERED+= \
33	libcrypt \
34	libarchive \
35	libz \
36	libmd \
37	libncurses \
38	libradius \
39	libsbuf \
40	libtacplus \
41	libthread_xu \
42	libutil \
43	libpthread \
44	liblzma \
45	libfetch \
46	libedit \
47	libcam \
48	librt \
49	libusb \
50	libelf \
51	libexecinfo
52
53SUBDIR=	${SUBDIR_ORDERED} \
54	libcipher \
55	csu \
56	i18n_module \
57	libalias \
58	libbluetooth \
59	libbz2 \
60	libc \
61	libc_rtld \
62	libcalendar \
63	libcompat \
64	libdevattr \
65	libdevinfo \
66	libdevstat \
67	libdl \
68	libdm \
69	${_libdmsg} \
70	libefivar \
71	libevtr \
72	libexpat \
73	libfsid \
74	libftpio \
75	libhammer \
76	libipfw3 \
77	libipsec \
78	libkcore \
79	libkiconv \
80	libkinfo \
81	libkvm \
82	libm \
83	libmagic \
84	libmandoc \
85	${_libnetgraph} \
86	libopie \
87	libpam \
88	libpcap \
89	libposix1e \
90	libprop \
91	libpuffs \
92	librefuse \
93	librpcsvc \
94	libsdp \
95	${_libsm} \
96	libsmb \
97	${_libsmdb} \
98	${_libsmutil} \
99	libstand \
100	libtelnet \
101	libu4bhid \
102	libvgl \
103	libwrap \
104	liby \
105	libypclnt \
106	pam_module
107
108.if make(install)
109SUBDIR:=	libc ${SUBDIR:Nlibc}
110.endif
111
112.if !defined(NO_CRYPT)
113.  if defined(WANT_HAMMER2)
114_libdmsg=	libdmsg
115.  endif
116
117SUBDIR+=	libldns \
118		libtcplay
119.endif
120
121.if !defined(NO_LIBC_R)
122_libc_r=	libc_r
123.endif
124
125.if defined(WANT_NETGRAPH7)
126_libnetgraph=	libnetgraph7
127.else
128_libnetgraph=	libnetgraph
129.endif
130
131.include <bsd.subdir.mk>
132