summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index bcdc1ef265..4f80e045b7 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -43,6 +43,8 @@ MAXOUTFILE = $(OBJDIR)/romstart
43ifdef SIMVER 43ifdef SIMVER
44# this is a sim build 44# this is a sim build
45all: $(OBJDIR)/$(BINARY) $(CODECS) $(ROCKS) 45all: $(OBJDIR)/$(BINARY) $(CODECS) $(ROCKS)
46 @$(MAKE) -C $(SIMDIR)
47 @$(MAKE) -C $(ROOTDIR)/uisimulator/common
46else 48else
47# regular target build 49# regular target build
48all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) 50all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM)
@@ -101,12 +103,22 @@ $(OBJDIR)/$(BINARY) : $(OBJDIR)/rockbox.bin
101 103
102else 104else
103# this is a simulator build 105# this is a simulator build
104$(OBJDIR)/$(BINARY) : $(OBJS) $(OBJDIR)/librockbox.a $(DEPFILE) $(OBJDIR)/libsim.a 106
107ifeq ($(SIMVER), win32)
108# OK, this is ugly but we need it on the link line to make it do right
109EXTRAOBJ = $(OBJDIR)/uisw32-res.o
110endif
111
112
113$(OBJDIR)/$(BINARY) : $(OBJS) $(OBJDIR)/librockbox.a $(DEPFILE) $(OBJDIR)/libsim.a $(OBJDIR)/libcomsim.a
105 @echo "LD $(BINARY)" 114 @echo "LD $(BINARY)"
106 $(CC) $(GCCOPTS) -o $@ $(OBJS) $(LDOPTS) -L$(OBJDIR) -lrockbox -lsim -Wl,-Map,$(OBJDIR)/rockbox.map 115 $(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lsim -lcomsim $(LDOPTS) $(EXTRAOBJ) -Wl,-Map,$(OBJDIR)/rockbox.map
107 116
108$(OBJDIR)/libsim.a: 117$(OBJDIR)/libsim.a:
109 @$(MAKE) -C $(SIMDIR) 118 @$(MAKE) -C $(SIMDIR)
119
120$(OBJDIR)/libcomsim.a:
121 @$(MAKE) -C $(ROOTDIR)/uisimulator/common
110endif 122endif
111 123
112$(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin 124$(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin