diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile index 53a0d373bb..6214ce138b 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -164,12 +164,17 @@ EXTRAOBJ = $(BUILDDIR)/sim/uisw32-res.o | |||
164 | LDOPTS += -lwinmm | 164 | LDOPTS += -lwinmm |
165 | endif | 165 | endif |
166 | 166 | ||
167 | # OS X's ld does not support -Map | ||
168 | ifeq ($(UNAME), Darwin) | ||
169 | SIMULATOR_MAP= | ||
170 | else | ||
171 | SIMULATOR_MAP=-Wl,-Map,$(OBJDIR)/rockbox.map | ||
172 | endif | ||
167 | 173 | ||
168 | $(BUILDDIR)/$(BINARY) : $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \ | 174 | $(BUILDDIR)/$(BINARY) : $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \ |
169 | $(BUILDDIR)/libcomsim.a $(LIBROCKBOX) $(BITMAPLIBS) | 175 | $(BUILDDIR)/libcomsim.a $(LIBROCKBOX) $(BITMAPLIBS) |
170 | @echo "LD $(BINARY)" | 176 | @echo "LD $(BINARY)" |
171 | $(SILENT)$(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lsim -lcomsim $(LINKBITMAPS) $(LDOPTS) $(EXTRAOBJ) -Wl,-Map,$(OBJDIR)/rockbox.map | 177 | $(SILENT)$(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lsim -lcomsim $(LINKBITMAPS) $(LDOPTS) $(EXTRAOBJ) $(SIMULATOR_MAP) |
172 | |||
173 | endif | 178 | endif |
174 | 179 | ||
175 | $(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin | 180 | $(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin |