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