Merge branch 'vendor/OPENSSL'
[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 # $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
22 SUBDIR_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
33 SUBDIR= ${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         libdl \
50         libdm \
51         libedit \
52         libevtr \
53         libexpat \
54         libfetch \
55         libfsid \
56         libftpio \
57         libhammer \
58         libipsec \
59         libipx \
60         libkcore \
61         libkiconv \
62         libkinfo \
63         libkvm \
64         libldns \
65         liblzma \
66         libm \
67         libmagic \
68         ${_libmilter} \
69         libncp \
70         ${_libnetgraph} \
71         libopie \
72         libpam \
73         libpcap \
74         libposix1e \
75         libprop \
76         librpcsvc \
77         librt \
78         libsctp \
79         libsdp \
80         ${_libsm} \
81         libsmb \
82         ${_libsmdb} \
83         ${_libsmutil} \
84         libstand \
85         libtcplay \
86         libtelnet \
87         libusbhid \
88         libvgl \
89         libwrap \
90         libxpg4 \
91         liby \
92         libypclnt \
93         libz \
94         pam_module
95
96 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
97 SUBDIR+= compat/${MACHINE_ARCH}
98 .endif
99
100 .if !defined(NO_LIBC_R)
101 _libc_r=        libc_r
102 .endif
103
104 .if !defined(NO_SENDMAIL)
105 _libmilter=     libmilter
106 _libsm=         libsm
107 _libsmdb=       libsmdb
108 _libsmutil=     libsmutil
109 .endif
110
111 .if defined(WANT_NETGRAPH7) 
112 _libnetgraph=   libnetgraph7
113 .else
114 _libnetgraph=   libnetgraph
115 .endif
116
117 .include <bsd.subdir.mk>