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.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/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 |