diff options
-rw-r--r-- | apps/Makefile | 12 | ||||
-rwxr-xr-x | tools/configure | 13 |
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 | |||
22 | ROCKS=rocks | 22 | ROCKS=rocks |
23 | endif | 23 | endif |
24 | 24 | ||
25 | ifdef SOFTWARECODECS | ||
26 | CODECS=build-codecs | ||
27 | endif | ||
28 | |||
25 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) | 29 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) |
26 | DIRS = . | 30 | DIRS = . |
27 | 31 | ||
@@ -41,13 +45,16 @@ MAXINFILE = $(OBJDIR)/romstart.temp | |||
41 | MAXOUTFILE = $(OBJDIR)/romstart | 45 | MAXOUTFILE = $(OBJDIR)/romstart |
42 | 46 | ||
43 | ifdef DEBUG | 47 | ifdef DEBUG |
44 | all: $(OBJDIR)/rockbox.elf $(ROCKS) | 48 | all: $(OBJDIR)/rockbox.elf $(CODECS) $(ROCKS) |
45 | else | 49 | else |
46 | all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(ROCKS) $(ARCHOSROM) | 50 | all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) |
47 | endif | 51 | endif |
48 | 52 | ||
49 | dep: $(DEPFILE) | 53 | dep: $(DEPFILE) |
50 | 54 | ||
55 | build-codecs: | ||
56 | @$(MAKE) -C codecs | ||
57 | |||
51 | rocks: | 58 | rocks: |
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@ | |||
128 | export LANGUAGE=@LANGUAGE@ | 129 | export LANGUAGE=@LANGUAGE@ |
129 | export VERSION=\$(shell date +%y%m%d-%H%M) | 130 | export VERSION=\$(shell date +%y%m%d-%H%M) |
130 | export ENABLEDPLUGINS=@PLUGINS@ | 131 | export ENABLEDPLUGINS=@PLUGINS@ |
132 | export SOFTWARECODECS=@CODECS@ | ||
131 | export MEMORYSIZE=@MEMORY@ | 133 | export 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@ | |||
543 | export BINARY=@OUTPUT@ | 555 | export BINARY=@OUTPUT@ |
544 | export APPEXTRA=@APPEXTRA@ | 556 | export APPEXTRA=@APPEXTRA@ |
545 | export ENABLEDPLUGINS=@PLUGINS@ | 557 | export ENABLEDPLUGINS=@PLUGINS@ |
558 | export SOFTWARECODECS=@CODECS@ | ||
546 | export EXTRA_DEFINES=@EXTRADEF@ | 559 | export EXTRA_DEFINES=@EXTRADEF@ |
547 | export CC=@CC@ | 560 | export CC=@CC@ |
548 | export LD=@LD@ | 561 | export LD=@LD@ |