6fee50ba24
This allows most of the build to simply consider MK_META_MODE Update to latest dirdeps.mk so we can do: make -f dirdeps.mk bin/cat.i386 Reviewed by: bdrewery
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
# we need a keyword, this noise is to prevent it being expanded
|
|
GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
|
|
|
|
# supress optional/auto dependecies
|
|
# local.dirdeps.mk will put them in if necessary
|
|
GENDIRDEPS_FILTER+= \
|
|
Nbin/cat.host \
|
|
Ngnu/lib/libssp/libssp_nonshared \
|
|
Ncddl/usr.bin/ctf* \
|
|
Nlib/clang/include \
|
|
Nlib/libc_nonshared \
|
|
Ntargets/pseudo/stage* \
|
|
Ntools/*
|
|
|
|
.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
|
|
GENDIRDEPS_FILTER+= \
|
|
Nusr.bin/clang/clang.host \
|
|
Ngnu/usr.bin/cc* \
|
|
Ngnu/usr.bin/binutils*.host \
|
|
|
|
.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}
|