From 975e240a0c1da0738b443b6964fb2150448754e3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Mar 2003 05:49:53 +0000 Subject: if MEM is not set, set it to 2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3377 a1c6a512-1295-4272-9138-f99709370657 --- firmware/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/Makefile b/firmware/Makefile index 98d4641651..066097aa83 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -19,6 +19,11 @@ TOOLSDIR = ../tools CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} +ifndef MEM + # if MEM is not set, assume 2MB + MEM=2 +endif + ifdef DEBUG CFLAGS += -g -DDEBUG else -- cgit v1.2.3