summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/Tremor')
-rw-r--r--apps/codecs/Tremor/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/codecs/Tremor/Makefile b/apps/codecs/Tremor/Makefile
index 4eadd24a10..7fd5de852b 100644
--- a/apps/codecs/Tremor/Makefile
+++ b/apps/codecs/Tremor/Makefile
@@ -16,7 +16,7 @@ endif
16 16
17TREMOROPTS = -O2 17TREMOROPTS = -O2
18CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ 18CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
19-DMEM=${MEMORYSIZE} 19 -DMEM=${MEMORYSIZE}
20 20
21# This sets up 'SRC' based on the files mentioned in SOURCES 21# This sets up 'SRC' based on the files mentioned in SOURCES
22include $(TOOLSDIR)/makesrc.inc 22include $(TOOLSDIR)/makesrc.inc
@@ -27,22 +27,18 @@ OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
27DEPFILE = $(OBJDIR)/dep-Tremor 27DEPFILE = $(OBJDIR)/dep-Tremor
28DIRS = 28DIRS =
29 29
30OUTPUT = $(BUILDDIR)/libTremor.a
31
32all: $(OUTPUT) 30all: $(OUTPUT)
33 31
34$(OUTPUT): $(OBJS) 32$(OUTPUT): $(OBJS)
35 @echo "AR $@" 33 @echo "AR $@"
36 @$(AR) ruv $@ $+ >/dev/null 2>&1 34 @$(AR) ruv $@ $+ >/dev/null 2>&1
37 35
38$(OBJDIR)/%.o: $(APPSDIR)/codecs/Tremor/%.c
39 @echo "(Tremor) CC "`basename $<`
40 @$(CC) -c $(CFLAGS) -I$(APPSDIR)/codecs/Tremor/ $< -o $@
41
42include $(TOOLSDIR)/make.inc 36include $(TOOLSDIR)/make.inc
43 37
44clean: 38clean:
45 @echo "cleaning Tremor" 39 @echo "cleaning Tremor"
46 @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) 40 @rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
47 41
42ifneq ($(MAKECMDGOALS),clean)
48-include $(DEPFILE) 43-include $(DEPFILE)
44endif