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 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)