Merge from vendor branch GCC:
[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.28 2007/01/15 18:01:44 corecode 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= 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 .if !defined(NO_LIBC_R)
37 _libc_r=        libc_r
38 .endif
39
40 .if !defined(NO_BIND)
41 _libbind=       libbind
42 _libbind9=      libbind9
43 .endif
44
45 .if !defined(NO_SENDMAIL)
46 _libmilter=     libmilter
47 _libsm=         libsm
48 _libsmdb=       libsmdb
49 _libsmutil=     libsmutil
50 .endif
51
52 .if ${MACHINE_ARCH} == "i386"
53 _libncp=        libncp
54 _libsmb=        libsmb
55 _libvgl=        libvgl
56 .endif
57
58 .include <bsd.subdir.mk>