freebsd-nq/share/mk/local.gendirdeps.mk

58 lines
1.4 KiB
Makefile
Raw Normal View History

# $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*}';
# suppress optional/auto dependencies
# local.dirdeps.mk will put them in if necessary
GENDIRDEPS_FILTER+= \
Nbin/cat.host \
Ngnu/lib/libssp/libssp_nonshared \
Ncddl/usr.bin/ctf* \
2014-05-16 15:00:30 +00:00
Nlib/libc_nonshared \
2014-11-30 18:45:46 +00:00
Ntargets/pseudo/stage* \
2014-05-16 15:00:30 +00:00
Ntools/*
# Exclude toolchain which is handled special.
2014-11-30 18:45:46 +00:00
.if ${RELDIR:Mtargets*} == ""
.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
GENDIRDEPS_FILTER.host+= \
Nusr.bin/clang/* \
Ngnu/usr.bin/cc/* \
.endif
2014-05-16 15:00:30 +00:00
GENDIRDEPS_FILTER+= \
Nlib/clang/include.host \
Nusr.bin/addr2line.host \
Nusr.bin/ar.host \
2014-05-16 15:00:30 +00:00
Nusr.bin/clang/clang.host \
Nusr.bin/elfcopy.host \
Nusr.bin/elfdump.host \
Nusr.bin/nm.host \
Nusr.bin/readelf.host \
Nusr.bin/size.host \
Nusr.bin/strings.host \
Nusr.bin/strip.host \
2014-05-16 15:00:30 +00:00
Ngnu/usr.bin/cc* \
Ngnu/usr.bin/binutils*.host \
2014-05-16 15:00:30 +00:00
.endif
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
# order of this list matters!
GENDIRDEPS_FILTER_DIR_VARS+= \
CSU_DIR \
BOOT_MACHINE_DIR
# 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}