local.dirdeps.mk (a0c640c2a002ad0d02f69823db7f3b2fe68527ae) local.dirdeps.mk (a160cbfa073e8499026063d2d3882b2117b4ced7)
1# $FreeBSD$
2.if !target(_DIRDEP_USE)
3# we are the 1st makefile
4
5.if !defined(MK_CLANG)
6.include "${SRCTOP}/share/mk/src.opts.mk"
7.endif
8

--- 62 unchanged lines hidden (view full) ---

71
72# some optional things
73.if ${MK_CTF} == "yes" && ${DEP_RELDIR:Mcddl/usr.bin/ctf*} == ""
74DIRDEPS += \
75 cddl/usr.bin/ctfconvert.host \
76 cddl/usr.bin/ctfmerge.host
77.endif
78
1# $FreeBSD$
2.if !target(_DIRDEP_USE)
3# we are the 1st makefile
4
5.if !defined(MK_CLANG)
6.include "${SRCTOP}/share/mk/src.opts.mk"
7.endif
8

--- 62 unchanged lines hidden (view full) ---

71
72# some optional things
73.if ${MK_CTF} == "yes" && ${DEP_RELDIR:Mcddl/usr.bin/ctf*} == ""
74DIRDEPS += \
75 cddl/usr.bin/ctfconvert.host \
76 cddl/usr.bin/ctfmerge.host
77.endif
78
79# Add in proper libgcc (gnu or LLVM) if not building libcc and libc is needed.
80# Add both gcc_s and gcc_eh as dependencies as the decision to build
81# -static or not is not known here.
82.if ${DEP_RELDIR:M*libgcc*} == "" && ${DIRDEPS:Mlib/libc}
83.if ${MK_LLVM_LIBUNWIND} == "yes"
84DIRDEPS+= \
85 lib/libgcc_eh \
86 lib/libgcc_s
87.else
88DIRDEPS+= gnu/lib/libgcc
89.endif
90.endif
91
79# Bootstrap support. Give hints to DIRDEPS if there is no Makefile.depend*
80# generated yet. This can be based on things such as SRC files and LIBADD.
81# These hints will not factor into the final Makefile.depend as only what is
82# used will be added in and handled via [local.]gendirdeps.mk. This is not
83# done for MACHINE=host builds.
84# XXX: Include this in local.autodep.mk as well for gendirdeps without filemon.
85# Only do this for main build target
86.if ${RELDIR} == ${DEP_RELDIR} && !defined(_RECURSING_PROGS)

--- 32 unchanged lines hidden (view full) ---

119.endif # !target(${_prog})
120.endfor # .for _prog in ${PROGS}
121.endif # !empty(PROGS)
122_SRCS= ${SRCS} ${_PROGS_SRCS}
123
124# Has C files. The C_DIRDEPS are shared with C++ files as well.
125C_DIRDEPS= \
126 gnu/lib/csu \
92# Bootstrap support. Give hints to DIRDEPS if there is no Makefile.depend*
93# generated yet. This can be based on things such as SRC files and LIBADD.
94# These hints will not factor into the final Makefile.depend as only what is
95# used will be added in and handled via [local.]gendirdeps.mk. This is not
96# done for MACHINE=host builds.
97# XXX: Include this in local.autodep.mk as well for gendirdeps without filemon.
98# Only do this for main build target
99.if ${RELDIR} == ${DEP_RELDIR} && !defined(_RECURSING_PROGS)

--- 32 unchanged lines hidden (view full) ---

132.endif # !target(${_prog})
133.endfor # .for _prog in ${PROGS}
134.endif # !empty(PROGS)
135_SRCS= ${SRCS} ${_PROGS_SRCS}
136
137# Has C files. The C_DIRDEPS are shared with C++ files as well.
138C_DIRDEPS= \
139 gnu/lib/csu \
127 gnu/lib/libgcc \
128 include \
129 include/arpa \
130 include/protocols \
131 include/rpc \
132 include/rpcsvc \
133 include/xlocale \
134 lib/${CSU_DIR} \
135 lib/libc \
136 lib/libcompiler_rt \
137
140 include \
141 include/arpa \
142 include/protocols \
143 include/rpc \
144 include/rpcsvc \
145 include/xlocale \
146 lib/${CSU_DIR} \
147 lib/libc \
148 lib/libcompiler_rt \
149
150# libgcc is needed as well but is added later.
138
139.if ${MK_GSSAPI} != "no"
140C_DIRDEPS+= include/gssapi
141.endif
142
143.if !empty(_SRCS:M*.c)
144DIRDEPS+= ${C_DIRDEPS}
145.endif

--- 59 unchanged lines hidden ---
151
152.if ${MK_GSSAPI} != "no"
153C_DIRDEPS+= include/gssapi
154.endif
155
156.if !empty(_SRCS:M*.c)
157DIRDEPS+= ${C_DIRDEPS}
158.endif

--- 59 unchanged lines hidden ---