Merge from vendor branch OPENSSH:
[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.27 2006/09/20 21:48:39 victor Exp $
4
5 # To satisfy shared library or ELF linkage when only the libraries being
6 # built are visible:
7 #
8 # csu must be built before all shared libaries for ELF.
9 # libcom_err must be built before libkrb and libpam.
10 # libcrypt must be built before libkrb, libpam and libskey.
11 # libmd must be built before libatm, libopie, libradius, libskey, and
12 # libtacplus.
13 # libncurses must be built before libdialog, libedit and libreadline.
14 # libradius must be built before libpam.
15 # libskey must be built before libpam.
16 # libtacplus must be built before libpam.
17 # libutil must be built before libpam.
18 # libsbuf must be built before libcam.
19 #
20 # Otherwise, the SUBDIR list should be in alphabetical order.
21
22 SUBDIR= ${_csu} csu/common libarchive libcom_err libcrypt libm libmd \
23         libncurses libradius libskey libtacplus libutil libsbuf \
24         libalias libatm ${_libbind} ${_libbind9} libbz2 libc ${_libc_r} \
25         libcalendar libcam libcompat libdevstat libdisk libedit libfetch \
26         libftpio libipsec libipx libisc libkcore libkinfo libkvm libmagic \
27         ${_libmilter} ${_libncp} libnetgraph libopie libpam \
28         libpcap libposix1e librpcsvc ${_libsm} ${_libsmb} ${_libsmdb} \
29         ${_libsmutil} libstand libtelnet libthread_xu libusbhid ${_libvgl} \
30         libwrap libxpg4 liby libz i18n_module pam_module libc_rtld libsctp
31
32 .if exists(${.CURDIR}/compat/${MACHINE_ARCH}/Makefile)
33 SUBDIR+= compat/${MACHINE_ARCH}
34 .endif
35
36 _csu=csu/${MACHINE_ARCH}
37
38 .if !defined(NO_LIBC_R)
39 _libc_r=        libc_r
40 .endif
41
42 .if !defined(NO_BIND)
43 _libbind=       libbind
44 _libbind9=      libbind9
45 .endif
46
47 .if !defined(NO_SENDMAIL)
48 _libmilter=     libmilter
49 _libsm=         libsm
50 _libsmdb=       libsmdb
51 _libsmutil=     libsmutil
52 .endif
53
54 .if ${MACHINE_ARCH} == "i386"
55 _libncp=        libncp
56 _libsmb=        libsmb
57 _libvgl=        libvgl
58 .endif
59
60 .include <bsd.subdir.mk>