summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/Makefile
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2005-02-17 09:08:18 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2005-02-17 09:08:18 +0000
commit99d2599b79649fd5a7df13b4e43383c428cc5657 (patch)
tree5512330f8ad66d5bae14a0ed990601e3bf29f520 /apps/codecs/Tremor/Makefile
parente3e116d3c732c99d95fe11f11726ed8a5b587fc4 (diff)
downloadrockbox-99d2599b79649fd5a7df13b4e43383c428cc5657.tar.gz
rockbox-99d2599b79649fd5a7df13b4e43383c428cc5657.zip
Initial commit of the the Ogg Vorbis 'Tremor' integer playback codec
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/Tremor/Makefile')
-rw-r--r--apps/codecs/Tremor/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/apps/codecs/Tremor/Makefile b/apps/codecs/Tremor/Makefile
new file mode 100644
index 0000000000..b28cce04f9
--- /dev/null
+++ b/apps/codecs/Tremor/Makefile
@@ -0,0 +1,43 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
11 -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers
12
13ifdef APPEXTRA
14INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
15endif
16
17TREMOROPTS =
18CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
19
20SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
21SOURCES = $(SRC)
22OBJS := $(SRC:%.c=$(OBJDIR)/Tremor/%.o)
23DEPFILE = $(OBJDIR)/dep-tremor
24DIRS =
25
26OUTPUT = $(OBJDIR)/tremor.a
27
28all: $(OUTPUT)
29
30$(OUTPUT): $(OBJS)
31 @echo "AR $@"
32 @$(AR) ruv $@ $+ >/dev/null 2>&1
33
34$(OBJDIR)/Tremor/%.o: $(APPSDIR)/codecs/Tremor/%.c
35 @$(CC) -c -O2 $(CFLAGS) -I$(APPSDIR)/codecs/Tremor/ $< -o $@
36
37include $(TOOLSDIR)/make.inc
38
39clean:
40 @echo "cleaning Tremor"
41 @rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
42
43-include $(DEPFILE)