From 99d2599b79649fd5a7df13b4e43383c428cc5657 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Thu, 17 Feb 2005 09:08:18 +0000 Subject: 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 --- apps/codecs/Tremor/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 apps/codecs/Tremor/Makefile (limited to 'apps/codecs/Tremor/Makefile') 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 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# + +INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \ + -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers + +ifdef APPEXTRA +INCLUDES += -I$(APPSDIR)/$(APPEXTRA) +endif + +TREMOROPTS = +CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} + +SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) +SOURCES = $(SRC) +OBJS := $(SRC:%.c=$(OBJDIR)/Tremor/%.o) +DEPFILE = $(OBJDIR)/dep-tremor +DIRS = + +OUTPUT = $(OBJDIR)/tremor.a + +all: $(OUTPUT) + +$(OUTPUT): $(OBJS) + @echo "AR $@" + @$(AR) ruv $@ $+ >/dev/null 2>&1 + +$(OBJDIR)/Tremor/%.o: $(APPSDIR)/codecs/Tremor/%.c + @$(CC) -c -O2 $(CFLAGS) -I$(APPSDIR)/codecs/Tremor/ $< -o $@ + +include $(TOOLSDIR)/make.inc + +clean: + @echo "cleaning Tremor" + @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) + +-include $(DEPFILE) -- cgit v1.2.3