summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Freese <thebreaker@rockbox.org>2003-03-03 13:17:49 +0000
committerUwe Freese <thebreaker@rockbox.org>2003-03-03 13:17:49 +0000
commit4846ce8654a4f0a857718905882420aa2ced54e9 (patch)
tree966e6eee1747b6d1ab5078eb427979275cb90240
parent62fe3a6d59a67d3b6f05fe8941d8dedb7b271fed (diff)
downloadrockbox-4846ce8654a4f0a857718905882420aa2ced54e9.zip
rockbox-4846ce8654a4f0a857718905882420aa2ced54e9.tar.gz
rockbox-4846ce8654a4f0a857718905882420aa2ced54e9.tar.bz2
rockbox-4846ce8654a4f0a857718905882420aa2ced54e9.tar.xz
export MEM variable in firmware and apps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3371 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/Makefile2
-rw-r--r--firmware/Makefile2
-rwxr-xr-xtools/configure2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile
index dfd1ae2..c3fc170 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -20,7 +20,7 @@ DOCSDIR := ../docs
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)
+CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEM}
AFLAGS += -small -relax
# Check if this is a kind of Recorder
diff --git a/firmware/Makefile b/firmware/Makefile
index 5f637bb..98d4641 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -17,7 +17,7 @@ INCLUDES=-Iinclude -I. -Iexport -Icommon -Idrivers
TOOLSDIR = ../tools
-CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
+CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM}
ifdef DEBUG
CFLAGS += -g -DDEBUG
diff --git a/tools/configure b/tools/configure
index 23050e8..e3f678a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -424,7 +424,7 @@ EXTRA_DEFINES=@EXTRA_DEFINES@
all: firmware apps
firmware:
- \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_DEFINES="\$(EXTRA_DEFINES)"
+ \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_DEFINES="\$(EXTRA_DEFINES)" MEM=\$(MEMORYSIZE)
apps:
\$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) LANGUAGE=\$(LANGUAGE) EXTRA_DEFINES="\$(EXTRA_DEFINES)" MEM=\$(MEMORYSIZE)