]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Fix build in the !NOATM case by using the begemot library in place of
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 # To satisfy shared library or ELF linkage when only the libraries being
5 # built are visible:
6 #
7 # csu must be built before all shared libaries for ELF.
8 # libcom_err must be built before libkrb5 and libpam.
9 # libcrypt must be built before libkrb5 and libpam.
10 # libkvm must be built before libdevstat.
11 # msun must be built before libg++ and libstdc++.
12 # libmd must be built before libatm, libopie, libradius, and libtacplus.
13 # libncurses must be built before libdialog, libedit and libreadline.
14 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
15 # libopie must be built before libpam.
16 # libradius must be built before libpam.
17 # librpcsvc must be built before libpam.
18 # libsbuf must be built before libcam.
19 # libtacplus must be built before libpam.
20 # libutil must be built before libpam.
21 # libypclnt must be built before libpam.
22 #
23 # Otherwise, the SUBDIR list should be in alphabetical order.
24
25 SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
26         libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
27         ${_libypclnt} libalias libarchive ${_libatm} \
28         libbegemot ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
29         libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
30         libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
31         libipx libkiconv libmagic libmenu ${_libmilter} ${_libmp} \
32         ${_libncp} ${_libngatm} libopie libpam libautofs libpanel libpcap \
33         ${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
34         ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
35         libugidfw ${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz ${_bind}
36
37 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
38 _csu=csu/${MACHINE_ARCH}-elf
39 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
40 _csu=csu/${MACHINE_ARCH}
41 .else
42 _csu=csu
43 .endif
44
45 .if !defined(NOATM)
46 _libatm=        libatm
47 _libngatm=      libngatm
48 .endif
49
50 .if !defined(NO_BIND)
51 _bind=          bind
52 .endif
53
54 .if !defined(NO_BLUETOOTH)
55 _libbluetooth=  libbluetooth
56 _libsdp=        libsdp
57 .endif
58
59 .if ${MACHINE_ARCH} == "i386"
60 _libncp=        libncp
61 _libsmb=        libsmb
62 _libvgl=        libvgl
63 .endif
64
65 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \
66     ${MACHINE_ARCH} != "powerpc" && !defined(NOLIBC_R)
67 _libc_r=        libc_r
68 .endif
69
70 .if ${MACHINE_ARCH} != "arm"
71 _libdisk=       libdisk
72 .endif
73
74 .if ${MACHINE_ARCH} == "alpha"
75 _libio=         libio
76 .endif
77
78 .if !defined(NO_SENDMAIL)
79 _libmilter=     libmilter
80 _libsm=         libsm
81 _libsmdb=       libsmdb
82 _libsmutil=     libsmutil
83 .endif
84
85 .if !defined(NOCRYPT) && !defined(NO_OPENSSL)
86 _libmp=         libmp
87 .endif
88
89 .if ${MACHINE_ARCH} == "amd64"
90 _libncp=        libncp
91 _libsmb=        libsmb
92 .endif
93
94 .if !defined(NOLIBPTHREAD)
95 _libpthread=    libpthread
96 .endif
97
98 .if ${MACHINE_ARCH} != "arm" && !defined(NOLIBTHR)
99 _libthr=        libthr
100 .endif
101
102 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc"
103 _libthread_db=  libthread_db
104 .endif
105
106 .if !defined(NO_USB)
107 _libusbhid=     libusbhid
108 .endif
109
110 .if !defined(NO_YP_LIBC)
111 _libypclnt=     libypclnt
112 .endif
113
114 .include <bsd.subdir.mk>