This allows you to do make DEBUG=0 which changes CFLAGS from -Wall -Wno-nonnull -O2 to -Wall -Wno-nonnull -O0 -g Signed-off-by: John Kacur <jkacur@xxxxxxxxxx> --- Makefile | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 96c7bca..7414a68 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,19 @@ VERSION_STRING = 0.53 TARGETS = cyclictest signaltest classic_pi pi_stress \ hwlatdetect rt-migrate-test -CFLAGS = -Wall -Wno-nonnull -O2 LIBS = -lpthread -lrt DESTDIR ?= prefix ?= /usr/local bindir ?= $(prefix)/bin mandir ?= $(prefix)/share/man/man8 +CFLAGS = -Wall -Wno-nonnull +ifndef DEBUG + CFLAGS += -O2 +else + CFLAGS += -O0 -g +endif + .PHONY: all all: $(TARGETS) -- 1.6.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html