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