]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Xref sysctl(3)
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 # To satisfy shared library or ELF linkage when only the libraries being
7 # built are visible:
8 #
9 # csu must be built before all shared libaries for ELF.
10 # libc must be built before all other shared libraries.
11 # libbsm must be built before ibauditd.
12 # libcom_err must be built before libkrb5 and libpam.
13 # libcrypt must be built before libkrb5 and libpam.
14 # libkvm must be built before libdevstat.
15 # msun must be built before libg++ and libstdc++.
16 # libmd must be built before libatm, libopie, libradius, and libtacplus.
17 # ncurses must be built before libdialog, libedit and libreadline.
18 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
19 # libopie must be built before libpam.
20 # libradius must be built before libpam.
21 # librpcsvc must be built before libpam.
22 # libsbuf must be built before libcam.
23 # libtacplus must be built before libpam.
24 # libulog must be built before libpam.
25 # libutil must be built before libpam.
26 # libypclnt must be built before libpam.
27 # libgssapi must be built before librpcsec_gss
28 #
29 # Otherwise, the SUBDIR list should be in alphabetical order.
30
31 SUBDIR= ${_csu} libc libbsm libauditd libcom_err libcrypt libelf libkvm msun \
32         libmd \
33         ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
34         libtacplus libulog libutil ${_libypclnt} libalias libarchive \
35         ${_libatm} libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
36         libcalendar libcam libcompat libdevinfo libdevstat libdisk \
37         libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
38         ${_libgssapi} ${_librpcsec_gss} libipsec \
39         ${_libipx} libjail libkiconv libmagic libmemstat ${_libmilter} \
40         ${_libmp} ${_libncp} ${_libngatm} libopie libpam libpcap \
41         ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
42         ${_libsmdb} \
43         ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \
44         libugidfw ${_libusbhid} ${_libusb} ${_libvgl} libwrap liby libz \
45         ${_bind}
46
47 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
48 _csu=csu/${MACHINE_ARCH}-elf
49 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
50 _csu=csu/${MACHINE_ARCH}
51 .else
52 _csu=csu
53 .endif
54
55 # NB: keep these sorted by MK_* knobs
56
57 .if ${MK_ATM} != "no"
58 _libngatm=      libngatm
59 .endif
60
61 .if ${MK_BIND} != "no"
62 _bind=          bind
63 .endif
64
65 .if ${MK_BLUETOOTH} != "no"
66 _libbluetooth=  libbluetooth
67 _libsdp=        libsdp
68 .endif
69
70 .if ${MK_BSNMP} != "no"
71 _libbsnmp=      libbsnmp
72 .endif
73
74 .if ${MK_GPIB} != "no"
75 _libgpib=       libgpib
76 .endif
77
78 .if ${MK_GSSAPI} != "no"
79 _libgssapi=     libgssapi
80 _librpcsec_gss= librpcsec_gss
81 .endif
82
83 .if ${MK_IPX} != "no"
84 _libipx=        libipx
85 .endif
86
87 .if ${MK_LIBTHR} != "no"
88 _libthr=        libthr
89 .endif
90
91 .if ${MK_NETGRAPH} != "no"
92 _libnetgraph=   libnetgraph
93 .endif
94
95 .if ${MK_NIS} != "no"
96 _libypclnt=     libypclnt
97 .endif
98
99 .if ${MACHINE_ARCH} == "i386"
100 .if ${MK_NCP} != "no"
101 _libncp=        libncp
102 .endif
103 _libsmb=        libsmb
104 _libvgl=        libvgl
105 .endif
106
107 .if ${MACHINE_ARCH} == "ia64"
108 _libsmb=        libsmb
109 .endif
110
111 .if ${MACHINE_ARCH} == "amd64"
112 .if ${MK_NCP} != "no"
113 _libncp=        libncp
114 .endif
115 _libsmb=        libsmb
116 _libvgl=        libvgl
117 .endif
118
119 .if ${MACHINE_ARCH} == "powerpc"
120 _libsmb=        libsmb
121 .endif
122
123 .if ${MK_OPENSSL} != "no"
124 _libmp=         libmp
125 .endif
126
127 .if ${MK_PMC} != "no"
128 _libpmc=        libpmc
129 .endif
130
131 .if ${MK_SENDMAIL} != "no"
132 _libmilter=     libmilter
133 _libsm=         libsm
134 _libsmdb=       libsmdb
135 _libsmutil=     libsmutil
136 .endif
137
138 .if ${MK_TELNET} != "no"
139 _libtelnet=     libtelnet
140 .endif
141
142 .if ${MK_USB} != "no"
143 _libusbhid=     libusbhid
144 _libusb=        libusb
145 .endif
146
147 .include <bsd.subdir.mk>