summaryrefslogtreecommitdiff
path: root/apps/codecs/libalac
diff options
context:
space:
mode:
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