summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/Makefile12
-rwxr-xr-xtools/configure13
2 files changed, 23 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index af9c813cad..75b9fbafb3 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -22,6 +22,10 @@ ifdef ENABLEDPLUGINS
22ROCKS=rocks 22ROCKS=rocks
23endif 23endif
24 24
25ifdef SOFTWARECODECS
26CODECS=build-codecs
27endif
28
25SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) 29SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
26DIRS = . 30DIRS = .
27 31
@@ -41,13 +45,16 @@ MAXINFILE = $(OBJDIR)/romstart.temp
41MAXOUTFILE = $(OBJDIR)/romstart 45MAXOUTFILE = $(OBJDIR)/romstart
42 46
43ifdef DEBUG 47ifdef DEBUG
44all: $(OBJDIR)/rockbox.elf $(ROCKS) 48all: $(OBJDIR)/rockbox.elf $(CODECS) $(ROCKS)
45else 49else
46all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(ROCKS) $(ARCHOSROM) 50all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM)
47endif 51endif
48 52
49dep: $(DEPFILE) 53dep: $(DEPFILE)
50 54
55build-codecs:
56 @$(MAKE) -C codecs
57
51rocks: 58rocks:
52 @$(MAKE) -C plugins/lib 59 @$(MAKE) -C plugins/lib
53 @$(MAKE) -C plugins 60 @$(MAKE) -C plugins
@@ -151,6 +158,7 @@ clean:
151 $(LINKROM) $(OBJDIR)/rombox.ucl $(OBJDIR)/rombox.bin \ 158 $(LINKROM) $(OBJDIR)/rombox.ucl $(OBJDIR)/rombox.bin \
152 $(OBJDIR)/rombox.elf $(MAXOUTFILE) $(DEPFILE) 159 $(OBJDIR)/rombox.elf $(MAXOUTFILE) $(DEPFILE)
153 @$(MAKE) -C plugins clean 160 @$(MAKE) -C plugins clean
161 @$(MAKE) -C codecs clean
154 @rm -rf $(OBJDIR)/recorder $(OBJDIR)/player 162 @rm -rf $(OBJDIR)/recorder $(OBJDIR)/player
155 163
156-include $(DEPFILE) 164-include $(DEPFILE)
diff --git a/tools/configure b/tools/configure
index 48d54f0bc2..ac007716bd 100755
--- a/tools/configure
+++ b/tools/configure
@@ -107,6 +107,7 @@ sed > Makefile \
107 -e "s,@LANGUAGE@,${language},g" \ 107 -e "s,@LANGUAGE@,${language},g" \
108 -e "s,@TARGET@,${target},g" \ 108 -e "s,@TARGET@,${target},g" \
109 -e "s,@PLUGINS@,${plugins},g" \ 109 -e "s,@PLUGINS@,${plugins},g" \
110 -e "s,@CODECS@,${codecs},g" \
110 -e "s,@SIMVER@,${simver},g" \ 111 -e "s,@SIMVER@,${simver},g" \
111 -e "s,@MEMORY@,${memory},g" \ 112 -e "s,@MEMORY@,${memory},g" \
112<<EOF 113<<EOF
@@ -128,6 +129,7 @@ export TARGET=@TARGET@
128export LANGUAGE=@LANGUAGE@ 129export LANGUAGE=@LANGUAGE@
129export VERSION=\$(shell date +%y%m%d-%H%M) 130export VERSION=\$(shell date +%y%m%d-%H%M)
130export ENABLEDPLUGINS=@PLUGINS@ 131export ENABLEDPLUGINS=@PLUGINS@
132export SOFTWARECODECS=@CODECS@
131export MEMORYSIZE=@MEMORY@ 133export MEMORYSIZE=@MEMORY@
132 134
133.PHONY: 135.PHONY:
@@ -312,6 +314,7 @@ if [ -z "$archos" ]; then
312 archosrom="$pwd/rombox.ucl" 314 archosrom="$pwd/rombox.ucl"
313 flash="$pwd/rockbox.ucl" 315 flash="$pwd/rockbox.ucl"
314 plugins="yes" 316 plugins="yes"
317 codecs=""
315 ;; 318 ;;
316 319
317 3) 320 3)
@@ -324,6 +327,7 @@ if [ -z "$archos" ]; then
324 archosrom="" 327 archosrom=""
325 flash="$pwd/rockbox.ucl" 328 flash="$pwd/rockbox.ucl"
326 plugins="yes" 329 plugins="yes"
330 codecs=""
327 ;; 331 ;;
328 332
329 4) 333 4)
@@ -336,6 +340,7 @@ if [ -z "$archos" ]; then
336 archosrom="$pwd/rombox.ucl" 340 archosrom="$pwd/rombox.ucl"
337 flash="$pwd/rockbox.ucl" 341 flash="$pwd/rockbox.ucl"
338 plugins="yes" 342 plugins="yes"
343 codecs=""
339 ;; 344 ;;
340 345
341 5) 346 5)
@@ -349,6 +354,7 @@ if [ -z "$archos" ]; then
349 archosrom="" 354 archosrom=""
350 flash="" 355 flash=""
351 plugins="" # disabled for now, enable later on 356 plugins="" # disabled for now, enable later on
357 codecs=""
352 ;; 358 ;;
353 359
354 6) 360 6)
@@ -362,6 +368,7 @@ if [ -z "$archos" ]; then
362 archosrom="" 368 archosrom=""
363 flash="" 369 flash=""
364 plugins="" # disabled for now, enable later on 370 plugins="" # disabled for now, enable later on
371 codecs=""
365 ;; 372 ;;
366 373
367 7) 374 7)
@@ -374,6 +381,7 @@ if [ -z "$archos" ]; then
374 archosrom="$pwd/rombox.ucl" 381 archosrom="$pwd/rombox.ucl"
375 flash="$pwd/rockbox.ucl" 382 flash="$pwd/rockbox.ucl"
376 plugins="yes" 383 plugins="yes"
384 codecs=""
377 ;; 385 ;;
378 386
379 8) 387 8)
@@ -386,6 +394,7 @@ if [ -z "$archos" ]; then
386 archosrom="$pwd/rombox.ucl" 394 archosrom="$pwd/rombox.ucl"
387 flash="$pwd/rockbox.ucl" 395 flash="$pwd/rockbox.ucl"
388 plugins="yes" 396 plugins="yes"
397 codecs=""
389 ;; 398 ;;
390 399
391 9) 400 9)
@@ -399,6 +408,7 @@ if [ -z "$archos" ]; then
399 archosrom="" 408 archosrom=""
400 flash="" 409 flash=""
401 plugins="yes" 410 plugins="yes"
411 codecs="yes"
402 ;; 412 ;;
403 413
404 *) 414 *)
@@ -411,6 +421,7 @@ if [ -z "$archos" ]; then
411 archosrom="$pwd/rombox.ucl" 421 archosrom="$pwd/rombox.ucl"
412 flash="$pwd/rockbox.ucl" 422 flash="$pwd/rockbox.ucl"
413 plugins="yes" 423 plugins="yes"
424 codecs=""
414 ;; 425 ;;
415 426
416 esac 427 esac
@@ -518,6 +529,7 @@ sed > Makefile \
518 -e "s,@ARCHOSROM@,${archosrom},g" \ 529 -e "s,@ARCHOSROM@,${archosrom},g" \
519 -e "s,@FLASHFILE@,${flash},g" \ 530 -e "s,@FLASHFILE@,${flash},g" \
520 -e "s,@PLUGINS@,${plugins},g" \ 531 -e "s,@PLUGINS@,${plugins},g" \
532 -e "s,@CODECS@,${codecs},g" \
521 -e "s,@GCCOPTS@,${GCCOPTS},g" \ 533 -e "s,@GCCOPTS@,${GCCOPTS},g" \
522 -e "s,@LOADADDRESS@,${loadaddress},g" \ 534 -e "s,@LOADADDRESS@,${loadaddress},g" \
523 -e "s,@EXTRADEF@,${extradefines},g" \ 535 -e "s,@EXTRADEF@,${extradefines},g" \
@@ -543,6 +555,7 @@ export MKFIRMWARE=@TOOL@
543export BINARY=@OUTPUT@ 555export BINARY=@OUTPUT@
544export APPEXTRA=@APPEXTRA@ 556export APPEXTRA=@APPEXTRA@
545export ENABLEDPLUGINS=@PLUGINS@ 557export ENABLEDPLUGINS=@PLUGINS@
558export SOFTWARECODECS=@CODECS@
546export EXTRA_DEFINES=@EXTRADEF@ 559export EXTRA_DEFINES=@EXTRADEF@
547export CC=@CC@ 560export CC=@CC@
548export LD=@LD@ 561export LD=@LD@