sh: Add a test for a fairly obscure case with aliases.
[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         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         librpcsvc \
76         librt \
77         libsctp \
78         libsdp \
79         ${_libsm} \
80         libsmb \
81         ${_libsmdb} \
82         ${_libsmutil} \
83         libstand \
84         libtcplay \
85         libtelnet \
86         libusbhid \
87         libvgl \
88         libwrap \
89         libxpg4 \
90         liby \
91         libypclnt \
92         libz \
93         pam_module
94
95 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
96 SUBDIR+= compat/${MACHINE_ARCH}
97 .endif
98
99 .if !defined(NO_LIBC_R)
100 _libc_r=        libc_r
101 .endif
102
103 .if !defined(NO_SENDMAIL)
104 _libmilter=     libmilter
105 _libsm=         libsm
106 _libsmdb=       libsmdb
107 _libsmutil=     libsmutil
108 .endif
109
110 .include <bsd.subdir.mk>