diff options
-rw-r--r-- | firmware/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 98d4641651..066097aa83 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -19,6 +19,11 @@ TOOLSDIR = ../tools | |||
19 | 19 | ||
20 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} | 20 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} |
21 | 21 | ||
22 | ifndef MEM | ||
23 | # if MEM is not set, assume 2MB | ||
24 | MEM=2 | ||
25 | endif | ||
26 | |||
22 | ifdef DEBUG | 27 | ifdef DEBUG |
23 | CFLAGS += -g -DDEBUG | 28 | CFLAGS += -g -DDEBUG |
24 | else | 29 | else |