summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-02-18 08:45:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-02-18 08:45:41 +0000
commit572ced56cf4a0b2e00153882ccf1c13aac1f760e (patch)
tree440908506f797085691fe2caedd988a4de052e22 /apps
parentc1f6d586b2ca83c1de4fd1921b4edd292c86dc8d (diff)
downloadrockbox-572ced56cf4a0b2e00153882ccf1c13aac1f760e.tar.gz
rockbox-572ced56cf4a0b2e00153882ccf1c13aac1f760e.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/Makefile7
1 files 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