diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile index 764544b38b..77df0e7db8 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -39,6 +39,10 @@ ifndef MEM | |||
39 | MEM=2 | 39 | MEM=2 |
40 | endif | 40 | endif |
41 | 41 | ||
42 | ifdef ARCHOS_ROM | ||
43 | ROMBUILD=-DARCHOS_ROM | ||
44 | endif | ||
45 | |||
42 | LDS := $(FIRMWARE)/app.lds | 46 | LDS := $(FIRMWARE)/app.lds |
43 | 47 | ||
44 | ifdef DEBUG | 48 | ifdef DEBUG |
@@ -106,7 +110,7 @@ $(OBJDIR)/librockbox.a: | |||
106 | # MEM should be passed on to this makefile with the chosen memory size given | 110 | # MEM should be passed on to this makefile with the chosen memory size given |
107 | # in number of MB | 111 | # in number of MB |
108 | $(LINKFILE): $(LDS) | 112 | $(LINKFILE): $(LDS) |
109 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ | 113 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ |
110 | 114 | ||
111 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a | 115 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a |
112 | $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map | 116 | $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map |