rockbox/lib/rbcodec/rbcodec.make
Sean Bartell b5716df4cb Build librbcodec with DSP and metadata.
All associated files are moved to /lib/rbcodec.

Change-Id: I572ddd2b8a996aae1e98c081d06b1ed356dce222
2012-03-18 12:00:39 +01:00

19 lines
847 B
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
RBCODEC_LIB = $(RBCODEC_BLD)/librbcodec.a
RBCODEC_SRC := $(call preprocess, $(RBCODEC_DIR)/SOURCES)
RBCODEC_OBJ := $(call c2obj, $(RBCODEC_SRC))
INCLUDES += -I$(RBCODEC_DIR) -I$(RBCODEC_DIR)/dsp -I$(RBCODEC_DIR)/metadata
OTHER_SRC += $(RBCODEC_SRC)
$(RBCODEC_BLD)/%.o: $(RBCODEC_DIR)/%.c
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CC $<)$(CC) $(CFLAGS) $(RBCODEC_CFLAGS) -c $< -o $@
$(RBCODEC_LIB): $(RBCODEC_OBJ)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null