summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
commit22b7701fe75cce9afdbc27046821dc089f9e7dac (patch)
treeca5b4f0428fad0fc9c775dfb0ac879ddee863846 /apps/Makefile
parent376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff)
downloadrockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz
rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip
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/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