diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-23 18:06:02 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-23 18:06:02 -0400 |
commit | 632feaa69a08069856cf5d0bc064d152cd161646 (patch) | |
tree | 9b445a7ee003c566fb98da4d717d66fa3c78a4ab /Makefile | |
parent | 646aabf327f423ab7e5d66b7982c6e9942a8897c (diff) |
Bring back debug makefile target
This seems to have been dropped by mistake
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -106,6 +106,10 @@ bcachefs: $(filter-out ./tests/%.o, $(OBJS)) MOUNT_SRCS=$(shell find mount/src -type f -iname '*.rs') \ mount/Cargo.toml mount/Cargo.lock mount/build.rs + +debug: CFLAGS+=-Werror -DCONFIG_BCACHEFS_DEBUG=y -DCONFIG_VALGRIND=y +debug: bcachefs + libbcachefs_mount.a: $(MOUNT_SRCS) LIBBCACHEFS_INCLUDE=$(CURDIR) cargo build --manifest-path mount/Cargo.toml --release cp mount/target/release/libbcachefs_mount.a $@ |