]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/local.gendirdeps.mk
Merge sendmail 8.15.2 to HEAD
[FreeBSD/FreeBSD.git] / share / mk / local.gendirdeps.mk
1 # $FreeBSD$
2
3 # we need a keyword, this noise is to prevent it being expanded
4 GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
5
6 # supress optional/auto dependecies
7 # local.dirdeps.mk will put them in if necessary
8 GENDIRDEPS_FILTER+= \
9         Ngnu/lib/libssp/libssp_nonshared \
10         Ncddl/usr.bin/ctf* \
11         Nlib/clang/include \
12         Nlib/libc_nonshared \
13         Ntargets/pseudo/stage* \
14         Ntools/*
15
16 .if ${RELDIR:Mtargets*} == ""
17 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
18 GENDIRDEPS_FILTER.host+= \
19         Nusr.bin/clang/* \
20         Ngnu/usr.bin/cc/* \
21
22 .endif
23 GENDIRDEPS_FILTER+= \
24         Nusr.bin/clang/clang.host \
25         Ngnu/usr.bin/cc* \
26         Ngnu/usr.bin/binutils*.host \
27
28 .endif
29
30 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
31
32 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
33 # order of this list matters!
34 GENDIRDEPS_FILTER_DIR_VARS+= \
35        CSU_DIR \
36        BOOT_MACHINE_DIR
37
38 # order of this list matters!
39 GENDIRDEPS_FILTER_VARS+= \
40        KERNEL_NAME \
41        MACHINE_CPUARCH \
42        MACHINE_ARCH \
43        MACHINE
44
45 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
46 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
47
48 # handle the non-standard way that gnu/usr.bin/groff/tmac is staged
49 GENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac,
50