summaryrefslogtreecommitdiff
path: root/apps/codecs/libalac
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2005-12-05 19:32:13 +0000
committerMagnus Holmgren <magnushol@gmail.com>2005-12-05 19:32:13 +0000
commit1b0d1daf38f00410f062556aa2635a1886ec0b61 (patch)
treefb150aa75503585a00fc30d00a319badf99fabe8 /apps/codecs/libalac
parent5deedc657177182407e418812a5f4057ad4b848a (diff)
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
Diffstat (limited to 'apps/codecs/libalac')
-rw-r--r--apps/codecs/libalac/Makefile11
1 files changed, 4 insertions, 7 deletions
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