1 # @(#)Makefile 8.1 (Berkeley) 6/4/93
6 # The SUBDIR_ORDERED list is a small set of libraries which are used by many
7 # of the other libraries. These are built first with a .WAIT between them
8 # and the main list to avoid needing a SUBDIR_DEPEND line on every library
9 # naming just these few items.
11 SUBDIR_ORDERED= ${_csu} \
21 # The main list; please keep these sorted alphabetically.
23 SUBDIR= ${SUBDIR_ORDERED} \
54 ${_libiconv_modules} \
117 # Inter-library dependencies. When the makefile for a library contains LDADD
118 # libraries, those libraries should be listed as build order dependencies here.
120 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
121 SUBDIR_DEPEND_libatm= libmd
122 SUBDIR_DEPEND_libauditdm= libbsm
123 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
124 SUBDIR_DEPEND_libc++= libcxxrt
125 SUBDIR_DEPEND_libc= libcompiler_rt
126 SUBDIR_DEPEND_libcam= libsbuf
127 SUBDIR_DEPEND_libcapsicum= libnv
128 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
129 SUBDIR_DEPEND_libdevstat= libkvm
130 SUBDIR_DEPEND_libdiaglog= ncurses
131 SUBDIR_DEPEND_libedit= ncurses
132 SUBDIR_DEPEND_libg++= msun
133 SUBDIR_DEPEND_libgeom= libexpat libsbuf
134 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
135 SUBDIR_DEPEND_libmagic= libz
136 SUBDIR_DEPEND_libmemstat= libkvm
137 SUBDIR_DEPEND_libopie= libmd
138 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
139 SUBDIR_DEPEND_libpjdlog= libutil
140 SUBDIR_DEPEND_libprocstat= libkvm libutil
141 SUBDIR_DEPEND_libradius= libmd
142 SUBDIR_DEPEND_libreadline= ncurses
143 SUBDIR_DEPEND_libsmb= libkiconv
144 SUBDIR_DEPEND_libstdc++= msun
145 SUBDIR_DEPEND_libtacplus= libmd
146 SUBDIR_DEPEND_libulog= libmd
147 SUBDIR_DEPEND_libunbound= ${_libldns}
149 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
150 _csu=csu/${MACHINE_ARCH}-elf
151 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
152 _csu=csu/${MACHINE_ARCH}
153 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
154 _csu=csu/${MACHINE_CPUARCH}
159 # NB: keep these sorted by MK_* knobs
161 .if ${MK_ATM} != "no"
165 .if ${MK_BLUETOOTH} != "no"
166 _libbluetooth= libbluetooth
170 .if ${MK_BSNMP} != "no"
174 .if ${MK_CASPER} != "no"
175 _libcapsicum= libcapsicum
176 _libcasper= libcasper
179 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
183 .if ${MK_CUSE} != "no"
187 .if ${MK_GPIB} != "no"
191 .if ${MK_GSSAPI} != "no"
192 _libgssapi= libgssapi
193 _librpcsec_gss= librpcsec_gss
196 .if ${MK_ICONV} != "no"
197 _libiconv_modules= libiconv_modules
200 .if ${MK_KERBEROS_SUPPORT} != "no"
201 _libcom_err= libcom_err
204 .if ${MK_LDNS} != "no"
208 .if ${MK_LIBCPLUSPLUS} != "no"
210 _libcplusplus= libc++
213 .if ${MK_LIBTHR} != "no"
217 .if ${MK_NAND} != "no"
218 _libnandfs= libnandfs
221 .if ${MK_NETGRAPH} != "no"
222 _libnetgraph= libnetgraph
225 .if ${MK_NIS} != "no"
226 _libypclnt= libypclnt
229 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
233 _librtld_db= librtld_db
236 .if ${MACHINE_CPUARCH} == "amd64"
237 _libvmmapi= libvmmapi
240 .if ${MACHINE_CPUARCH} == "mips"
242 _librtld_db= librtld_db
245 .if ${MACHINE_CPUARCH} == "powerpc"
247 _librtld_db= librtld_db
251 .if ${MACHINE_CPUARCH} == "sparc64"
255 .if ${MK_OPENSSL} != "no"
259 .if ${MK_PMC} != "no"
263 .if ${MK_SENDMAIL} != "no"
264 _libmilter= libmilter
267 _libsmutil= libsmutil
270 .if ${MK_TELNET} != "no"
271 _libtelnet= libtelnet
274 .if ${MK_TESTS} != "no"
279 .if ${MK_UNBOUND} != "no"
280 _libunbound= libunbound
283 .if ${MK_USB} != "no"
284 _libusbhid= libusbhid
288 .if !defined(LIBRARIES_ONLY)
290 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
297 .include <bsd.subdir.mk>