summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index af9c813..75b9fba 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -22,6 +22,10 @@ ifdef ENABLEDPLUGINS
ROCKS=rocks
endif
+ifdef SOFTWARECODECS
+CODECS=build-codecs
+endif
+
SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
DIRS = .
@@ -41,13 +45,16 @@ MAXINFILE = $(OBJDIR)/romstart.temp
MAXOUTFILE = $(OBJDIR)/romstart
ifdef DEBUG
-all: $(OBJDIR)/rockbox.elf $(ROCKS)
+all: $(OBJDIR)/rockbox.elf $(CODECS) $(ROCKS)
else
-all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(ROCKS) $(ARCHOSROM)
+all: $(OBJDIR)/$(BINARY) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM)
endif
dep: $(DEPFILE)
+build-codecs:
+ @$(MAKE) -C codecs
+
rocks:
@$(MAKE) -C plugins/lib
@$(MAKE) -C plugins
@@ -151,6 +158,7 @@ clean:
$(LINKROM) $(OBJDIR)/rombox.ucl $(OBJDIR)/rombox.bin \
$(OBJDIR)/rombox.elf $(MAXOUTFILE) $(DEPFILE)
@$(MAKE) -C plugins clean
+ @$(MAKE) -C codecs clean
@rm -rf $(OBJDIR)/recorder $(OBJDIR)/player
-include $(DEPFILE)