Merge branch 'vendor/FILE'
[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 # ${_libc_r} must be built before libpthread.
8 # libcom_err must be built before libpam.
9 # libcrypt must be built before libpam.
10 # libmd must be built before libarchive, libatm, libopie, libradius, and libtacplus.
11 # libncurses must be built before libdialog and libedit.
12 # libradius must be built before libpam.
13 # libsbuf must be built before libcam.
14 # libtacplus must be built before libpam.
15 # libthread_xu must be built before libpthread.
16 # libutil must be built before libpam.
17 # libpthread must be built before libprop.
18 #
19 # Otherwise, the SUBDIR list should be in alphabetical order.
20
21 SUBDIR_ORDERED= ${_libc_r} \
22         libcom_err \
23         libcrypt \
24         libmd \
25         libncurses \
26         libradius \
27         libsbuf \
28         libtacplus \
29         libthread_xu \
30         libutil \
31         libpthread
32 SUBDIR= ${SUBDIR_ORDERED} \
33         csu \
34         i18n_module \
35         libalias \
36         libarchive \
37         libatm \
38         libbluetooth \
39         libbz2 \
40         libc \
41         libc_rtld \
42         libcalendar \
43         libcam \
44         libcompat \
45         libdevattr \
46         libdevinfo \
47         libdevstat \
48         libdl \
49         libdm \
50         libedit \
51         libevtr \
52         libexpat \
53         libfetch \
54         libfsid \
55         libftpio \
56         libhammer \
57         libipsec \
58         libipx \
59         libkcore \
60         libkiconv \
61         libkinfo \
62         libkvm \
63         libldns \
64         liblzma \
65         libm \
66         libmagic \
67         ${_libmilter} \
68         libncp \
69         ${_libnetgraph} \
70         libopie \
71         libpam \
72         libpcap \
73         libposix1e \
74         libprop \
75         libpuffs \
76         librefuse \
77         librpcsvc \
78         librt \
79         libsctp \
80         libsdp \
81         ${_libsm} \
82         libsmb \
83         ${_libsmdb} \
84         ${_libsmutil} \
85         libstand \
86         libtcplay \
87         libtelnet \
88         libusbhid \
89         libvgl \
90         libwrap \
91         libxpg4 \
92         liby \
93         libypclnt \
94         libz \
95         pam_module
96
97 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
98 SUBDIR+= compat/${MACHINE_ARCH}
99 .endif
100
101 .if !defined(NO_LIBC_R)
102 _libc_r=        libc_r
103 .endif
104
105 .if !defined(NO_SENDMAIL)
106 _libmilter=     libmilter
107 _libsm=         libsm
108 _libsmdb=       libsmdb
109 _libsmutil=     libsmutil
110 .endif
111
112 .if defined(WANT_NETGRAPH7) 
113 _libnetgraph=   libnetgraph7
114 .else
115 _libnetgraph=   libnetgraph
116 .endif
117
118 .include <bsd.subdir.mk>