diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
| commit | 22b7701fe75cce9afdbc27046821dc089f9e7dac (patch) | |
| tree | ca5b4f0428fad0fc9c775dfb0ac879ddee863846 /apps/Makefile | |
| parent | 376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff) | |
| download | rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.bz2 rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.xz | |
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
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 bcdc1ef..4f80e04 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -43,6 +43,8 @@ MAXOUTFILE = $(OBJDIR)/romstart ifdef SIMVER # this is a sim build all: $(OBJDIR)/$(BINARY) $(CODECS) $(ROCKS) + @$(MAKE) -C $(SIMDIR) + @$(MAKE) -C $(ROOTDIR)/uisimulator/common else # regular target build all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) @@ -101,12 +103,22 @@ $(OBJDIR)/$(BINARY) : $(OBJDIR)/rockbox.bin else # this is a simulator build -$(OBJDIR)/$(BINARY) : $(OBJS) $(OBJDIR)/librockbox.a $(DEPFILE) $(OBJDIR)/libsim.a + +ifeq ($(SIMVER), win32) +# OK, this is ugly but we need it on the link line to make it do right +EXTRAOBJ = $(OBJDIR)/uisw32-res.o +endif + + +$(OBJDIR)/$(BINARY) : $(OBJS) $(OBJDIR)/librockbox.a $(DEPFILE) $(OBJDIR)/libsim.a $(OBJDIR)/libcomsim.a @echo "LD $(BINARY)" - $(CC) $(GCCOPTS) -o $@ $(OBJS) $(LDOPTS) -L$(OBJDIR) -lrockbox -lsim -Wl,-Map,$(OBJDIR)/rockbox.map + $(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lsim -lcomsim $(LDOPTS) $(EXTRAOBJ) -Wl,-Map,$(OBJDIR)/rockbox.map $(OBJDIR)/libsim.a: @$(MAKE) -C $(SIMDIR) + +$(OBJDIR)/libcomsim.a: + @$(MAKE) -C $(ROOTDIR)/uisimulator/common endif $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin |