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} \
57 ${_libiconv_modules} \
122 # Inter-library dependencies. When the makefile for a library contains LDADD
123 # libraries, those libraries should be listed as build order dependencies here.
125 SUBDIR_DEPEND_libarchive= libz libbz2 libexpat liblzma libmd
126 SUBDIR_DEPEND_libatm= libmd
127 SUBDIR_DEPEND_libauditdm= libbsm
128 SUBDIR_DEPEND_libbsnmp= ${_libnetgraph}
129 SUBDIR_DEPEND_libc++= libcxxrt
130 SUBDIR_DEPEND_libc= libcompiler_rt
131 SUBDIR_DEPEND_libcam= libsbuf
132 SUBDIR_DEPEND_libcapsicum= libnv
133 SUBDIR_DEPEND_libcasper= libcapsicum libnv libpjdlog
134 SUBDIR_DEPEND_libdevstat= libkvm
135 SUBDIR_DEPEND_libdpv= libfigpar ncurses libutil
136 SUBDIR_DEPEND_libedit= ncurses
137 SUBDIR_DEPEND_libg++= msun
138 SUBDIR_DEPEND_libgeom= libexpat libsbuf
139 SUBDIR_DEPEND_liblibrpcsec_gss= libgssapi
140 SUBDIR_DEPEND_libmagic= libz
141 SUBDIR_DEPEND_libmemstat= libkvm
142 SUBDIR_DEPEND_libopie= libmd
143 SUBDIR_DEPEND_libpam= libcrypt libopie libradius librpcsvc libtacplus libutil ${_libypclnt} ${_libcom_err}
144 SUBDIR_DEPEND_libpjdlog= libutil
145 SUBDIR_DEPEND_libprocstat= libkvm libutil
146 SUBDIR_DEPEND_libradius= libmd
147 SUBDIR_DEPEND_libreadline= ncurses
148 SUBDIR_DEPEND_libsmb= libkiconv
149 SUBDIR_DEPEND_libstdc++= msun
150 SUBDIR_DEPEND_libtacplus= libmd
151 SUBDIR_DEPEND_libulog= libmd
152 SUBDIR_DEPEND_libunbound= ${_libldns}
154 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
155 _csu=csu/${MACHINE_ARCH}-elf
156 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH})
157 _csu=csu/${MACHINE_ARCH}
158 .elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
159 _csu=csu/${MACHINE_CPUARCH}
164 # NB: keep these sorted by MK_* knobs
166 .if ${MK_ATM} != "no"
170 .if ${MK_BLUETOOTH} != "no"
171 _libbluetooth= libbluetooth
175 .if ${MK_BSNMP} != "no"
179 .if ${MK_CASPER} != "no"
180 _libcapsicum= libcapsicum
181 _libcasper= libcasper
184 .if ${MK_CLANG} != "no" && !defined(COMPAT_32BIT)
188 .if ${MK_CUSE} != "no"
192 .if ${MK_GPIB} != "no"
196 .if ${MK_GSSAPI} != "no"
197 _libgssapi= libgssapi
198 _librpcsec_gss= librpcsec_gss
201 .if ${MK_ICONV} != "no"
202 _libiconv_modules= libiconv_modules
205 .if ${MK_KERBEROS_SUPPORT} != "no"
206 _libcom_err= libcom_err
209 .if ${MK_LDNS} != "no"
213 .if ${MK_LIBCPLUSPLUS} != "no"
215 _libcplusplus= libc++
218 .if ${MK_LIBTHR} != "no"
222 .if ${MK_NAND} != "no"
223 _libnandfs= libnandfs
226 .if ${MK_NETGRAPH} != "no"
227 _libnetgraph= libnetgraph
230 .if ${MK_NIS} != "no"
231 _libypclnt= libypclnt
238 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
242 _librtld_db= librtld_db
245 .if ${MACHINE_CPUARCH} == "amd64"
246 _libvmmapi= libvmmapi
249 .if ${MACHINE_CPUARCH} == "mips"
251 _librtld_db= librtld_db
254 .if ${MACHINE_CPUARCH} == "powerpc"
256 _librtld_db= librtld_db
260 .if ${MACHINE_CPUARCH} == "sparc64"
264 .if ${MK_OPENSSL} != "no"
268 .if ${MK_PMC} != "no"
272 .if ${MK_SENDMAIL} != "no"
273 _libmilter= libmilter
276 _libsmutil= libsmutil
279 .if ${MK_TELNET} != "no"
280 _libtelnet= libtelnet
283 .if ${MK_TESTS_SUPPORT} != "no"
286 .if ${MK_TESTS} != "no"
290 .if ${MK_UNBOUND} != "no"
291 _libunbound= libunbound
294 .if ${MK_USB} != "no"
295 _libusbhid= libusbhid
299 .if !defined(LIBRARIES_ONLY)
301 ${INSTALL_SYMLINK} ../include ${DESTDIR}/usr/lib/include
308 .include <bsd.subdir.mk>