DIRDEPS_BUILD: Fix and hookup rescue/rescue to the build.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-05-26 23:20:40 +00:00
parent eb9b07bb77
commit 38f6966b70
3 changed files with 68 additions and 3 deletions

View File

@ -0,0 +1,61 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
cddl/lib/libavl \
cddl/lib/libnvpair \
cddl/lib/libumem \
cddl/lib/libuutil \
cddl/lib/libzfs \
cddl/lib/libzfs_core \
cddl/lib/libzpool \
gnu/lib/csu \
gnu/lib/libgcc \
include \
include/arpa \
include/protocols \
include/rpc \
include/rpcsvc \
include/xlocale \
lib/${CSU_DIR} \
lib/lib80211 \
lib/libalias/libalias \
lib/libarchive \
lib/libbz2 \
lib/libc \
lib/libcam \
lib/libcompiler_rt \
lib/libcrypt \
lib/libdevstat \
lib/libedit \
lib/libelf \
lib/libexpat \
lib/libgeom \
lib/libipsec \
lib/libjail \
lib/libkiconv \
lib/libkvm \
lib/liblzma \
lib/libmd \
lib/libmt \
lib/libnetgraph \
lib/libsbuf \
lib/libthr \
lib/libufs \
lib/libutil \
lib/libxo \
lib/libz \
lib/msun \
lib/ncurses/ncursesw \
rescue/librescue \
secure/lib/libcrypto \
usr.bin/lex/lib \
usr.bin/yacc.host \
usr.sbin/crunch/crunchgen.host \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif

View File

@ -108,6 +108,7 @@ ${CONF}: Makefile
CRUNCHGEN?= crunchgen
CRUNCHENV+= MK_TESTS=no \
UPDATE_DEPENDFILE=no \
_RECURSING_CRUNCH=1
.ORDER: ${OUTPUTS} objs
${OUTPUTS:[1]}: .META
@ -121,13 +122,13 @@ ${OUTPUTS}: ${CONF}
# These 2 targets cannot use .MAKE since they depend on the generated
# ${OUTMK} above.
${PROG}: ${OUTPUTS} objs
${PROG}: ${OUTPUTS} objs .META
${CRUNCHENV} \
CC="${CC} ${CFLAGS} ${LDFLAGS}" \
CXX="${CXX} ${CXXFLAGS} ${LDFLAGS}" \
${MAKE} -f ${OUTMK} exe
${MAKE} .MAKE.MODE=normal -f ${OUTMK} exe
objs: ${OUTMK}
objs: ${OUTMK} .META
${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} \
${MAKE} -f ${OUTMK} objs
@ -163,3 +164,5 @@ clean:
${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} ${MAKE} \
-f ${OUTMK} clean; \
fi
META_XTRAS+= ${find ${CRUNCHOBJS}${SRCTOP} -name '*.meta' 2>/dev/null || true:L:sh}

View File

@ -19,6 +19,7 @@ DIRDEPS = \
etc/newsyslog.conf.d \
etc/sendmail \
rescue/librescue \
rescue/rescue \
.if ${MK_BOOT} != "no"
DIRDEPS+= sys/boot/common