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} \
56 ${_libiconv_modules} \
120 # Inter-library dependencies. When the makefile for a library contains LDADD
121 # libraries, those libraries should be listed as build order dependencies here.
123 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
124 SUBDIR_DEPEND_libatm= libmd
125 SUBDIR_DEPEND_libauditdm= libbsm
126 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
127 SUBDIR_DEPEND_libc++= libcxxrt
128 SUBDIR_DEPEND_libc= libcompiler_rt
129 SUBDIR_DEPEND_libcam= libsbuf
130 SUBDIR_DEPEND_libcapsicum= libnv
131 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
132 SUBDIR_DEPEND_libdevstat= libkvm
133 SUBDIR_DEPEND_libdialog= ncurses
134 SUBDIR_DEPEND_libedit= ncurses
135 SUBDIR_DEPEND_libg++= msun
136 SUBDIR_DEPEND_libgeom= libexpat libsbuf
137 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
138 SUBDIR_DEPEND_libmagic= libz
139 SUBDIR_DEPEND_libmemstat= libkvm
140 SUBDIR_DEPEND_libopie= libmd
141 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
142 SUBDIR_DEPEND_libpjdlog= libutil
143 SUBDIR_DEPEND_libprocstat= libkvm libutil
144 SUBDIR_DEPEND_libradius= libmd
145 SUBDIR_DEPEND_libreadline= ncurses
146 SUBDIR_DEPEND_libsmb= libkiconv
147 SUBDIR_DEPEND_libstdc++= msun
148 SUBDIR_DEPEND_libtacplus= libmd
149 SUBDIR_DEPEND_libulog= libmd
150 SUBDIR_DEPEND_libunbound= ${_libldns}
152 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
153 _csu=csu/${MACHINE_ARCH}-elf
154 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
155 _csu=csu/${MACHINE_ARCH}
156 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
157 _csu=csu/${MACHINE_CPUARCH}
162 # NB: keep these sorted by MK_* knobs
164 .if ${MK_ATM} != "no"
168 .if ${MK_BLUETOOTH} != "no"
169 _libbluetooth= libbluetooth
173 .if ${MK_BSNMP} != "no"
177 .if ${MK_CASPER} != "no"
178 _libcapsicum= libcapsicum
179 _libcasper= libcasper
182 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
186 .if ${MK_CUSE} != "no"
190 .if ${MK_GPIB} != "no"
194 .if ${MK_GSSAPI} != "no"
195 _libgssapi= libgssapi
196 _librpcsec_gss= librpcsec_gss
199 .if ${MK_ICONV} != "no"
200 _libiconv_modules= libiconv_modules
203 .if ${MK_KERBEROS_SUPPORT} != "no"
204 _libcom_err= libcom_err
207 .if ${MK_LDNS} != "no"
211 .if ${MK_LIBCPLUSPLUS} != "no"
213 _libcplusplus= libc++
216 .if ${MK_LIBTHR} != "no"
220 .if ${MK_NAND} != "no"
221 _libnandfs= libnandfs
224 .if ${MK_NETGRAPH} != "no"
225 _libnetgraph= libnetgraph
228 .if ${MK_NIS} != "no"
229 _libypclnt= libypclnt
236 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
240 _librtld_db= librtld_db
243 .if ${MACHINE_CPUARCH} == "amd64"
244 _libvmmapi= libvmmapi
247 .if ${MACHINE_CPUARCH} == "mips"
249 _librtld_db= librtld_db
252 .if ${MACHINE_CPUARCH} == "powerpc"
254 _librtld_db= librtld_db
258 .if ${MACHINE_CPUARCH} == "sparc64"
262 .if ${MK_OPENSSL} != "no"
266 .if ${MK_PMC} != "no"
270 .if ${MK_SENDMAIL} != "no"
271 _libmilter= libmilter
274 _libsmutil= libsmutil
277 .if ${MK_TELNET} != "no"
278 _libtelnet= libtelnet
281 .if ${MK_TESTS_SUPPORT} != "no"
284 .if ${MK_TESTS} != "no"
288 .if ${MK_UNBOUND} != "no"
289 _libunbound= libunbound
292 .if ${MK_USB} != "no"
293 _libusbhid= libusbhid
297 .if !defined(LIBRARIES_ONLY)
299 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
306 .include <bsd.subdir.mk>