# This file is not autogenerated - take care!

.include <src.opts.mk>

DEP_MACHINE_CPUARCH?= ${MACHINE_CPUARCH}

DIRDEPS = \
	lib/${CSU_DIR} \
	lib/atf/libatf-c \
	lib/atf/libatf-c++ \
	lib/geom/cache \
	lib/geom/concat \
	lib/geom/eli \
	lib/geom/journal \
	lib/geom/label \
	lib/geom/mirror \
	lib/geom/mountver \
	lib/geom/multipath \
	lib/geom/nop \
	lib/geom/part \
	lib/geom/raid \
	lib/geom/raid3 \
	lib/geom/sched \
	lib/geom/shsec \
	lib/geom/stripe \
	lib/geom/virstor \
	lib/lib80211 \
	lib/libalias/libalias \
	lib/libalias/modules/dummy \
	lib/libalias/modules/ftp \
	lib/libalias/modules/irc \
	lib/libalias/modules/nbt \
	lib/libalias/modules/pptp \
	lib/libalias/modules/skinny \
	lib/libalias/modules/smedia \
	lib/libarchive \
	lib/libauditd \
	lib/libbe \
	lib/libbegemot \
	lib/libblocksruntime \
	lib/libbluetooth \
	lib/libbsddialog \
	lib/libbsdstat \
	lib/libbsm \
	lib/libbsnmp/libbsnmp \
	lib/libbz2 \
	lib/libc \
	lib/libc_nonshared \
	lib/libc++ \
	lib/libc++experimental \
	lib/libcalendar \
	lib/libcam \
	lib/libcapsicum \
	lib/libcom_err/doc \
	lib/libcompat \
	lib/libcompiler_rt \
	lib/libcrypt \
	lib/libcuse \
	lib/libcxxrt \
	lib/libdevctl \
	lib/libdevdctl \
	lib/libdevinfo \
	lib/libdevstat \
	lib/libdl \
	lib/libdwarf \
	lib/libedit/edit/readline \
	lib/libelf \
	lib/libelftc \
	lib/libevent1 \
	lib/libevent \
	lib/libexecinfo \
	lib/libexpat \
	lib/libfetch \
	lib/libfigpar \
	lib/libgeom \
	lib/libgssapi \
	lib/libiconv_modules/BIG5 \
	lib/libiconv_modules/DECHanyu \
	lib/libiconv_modules/EUC \
	lib/libiconv_modules/EUCTW \
	lib/libiconv_modules/GBK2K \
	lib/libiconv_modules/HZ \
	lib/libiconv_modules/ISO2022 \
	lib/libiconv_modules/JOHAB \
	lib/libiconv_modules/MSKanji \
	lib/libiconv_modules/UES \
	lib/libiconv_modules/UTF1632 \
	lib/libiconv_modules/UTF7 \
	lib/libiconv_modules/UTF8 \
	lib/libiconv_modules/VIQR \
	lib/libiconv_modules/ZW \
	lib/libiconv_modules/iconv_none \
	lib/libiconv_modules/iconv_std \
	lib/libiconv_modules/mapper_646 \
	lib/libiconv_modules/mapper_none \
	lib/libiconv_modules/mapper_parallel \
	lib/libiconv_modules/mapper_serial \
	lib/libiconv_modules/mapper_std \
	lib/libiconv_modules/mapper_zone \
	lib/libifconfig \
	lib/libipsec \
	lib/libipx \
	lib/libiscsiutil \
	lib/libjail \
	lib/libkiconv \
	lib/libkvm \
	lib/libldns \
	lib/liblzma \
	lib/libmagic \
	lib/libmandoc \
	lib/libmd \
	lib/libmemstat \
	lib/libmilter \
	lib/libmixer \
	lib/libmp \
	lib/libnetgraph \
	lib/libngatm \
	lib/libnv \
	lib/libpam/libpam \
	lib/libpam/modules/pam_chroot \
	lib/libpam/modules/pam_deny \
	lib/libpam/modules/pam_echo \
	lib/libpam/modules/pam_exec \
	lib/libpam/modules/pam_ftpusers \
	lib/libpam/modules/pam_group \
	lib/libpam/modules/pam_guest \
	lib/libpam/modules/pam_krb5 \
	lib/libpam/modules/pam_ksu \
	lib/libpam/modules/pam_lastlog \
	lib/libpam/modules/pam_login_access \
	lib/libpam/modules/pam_nologin \
	lib/libpam/modules/pam_passwdqc \
	lib/libpam/modules/pam_permit \
	lib/libpam/modules/pam_radius \
	lib/libpam/modules/pam_rhosts \
	lib/libpam/modules/pam_rootok \
	lib/libpam/modules/pam_securetty \
	lib/libpam/modules/pam_self \
	lib/libpam/modules/pam_ssh \
	lib/libpam/modules/pam_tacplus \
	lib/libpam/modules/pam_unix \
	lib/libpam/static_libpam \
	lib/libpathconv \
	lib/libpcap \
	lib/libpe \
	lib/libpjdlog \
	lib/libproc \
	lib/libprocstat \
	lib/libradius \
	lib/libregex \
	lib/librpcsec_gss \
	lib/librpcsvc \
	lib/librss \
	lib/librt \
	lib/librtld_db \
	lib/libsa \
	lib/libsbuf \
	lib/libsdp \
	lib/libsm \
	lib/libsmb \
	lib/libsmdb \
	lib/libsmutil \
	lib/libsqlite3 \
	lib/libstats \
	lib/libstdbuf \
	lib/libstdthreads \
	lib/libsysdecode \
	lib/libtacplus \
	lib/libtelnet \
	lib/libthr \
	lib/libthread_db \
	lib/libucl \
	lib/libufs \
	lib/libugidfw \
	lib/libulog \
	lib/libunbound \
	lib/libusb \
	lib/libusbhid \
	lib/libutil \
	lib/libvgl \
	lib/libvmmapi \
	lib/libwrap \
	lib/libxo \
	lib/liby \
	lib/libyaml \
	lib/libypclnt \
	lib/libz \
	lib/libzstd \
	lib/msun \
	lib/ncurses/form \
	lib/ncurses/formw \
	lib/ncurses/menu \
	lib/ncurses/menuw \
	lib/ncurses/ncurses \
	lib/ncurses/ncursesw \
	lib/ncurses/panel \
	lib/ncurses/panelw \

