diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 19:04:49 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 19:04:49 +0000 |
| commit | f209eb9a8362e5194602f305b3e882c27c6de55e (patch) | |
| tree | 9a7ec15fd26afca49064bb8b009774d8a10341be | |
| parent | d659282f6d5a86cc5a7b1e9310417267f2a198d8 (diff) | |
| download | rockbox-f209eb9a8362e5194602f305b3e882c27c6de55e.zip rockbox-f209eb9a8362e5194602f305b3e882c27c6de55e.tar.gz rockbox-f209eb9a8362e5194602f305b3e882c27c6de55e.tar.bz2 rockbox-f209eb9a8362e5194602f305b3e882c27c6de55e.tar.xz | |
Prepared for ROM builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4938 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile index 764544b..77df0e7 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -39,6 +39,10 @@ ifndef MEM MEM=2 endif +ifdef ARCHOS_ROM + ROMBUILD=-DARCHOS_ROM +endif + LDS := $(FIRMWARE)/app.lds ifdef DEBUG @@ -106,7 +110,7 @@ $(OBJDIR)/librockbox.a: # MEM should be passed on to this makefile with the chosen memory size given # in number of MB $(LINKFILE): $(LDS) - cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ + cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map |