diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-07-13 22:15:19 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-07-13 22:15:19 +0000 |
commit | 13d56150b6678841a67cdca5acbb484814e78ce7 (patch) | |
tree | 0b20688a008f0037301f31945fcd5ad43b946d28 /apps/plugins/Makefile | |
parent | 9cb5e0e9f94e0660682f35b7ae2d55a82f009f03 (diff) | |
download | rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.tar.gz rockbox-13d56150b6678841a67cdca5acbb484814e78ce7.zip |
Added plugin support for 8MB-modified units. This bumps the plugin API version number again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r-- | apps/plugins/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 4c02207016..dca7babcc6 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile | |||
@@ -13,9 +13,10 @@ OC = sh-elf-objcopy | |||
13 | FIRMWARE = ../../firmware | 13 | FIRMWARE = ../../firmware |
14 | 14 | ||
15 | INCLUDES = -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I.. | 15 | INCLUDES = -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I.. |
16 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) | 16 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} |
17 | 17 | ||
18 | LINKFILE = plugin.lds | 18 | LDS := plugin.lds |
19 | LINKFILE := $(OBJDIR)/pluginlink.lds | ||
19 | 20 | ||
20 | SRC := $(wildcard *.c) | 21 | SRC := $(wildcard *.c) |
21 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) | 22 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) |
@@ -41,5 +42,10 @@ $(OBJDIR)/%.o: %.c ../plugin.h Makefile | |||
41 | all: $(ROCKS) | 42 | all: $(ROCKS) |
42 | @echo done | 43 | @echo done |
43 | 44 | ||
45 | # MEM should be passed on to this makefile with the chosen memory size given | ||
46 | # in number of MB | ||
47 | $(LINKFILE): $(LDS) | ||
48 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@ | ||
49 | |||
44 | clean: | 50 | clean: |
45 | -rm -f $(ROCKS) | 51 | -rm -f $(ROCKS) |