[lockdev-devel] [PATCH 13/19] allow to simply run make DEBUG=x

Ludwig Nussel ludwig.nussel at suse.de
Thu Feb 25 10:02:10 UTC 2010


---
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 655aa27..01288bf 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,9 @@ CFLAGS	= -g -O2 -Wall -pipe -fPIC
 LCFLAGS	= ${CFLAGS} -D_REENTRANT
 LDLIBS	= -llockdev
 CPPFLAGS = -I$(srcdir)/src
+ifneq (${DEBUG},)
+CPPFLAGS += -DDEBUG=${DEBUG}
+endif
 
 .PHONY: shared static perl-lib
 ALL:	shared static lockdev perl-lib
-- 
1.6.4.2




More information about the lockdev-devel mailing list