xref: /freebsd/share/mk/local.gendirdeps.mk (revision ca7f4027f7bed0d40e6b98b16a4acd3045964ba1)
1ccfb9654SSimon J. Gerraty# $FreeBSD$
2ccfb9654SSimon J. Gerraty
3ccfb9654SSimon J. Gerraty# we need a keyword, this noise is to prevent it being expanded
48311337dSSimon J. GerratyGENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
5ccfb9654SSimon J. Gerraty
6*ca7f4027SPedro F. Giffuni# suppress optional/auto dependencies
77750ad47SMarcel Moolenaar# local.dirdeps.mk will put them in if necessary
804667c47SSimon J. GerratyGENDIRDEPS_FILTER+= \
9dba62d8dSSimon J. Gerraty	Nbin/cat.host \
1004667c47SSimon J. Gerraty	Ngnu/lib/libssp/libssp_nonshared \
1104667c47SSimon J. Gerraty	Ncddl/usr.bin/ctf* \
125633315bSSimon J. Gerraty	Nlib/libc_nonshared \
1361ad1ff5SSimon J. Gerraty	Ntargets/pseudo/stage* \
145633315bSSimon J. Gerraty	Ntools/*
155633315bSSimon J. Gerraty
164aa63711SBryan Drewery# Exclude toolchain which is handled special.
1761ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == ""
184113aa90SSimon J. Gerraty.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
194113aa90SSimon J. GerratyGENDIRDEPS_FILTER.host+= \
204113aa90SSimon J. Gerraty	Nusr.bin/clang/* \
214113aa90SSimon J. Gerraty	Ngnu/usr.bin/cc/* \
224113aa90SSimon J. Gerraty
234113aa90SSimon J. Gerraty.endif
245633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \
254aa63711SBryan Drewery	Nlib/clang/include.host \
264aa63711SBryan Drewery	Nusr.bin/addr2line.host \
274aa63711SBryan Drewery	Nusr.bin/ar.host \
285633315bSSimon J. Gerraty	Nusr.bin/clang/clang.host \
294aa63711SBryan Drewery	Nusr.bin/elfcopy.host \
304aa63711SBryan Drewery	Nusr.bin/elfdump.host \
314aa63711SBryan Drewery	Nusr.bin/nm.host \
324aa63711SBryan Drewery	Nusr.bin/readelf.host \
334aa63711SBryan Drewery	Nusr.bin/size.host \
344aa63711SBryan Drewery	Nusr.bin/strings.host \
354aa63711SBryan Drewery	Nusr.bin/strip.host \
365633315bSSimon J. Gerraty	Ngnu/usr.bin/cc* \
374113aa90SSimon J. Gerraty	Ngnu/usr.bin/binutils*.host \
385633315bSSimon J. Gerraty
395633315bSSimon J. Gerraty.endif
407750ad47SMarcel Moolenaar
414113aa90SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
424113aa90SSimon J. Gerraty
437750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
4404667c47SSimon J. Gerraty# order of this list matters!
4504667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \
4604667c47SSimon J. Gerraty       CSU_DIR \
4704667c47SSimon J. Gerraty       BOOT_MACHINE_DIR
487750ad47SMarcel Moolenaar
4904667c47SSimon J. Gerraty# order of this list matters!
5004667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \
5104667c47SSimon J. Gerraty       KERNEL_NAME \
5204667c47SSimon J. Gerraty       MACHINE_CPUARCH \
5304667c47SSimon J. Gerraty       MACHINE_ARCH \
5404667c47SSimon J. Gerraty       MACHINE
5504667c47SSimon J. Gerraty
5604667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
5704667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
58