From cfca505e1029b5b83337008bb79a9b673fd6c8c9 Mon Sep 17 00:00:00 2001 From: Francisco Gil Date: Thu, 30 Nov 2017 10:46:26 +0100 Subject: [PATCH] debug: changes in the makefile to reduce the optimization level. We need to reduce the optimization level in order to be able to perform a debugging of the applications, without this there is an strange behaviour while debugging. Signed-off-by: Francisco Gil --- apix-adc-example/Makefile | 2 +- apix-gpio-example/Makefile | 2 +- apix-i2c-example/Makefile | 2 +- apix-pwm-example/Makefile | 2 +- apix-spi-example/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apix-adc-example/Makefile b/apix-adc-example/Makefile index 65d07d1..108e6b9 100644 --- a/apix-adc-example/Makefile +++ b/apix-adc-example/Makefile @@ -16,7 +16,7 @@ BINARY := apix-adc-example -CFLAGS += -Wall -O2 +CFLAGS += -Wall -O0 CFLAGS += $(shell pkg-config --cflags libdigiapix) LDLIBS += $(shell pkg-config --libs libdigiapix) diff --git a/apix-gpio-example/Makefile b/apix-gpio-example/Makefile index 8481a67..f392232 100644 --- a/apix-gpio-example/Makefile +++ b/apix-gpio-example/Makefile @@ -16,7 +16,7 @@ BINARY := apix-gpio-example -CFLAGS += -Wall -O2 +CFLAGS += -Wall -O0 CFLAGS += $(shell pkg-config --cflags libdigiapix) LDLIBS += $(shell pkg-config --libs libdigiapix) diff --git a/apix-i2c-example/Makefile b/apix-i2c-example/Makefile index 231c6c9..87f5dd7 100644 --- a/apix-i2c-example/Makefile +++ b/apix-i2c-example/Makefile @@ -16,7 +16,7 @@ BINARY := apix-i2c-example -CFLAGS += -Wall -O2 +CFLAGS += -Wall -O0 CFLAGS += $(shell pkg-config --cflags libdigiapix) LDLIBS += $(shell pkg-config --libs libdigiapix) diff --git a/apix-pwm-example/Makefile b/apix-pwm-example/Makefile index 52c2773..02711d4 100644 --- a/apix-pwm-example/Makefile +++ b/apix-pwm-example/Makefile @@ -16,7 +16,7 @@ BINARY := apix-pwm-example -CFLAGS += -Wall -O2 +CFLAGS += -Wall -O0 CFLAGS += $(shell pkg-config --cflags libdigiapix) LDLIBS += $(shell pkg-config --libs libdigiapix) diff --git a/apix-spi-example/Makefile b/apix-spi-example/Makefile index 5e43743..54851eb 100644 --- a/apix-spi-example/Makefile +++ b/apix-spi-example/Makefile @@ -16,7 +16,7 @@ BINARY := apix-spi-example -CFLAGS += -Wall -O2 +CFLAGS += -Wall -O0 CFLAGS += $(shell pkg-config --cflags libdigiapix) LDLIBS += $(shell pkg-config --libs libdigiapix)