diff options
Diffstat (limited to 'apps/codecs/Tremor/Makefile')
-rw-r--r-- | apps/codecs/Tremor/Makefile | 10 |
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 | ||
17 | TREMOROPTS = -O2 | 17 | TREMOROPTS = -O2 |
18 | CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ | 18 | CFLAGS = $(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 |
22 | include $(TOOLSDIR)/makesrc.inc | 22 | include $(TOOLSDIR)/makesrc.inc |
@@ -27,22 +27,18 @@ OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | |||
27 | DEPFILE = $(OBJDIR)/dep-Tremor | 27 | DEPFILE = $(OBJDIR)/dep-Tremor |
28 | DIRS = | 28 | DIRS = |
29 | 29 | ||
30 | OUTPUT = $(BUILDDIR)/libTremor.a | ||
31 | |||
32 | all: $(OUTPUT) | 30 | all: $(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 | |||
42 | include $(TOOLSDIR)/make.inc | 36 | include $(TOOLSDIR)/make.inc |
43 | 37 | ||
44 | clean: | 38 | clean: |
45 | @echo "cleaning Tremor" | 39 | @echo "cleaning Tremor" |
46 | @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) | 40 | @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) |
47 | 41 | ||
42 | ifneq ($(MAKECMDGOALS),clean) | ||
48 | -include $(DEPFILE) | 43 | -include $(DEPFILE) |
44 | endif | ||