From 3c26ecd473a2ce604e4b01bbda888a18d3b9bf8d Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 Mar 2024 18:06:55 +0100 Subject: [PATCH] Fix DEBUG flag check in example plugin --- plugins/example_plugin/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/example_plugin/Makefile b/plugins/example_plugin/Makefile index c84c3ef..7f0f0f4 100644 --- a/plugins/example_plugin/Makefile +++ b/plugins/example_plugin/Makefile @@ -37,6 +37,16 @@ CXXFLAGS := $(CFLAGS) ASFLAGS := -g $(ARCH) LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) $(WUPSSPECS) +ifeq ($(DEBUG),1) +CXXFLAGS += -DDEBUG -g +CFLAGS += -DDEBUG -g +endif + +ifeq ($(DEBUG),VERBOSE) +CXXFLAGS += -DDEBUG -DVERBOSE_DEBUG -g +CFLAGS += -DDEBUG -DVERBOSE_DEBUG -g +endif + LIBS := -lwups -lwut #-------------------------------------------------------------------------------