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
This commit is contained in:
parent
c1f6d586b2
commit
572ced56cf
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue