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/libalac/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'apps/codecs/libalac') diff --git a/apps/codecs/libalac/Makefile b/apps/codecs/libalac/Makefile index 5bffb0669e..5bca428f81 100644 --- a/apps/codecs/libalac/Makefile +++ b/apps/codecs/libalac/Makefile @@ -15,7 +15,8 @@ ifdef APPEXTRA endif ALACOPTS = -O3 -CFLAGS = $(GCCOPTS) $(ALACOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} +CFLAGS = $(GCCOPTS) $(ALACOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ + -DMEM=${MEMORYSIZE} # This sets up 'SRC' based on the files mentioned in SOURCES include $(TOOLSDIR)/makesrc.inc @@ -26,22 +27,18 @@ OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) DEPFILE = $(OBJDIR)/dep-libalac DIRS = -OUTPUT = $(BUILDDIR)/libalac.a - all: $(OUTPUT) $(OUTPUT): $(OBJS) @echo "AR $@" @$(AR) ruv $@ $+ >/dev/null 2>&1 -$(OBJDIR)/libalac/%.o: $(APPSDIR)/codecs/libalac/%.c - @echo "(libalac) CC $<" - @$(CC) -c $(CFLAGS) -I$(APPSDIR)/codecs/libalac/ $< -o $@ - include $(TOOLSDIR)/make.inc clean: @echo "cleaning libalac" @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) +ifneq ($(MAKECMDGOALS),clean) -include $(DEPFILE) +endif -- cgit v1.2.3