From 5b2d874a361663dd17413b8bcf2439fc0f8716d8 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 16 Feb 2005 00:38:31 +0000 Subject: Incorporate apps/codecs into the build system based on SOFTWARECODECS configuration variable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5964 a1c6a512-1295-4272-9138-f99709370657 --- apps/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/Makefile b/apps/Makefile index af9c813cad..75b9fbafb3 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) -- cgit v1.2.3