diff options
Diffstat (limited to 'apps/codecs/libatrac/libatrac.make')
-rw-r--r-- | apps/codecs/libatrac/libatrac.make | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/codecs/libatrac/libatrac.make b/apps/codecs/libatrac/libatrac.make index 01606e1f15..980f5873f6 100644 --- a/apps/codecs/libatrac/libatrac.make +++ b/apps/codecs/libatrac/libatrac.make | |||
@@ -16,3 +16,16 @@ OTHER_SRC += $(ATRACLIB_SRC) | |||
16 | $(ATRACLIB): $(ATRACLIB_OBJ) | 16 | $(ATRACLIB): $(ATRACLIB_OBJ) |
17 | $(SILENT)$(shell rm -f $@) | 17 | $(SILENT)$(shell rm -f $@) |
18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null | 18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null |
19 | |||
20 | ATRACFLAGS = -I$(APPSDIR)/codecs/libatrac $(filter-out -O%,$(CODECFLAGS)) | ||
21 | # not tuned for arm | ||
22 | ifeq ($(CPU),coldfire) | ||
23 | ATRACFLAGS += -O2 | ||
24 | else | ||
25 | ATRACFLAGS += -O1 | ||
26 | endif | ||
27 | |||
28 | $(CODECDIR)/libatrac/%.o: $(ROOTDIR)/apps/codecs/libatrac/%.c | ||
29 | $(SILENT)mkdir -p $(dir $@) | ||
30 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(ATRACFLAGS) -c $< -o $@ | ||
31 | |||