.if ${MK_CLANG} != "no" && \
    (${DEP_MACHINE_CPUARCH} == "aarch64" || ${DEP_MACHINE_CPUARCH} == "amd64" || \
    ${DEP_MACHINE_CPUARCH} == "arm" || ${DEP_MACHINE_CPUARCH} == "i386")
DIRDEPS+= \
	lib/libclang_rt/asan-preinit \
	lib/libclang_rt/asan \
	lib/libclang_rt/asan_dynamic \
	lib/libclang_rt/asan_cxx \
	lib/libclang_rt/include \
	lib/libclang_rt/profile \
	lib/libclang_rt/safestack \
	lib/libclang_rt/stats \
	lib/libclang_rt/stats_client \
	lib/libclang_rt/ubsan_standalone \
	lib/libclang_rt/ubsan_standalone_cxx \

.endif

.if ${DEP_MACHINE_CPUARCH} == "amd64" || ${DEP_MACHINE_CPUARCH} == "i386" || \
    ${DEP_MACHINE_CPUARCH} == "powerpc"
DIRDEPS+= stand/libsa32
.endif

.if ${MK_CASPER} != "no"
DIRDEPS+= \
	lib/libcasper/libcasper \
	lib/libcasper/services/cap_dns \
	lib/libcasper/services/cap_grp \
	lib/libcasper/services/cap_pwd \
	lib/libcasper/services/cap_sysctl \

.endif

.if ${MK_DIALOG} != "no"
DIRDEPS+= lib/libdpv
.endif

.if ${MK_GPIO} != "no"
DIRDEPS+= lib/libgpio
.endif

.if ${MK_EFI} != "no"
DIRDEPS+= lib/libefivar
.endif

DIRDEPS+= \
	lib/libgcc_eh \
	lib/libgcc_s

.if ${MK_PMC} != "no"
DIRDEPS+= \
	lib/libpmc \
	lib/libpmcstat
.endif

.if ${MK_BLACKLIST_SUPPORT} != "no"
DIRDEPS+=	lib/libblacklist
.endif

.if ${MK_ZFS} != "no"
DIRDEPS+=	cddl/lib/libzutil
.endif

.include <dirdeps.mk>