build - Remove openssl from base (is now permanently replaced by ressl)
[dragonfly.git] / lib / Makefile
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
26 SUBDIR_ORDERED= ${_libc_r}
27
28 .if !defined(NO_CRYPT)
29 SUBDIR_ORDERED+=librecrypto libressl libssh
30 .endif
31
32 SUBDIR_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
53 SUBDIR= ${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         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         libmandoc \
84         ${_libnetgraph} \
85         libopie \
86         libpam \
87         libpcap \
88         libposix1e \
89         libprop \
90         libpuffs \
91         librefuse \
92         librpcsvc \
93         libsdp \
94         ${_libsm} \
95         libsmb \
96         ${_libsmdb} \
97         ${_libsmutil} \
98         libstand \
99         libtelnet \
100         libu4bhid \
101         libvgl \
102         libwrap \
103         liby \
104         libypclnt \
105         pam_module
106
107 .if make(install)
108 SUBDIR:=        libc ${SUBDIR:Nlibc}
109 .endif
110
111 .if !defined(NO_CRYPT)
112 .  if defined(WANT_HAMMER2)
113 _libdmsg=       libdmsg
114 .  endif
115
116 SUBDIR+=        libldns \
117                 libtcplay
118 .endif
119
120 .if !defined(NO_LIBC_R)
121 _libc_r=        libc_r
122 .endif
123
124 .if defined(WANT_NETGRAPH7) 
125 _libnetgraph=   libnetgraph7
126 .else
127 _libnetgraph=   libnetgraph
128 .endif
129
130 .include <bsd.subdir.mk>