From: Kent Overstreet Date: Fri, 23 Jul 2021 22:06:02 +0000 (-0400) Subject: Bring back debug makefile target X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=632feaa69a08069856cf5d0bc064d152cd161646;p=bcachefs-tools-debian Bring back debug makefile target This seems to have been dropped by mistake Signed-off-by: Kent Overstreet --- diff --git a/Makefile b/Makefile index c448bbb..6dcbc06 100644 --- a/Makefile +++ b/Makefile @@ -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 $@