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