diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 16 |
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 | |||
43 | ifdef SIMVER | 43 | ifdef SIMVER |
44 | # this is a sim build | 44 | # this is a sim build |
45 | all: $(OBJDIR)/$(BINARY) $(CODECS) $(ROCKS) | 45 | all: $(OBJDIR)/$(BINARY) $(CODECS) $(ROCKS) |
46 | @$(MAKE) -C $(SIMDIR) | ||
47 | @$(MAKE) -C $(ROOTDIR)/uisimulator/common | ||
46 | else | 48 | else |
47 | # regular target build | 49 | # regular target build |
48 | all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) | 50 | all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) |
@@ -101,12 +103,22 @@ $(OBJDIR)/$(BINARY) : $(OBJDIR)/rockbox.bin | |||
101 | 103 | ||
102 | else | 104 | else |
103 | # this is a simulator build | 105 | # this is a simulator build |
104 | $(OBJDIR)/$(BINARY) : $(OBJS) $(OBJDIR)/librockbox.a $(DEPFILE) $(OBJDIR)/libsim.a | 106 | |
107 | ifeq ($(SIMVER), win32) | ||
108 | # OK, this is ugly but we need it on the link line to make it do right | ||
109 | EXTRAOBJ = $(OBJDIR)/uisw32-res.o | ||
110 | endif | ||
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 | ||
110 | endif | 122 | endif |
111 | 123 | ||
112 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin | 124 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin |