summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/Makefile
diff options
context:
space:
mode:
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)