From 1b0d1daf38f00410f062556aa2635a1886ec0b61 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Mon, 5 Dec 2005 19:32:13 +0000 Subject: Codec makefile cleanup: remove redundant things, don't generate dependency files when cleaning. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8154 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/Tremor/Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'apps/codecs/Tremor') 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 TREMOROPTS = -O2 CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ --DMEM=${MEMORYSIZE} + -DMEM=${MEMORYSIZE} # This sets up 'SRC' based on the files mentioned in SOURCES include $(TOOLSDIR)/makesrc.inc @@ -27,22 +27,18 @@ OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) DEPFILE = $(OBJDIR)/dep-Tremor DIRS = -OUTPUT = $(BUILDDIR)/libTremor.a - all: $(OUTPUT) $(OUTPUT): $(OBJS) @echo "AR $@" @$(AR) ruv $@ $+ >/dev/null 2>&1 -$(OBJDIR)/%.o: $(APPSDIR)/codecs/Tremor/%.c - @echo "(Tremor) CC "`basename $<` - @$(CC) -c $(CFLAGS) -I$(APPSDIR)/codecs/Tremor/ $< -o $@ - include $(TOOLSDIR)/make.inc clean: @echo "cleaning Tremor" @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) +ifneq ($(MAKECMDGOALS),clean) -include $(DEPFILE) +endif -- cgit v1.2.3