From a89053c637cdbcb2c4ce93acae9dd32e429d8d21 Mon Sep 17 00:00:00 2001 From: Charles Papon Date: Tue, 17 Mar 2020 00:03:22 +0100 Subject: [PATCH] Better makefile yes/no --- software/standalone/common/riscv64-unknown-elf.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/software/standalone/common/riscv64-unknown-elf.mk b/software/standalone/common/riscv64-unknown-elf.mk index f6928eb97..d4a8ede38 100644 --- a/software/standalone/common/riscv64-unknown-elf.mk +++ b/software/standalone/common/riscv64-unknown-elf.mk @@ -24,15 +24,15 @@ endif ifeq ($(DEBUG),yes) -ifeq ($(DEBUG_Og),no) +ifneq ($(DEBUG_Og),yes) CFLAGS += -g3 -O0 else CFLAGS += -g3 -Og endif endif -ifeq ($(DEBUG),no) -ifeq ($(BENCH),no) +ifneq ($(DEBUG),yes) +ifneq ($(BENCH),yes) CFLAGS += -Os else CFLAGS += -O3