2015-06-13 19:20:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# we need a keyword, this noise is to prevent it being expanded
|
2015-06-14 03:28:48 +00:00
|
|
|
GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
|
2015-06-13 19:20:56 +00:00
|
|
|
|
2016-05-01 16:29:02 +00:00
|
|
|
# suppress optional/auto dependencies
|
2012-08-22 19:25:57 +00:00
|
|
|
# local.dirdeps.mk will put them in if necessary
|
2013-10-12 23:48:21 +00:00
|
|
|
GENDIRDEPS_FILTER+= \
|
2015-11-16 22:50:23 +00:00
|
|
|
Nbin/cat.host \
|
2013-10-12 23:48:21 +00:00
|
|
|
Ngnu/lib/libssp/libssp_nonshared \
|
|
|
|
Ncddl/usr.bin/ctf* \
|
2014-05-16 15:00:30 +00:00
|
|
|
Nlib/libc_nonshared \
|
2017-10-31 00:03:36 +00:00
|
|
|
Ngnu/lib/libgcc \
|
|
|
|
Nlib/libgcc_eh \
|
|
|
|
Nlib/libgcc_s \
|
2018-08-02 21:33:45 +00:00
|
|
|
Nstand/libsa/* \
|
|
|
|
Nstand/libsa32/* \
|
2014-11-30 18:45:46 +00:00
|
|
|
Ntargets/pseudo/stage* \
|
2014-05-16 15:00:30 +00:00
|
|
|
Ntools/*
|
|
|
|
|
2016-09-01 20:23:49 +00:00
|
|
|
# Clang has nested directories in its OBJDIR.
|
|
|
|
GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
|
|
|
|
|
2015-11-25 19:44:51 +00:00
|
|
|
# Exclude toolchain which is handled special.
|
2014-11-30 18:45:46 +00:00
|
|
|
.if ${RELDIR:Mtargets*} == ""
|
2015-05-26 21:44:15 +00:00
|
|
|
.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
|
|
|
|
GENDIRDEPS_FILTER.host+= \
|
|
|
|
Nusr.bin/clang/* \
|
|
|
|
Ngnu/usr.bin/cc/* \
|
|
|
|
|
|
|
|
.endif
|
2016-05-11 17:40:51 +00:00
|
|
|
GENDIRDEPS_FILTER_HOST_TOOLS+= \
|
2016-09-02 19:28:24 +00:00
|
|
|
Nlib/clang/headers \
|
2016-05-11 17:40:51 +00:00
|
|
|
Nusr.bin/addr2line \
|
|
|
|
Nusr.bin/ar \
|
|
|
|
Nusr.bin/clang/clang \
|
|
|
|
Nusr.bin/elfcopy \
|
|
|
|
Nusr.bin/elfdump \
|
|
|
|
Nusr.bin/nm \
|
|
|
|
Nusr.bin/readelf \
|
|
|
|
Nusr.bin/size \
|
|
|
|
Nusr.bin/strings \
|
|
|
|
Nusr.bin/strip \
|
2014-05-16 15:00:30 +00:00
|
|
|
Ngnu/usr.bin/cc* \
|
2016-05-11 17:40:51 +00:00
|
|
|
Ngnu/usr.bin/binutils* \
|
2014-05-16 15:00:30 +00:00
|
|
|
|
2016-05-11 17:40:51 +00:00
|
|
|
.if ${MACHINE} != "host"
|
|
|
|
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
|
|
|
|
.else
|
|
|
|
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
|
|
|
|
.endif
|
2014-05-16 15:00:30 +00:00
|
|
|
.endif
|
2012-08-22 19:25:57 +00:00
|
|
|
|
2015-05-26 21:44:15 +00:00
|
|
|
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
|
|
|
|
|
2012-08-22 19:25:57 +00:00
|
|
|
# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
|
2013-10-12 23:48:21 +00:00
|
|
|
# order of this list matters!
|
|
|
|
GENDIRDEPS_FILTER_DIR_VARS+= \
|
|
|
|
CSU_DIR \
|
|
|
|
BOOT_MACHINE_DIR
|
2012-08-22 19:25:57 +00:00
|
|
|
|
2013-10-12 23:48:21 +00:00
|
|
|
# order of this list matters!
|
|
|
|
GENDIRDEPS_FILTER_VARS+= \
|
|
|
|
KERNEL_NAME \
|
|
|
|
MACHINE_CPUARCH \
|
|
|
|
MACHINE_ARCH \
|
|
|
|
MACHINE
|
|
|
|
|
|
|
|
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
|
|
|
|
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
|