From 572ced56cf4a0b2e00153882ccf1c13aac1f760e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 18 Feb 2003 08:45:41 +0000 Subject: [PATCH] Assign ANYREC before checking if this is a DEBUG build or not, without this the FM rec debug build fails miserably. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3292 a1c6a512-1295-4272-9138-f99709370657 --- apps/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/Makefile b/apps/Makefile index 648bdf992e..f033ef3119 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -23,15 +23,14 @@ INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I. -I$(OBJDIR) CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) AFLAGS += -small -relax +# Check if this is a kind of Recorder +ANYREC = $(findstring RECORDER, $(TARGET)) + ifdef DEBUG DEFINES := -DDEBUG CFLAGS += -g LDS := $(FIRMWARE)/gdb.lds else - -# Check if this is a kind of Recorder -ANYREC = $(findstring RECORDER, $(TARGET)) - ifeq ($(ANYREC), RECORDER) LDS := $(FIRMWARE)/app.lds else