diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 7 |
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) | |||
23 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) | 23 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) |
24 | AFLAGS += -small -relax | 24 | AFLAGS += -small -relax |
25 | 25 | ||
26 | # Check if this is a kind of Recorder | ||
27 | ANYREC = $(findstring RECORDER, $(TARGET)) | ||
28 | |||
26 | ifdef DEBUG | 29 | ifdef DEBUG |
27 | DEFINES := -DDEBUG | 30 | DEFINES := -DDEBUG |
28 | CFLAGS += -g | 31 | CFLAGS += -g |
29 | LDS := $(FIRMWARE)/gdb.lds | 32 | LDS := $(FIRMWARE)/gdb.lds |
30 | else | 33 | else |
31 | |||
32 | # Check if this is a kind of Recorder | ||
33 | ANYREC = $(findstring RECORDER, $(TARGET)) | ||
34 | |||
35 | ifeq ($(ANYREC), RECORDER) | 34 | ifeq ($(ANYREC), RECORDER) |
36 | LDS := $(FIRMWARE)/app.lds | 35 | LDS := $(FIRMWARE)/app.lds |
37 | else | 36 | else |