7920ad944b
Some background: in the GSoC project, libbe/Makefile lived in lib/libbe. I created projects/bectl branch, maintained the above for all of five minutes before I misread Makefile.inc1 and decided that it couldn't possibly build outside of cddl/, so I kicked the Makefile out into the cddl/ build and all was good. The misreading was of the bit where .WAIT is added to SUBDIR after lib, libexec but prior to building bin and cddl *only during the install targets*, which is the critical part. Fast forward- buildworld was still broken in my branch unbeknownst to me because I didn't nuke my OBJDIR. Combing through Makefile.inc1 eventually revealed the necessary magic to make sure that libbe's dependencies are specified well enough, and it becomes clear what needs done to make a non-cddl/ build work. This is an interesting prospect, because the build split is kind of annoying to work with. IGNORE_PRAGMA is added to avoid dropping WARNS by one more. This was previously pulled in via cddl/Makefile.inc.
39 lines
640 B
Makefile
39 lines
640 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SUBDIR= ${_drti} \
|
|
libavl \
|
|
libctf \
|
|
${_libdtrace} \
|
|
libnvpair \
|
|
libumem \
|
|
libuutil \
|
|
${_libzfs_core} \
|
|
${_libzfs} \
|
|
${_libzpool} \
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
_libzfs_core= libzfs_core
|
|
_libzfs= libzfs
|
|
.if ${MK_LIBTHR} != "no"
|
|
_libzpool= libzpool
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} != "sparc64"
|
|
_drti= drti
|
|
_libdtrace= libdtrace
|
|
.endif
|
|
|
|
SUBDIR_DEPEND_libdtrace= libctf
|
|
SUBDIR_DEPEND_libzfs_core= libnvpair
|
|
SUBDIR_DEPEND_libzfs= libavl libnvpair libumem libuutil libzfs_core
|
|
SUBDIR_DEPEND_libzpool= libavl libnvpair libumem
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
.include <bsd.subdir.mk>
|