summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile33
1 files changed, 8 insertions, 25 deletions
diff --git a/apps/Makefile b/apps/Makefile
index aa565382c8..4fa225033b 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -129,34 +129,17 @@ $(BUILDDIR)/$(BINARY) : $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \
129endif 129endif
130 130
131$(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin 131$(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin
132 @a=`uclpack -h 2>/dev/null`; \ 132 $(SILENT)(echo "UCLPACK rockbox" ; \
133 if test -n "$$a"; then \ 133 $(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;)
134 echo "UCLPACK rockbox" ; \
135 uclpack --best --2e $< $@ >/dev/null 2>&1; \
136 else \
137 echo "no uclpack command found, makes a fake rockbox.ucl"; \
138 echo "fake" > $@; \
139 fi
140 134
141$(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE) 135$(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE)
142 @a=`uclpack -h 2>/dev/null`; \ 136 $(SILENT)(echo "UCLPACK rombox" ; \
143 if test -n "$$a"; then \ 137 $(TOOLSDIR)/uclpack --none $< $@ >/dev/null 2>&1; \
144 echo "UCLPACK rombox" ; \ 138 perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \
145 uclpack --none $< $@ >/dev/null 2>&1; \ 139 if test $$? -ne 0; then \
146 if test -s $@; then \ 140 echo "removing UCL file again, making it a fake one"; \
147 perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \
148 if test $$? -ne 0; then \
149 echo "removing UCL file again, making it a fake one"; \
150 echo "fake" > $@; \
151 fi \
152 else \
153 echo "Your uclpack seems to not support --none, making a fake ucl"; \
154 echo "fake" > $@; \
155 fi \
156 else \
157 echo "no uclpack command found, makes a fake rombox.ucl"; \
158 echo "fake" > $@; \ 141 echo "fake" > $@; \
159 fi 142 fi)
160 143
161include $(TOOLSDIR)/make.inc 144include $(TOOLSDIR)/make.inc
162 145