summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-16 00:25:25 +0000
committerDave Chapman <dave@dchapman.com>2005-02-16 00:25:25 +0000
commitd97bd1e66113d6e180b5fb41e0c7194e64295c12 (patch)
treedc5245dead503f701ea6d2243405ef174738c00a /apps
parent4601ce6bfff6bdab3f3f171ed1db07da9df27d56 (diff)
Initial Makefile to build the codec code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5963 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/codecs/Makefile b/apps/codecs/Makefile
new file mode 100644
index 0000000000..ff9db88436
--- /dev/null
+++ b/apps/codecs/Makefile
@@ -0,0 +1,31 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id$
+#
+
+INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
+ -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
+CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
+ -DMEM=${MEMORYSIZE}
+
+ifdef APPEXTRA
+ INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+endif
+
+all: $(OBJDIR)/libmad.a
+
+include $(TOOLSDIR)/make.inc
+
+$(OBJDIR)/libmad.a:
+ @echo "MAKE in libmad"
+ @mkdir -p $(OBJDIR)/libmad
+ @$(MAKE) -C libmad TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE}
+
+clean:
+ @echo "cleaning codecs"
+ @rm -fr $(OBJDIR)/libmad
+ @$(MAKE) -C libmad clean