From 3921dc2bf88e892f2a082b2c94219644b820845d Mon Sep 17 00:00:00 2001 From: Sala Leonardo Date: Tue, 18 Nov 2014 10:50:38 +0100 Subject: [PATCH] added DEBUG flags added REST, DEBUG description in make help --- Makefile | 5 +++++ Makefile.include | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d454c2d49..d757ffc56 100644 --- a/Makefile +++ b/Makefile @@ -173,6 +173,11 @@ help: @echo "make help lists possible targets" @echo "" @echo "" + @echo "Makefile variables" + @echo "REST=yes compile REST-aware Receiver (POCO and JsonBox libraries required)" + @echo "DEBUG=1,2 set debug level to 1 (VERBOSE) or 2 (VERYVERBOSE)" + @echo "" + @echo "" @echo "Variables - to change them run :" @echo "INSTALLROOT=: installation root di r, default $PWD" @echo "BINDIR=: binary installation dir below INSTALLROOT, default bin" diff --git a/Makefile.include b/Makefile.include index 8e91baa09..851afdd9b 100644 --- a/Makefile.include +++ b/Makefile.include @@ -7,7 +7,16 @@ CXX = $(CC) ASM=$(shell echo "/lib/modules/`uname -r`/build/include") LDFLAGDET = -L$(LIBDIR) -lSlsDetector -L/usr/lib64/ -lpthread LDFLAGRXR = -L$(LIBDIR) -lSlsReceiver -L/usr/lib64/ -lpthread -FLAGS= -Wall -DVERBOSE +FLAGS= -Wall +# -DVERBOSE + +# Setting up the verbose flags +ifeq ($(DEBUG),1) + FLAGS = -Wall -DVERBOSE +endif +ifeq ($(DEBUG),2) + FLAGS = -Wall -DVERYVERBOSE +endif ############################################################## # EigerSLS specific. Set this to yes, if you want to compile