summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-05-26 23:20:40 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-05-26 23:20:40 +0000
commit74f873608ae48d2a3fe8711b92f10d6b9e73e426 (patch)
tree01245292a09a87694bf6c8897de022bc67519397
parent42b3be843e7c173661cc557fef9ae2833eb80d5d (diff)
downloadFreeBSD-src-74f873608ae48d2a3fe8711b92f10d6b9e73e426.zip
FreeBSD-src-74f873608ae48d2a3fe8711b92f10d6b9e73e426.tar.gz
DIRDEPS_BUILD: Fix and hookup rescue/rescue to the build.
Sponsored by: EMC / Isilon Storage Division
-rw-r--r--rescue/rescue/Makefile.depend61
-rw-r--r--share/mk/bsd.crunchgen.mk9
-rw-r--r--targets/pseudo/userland/misc/Makefile.depend1
3 files changed, 68 insertions, 3 deletions
diff --git a/rescue/rescue/Makefile.depend b/rescue/rescue/Makefile.depend
new file mode 100644
index 0000000..1710daf
--- /dev/null
+++ b/rescue/rescue/Makefile.depend
@@ -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
diff --git a/share/mk/bsd.crunchgen.mk b/share/mk/bsd.crunchgen.mk
index b8085b2..435dfeb 100644
--- a/share/mk/bsd.crunchgen.mk
+++ b/share/mk/bsd.crunchgen.mk
@@ -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}
diff --git a/targets/pseudo/userland/misc/Makefile.depend b/targets/pseudo/userland/misc/Makefile.depend
index b0423a5..19ede32 100644
--- a/targets/pseudo/userland/misc/Makefile.depend
+++ b/targets/pseudo/userland/misc/Makefile.depend
@@ -19,6 +19,7 @@ DIRDEPS = \
etc/newsyslog.conf.d \
etc/sendmail \
rescue/librescue \
+ rescue/rescue \
.if ${MK_BOOT} != "no"
DIRDEPS+= sys/boot/common
OpenPOWER on IntegriCloud