From 4846ce8654a4f0a857718905882420aa2ced54e9 Mon Sep 17 00:00:00 2001 From: Uwe Freese Date: Mon, 3 Mar 2003 13:17:49 +0000 Subject: export MEM variable in firmware and apps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3371 a1c6a512-1295-4272-9138-f99709370657 --- apps/Makefile | 2 +- firmware/Makefile | 2 +- tools/configure | 2 +- 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) -- cgit v1.1