summaryrefslogtreecommitdiff
path: root/lib/rbcodec/rbcodec.make
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/rbcodec.make')
-rw-r--r--lib/rbcodec/rbcodec.make19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/rbcodec/rbcodec.make b/lib/rbcodec/rbcodec.make
new file mode 100644
index 0000000000..afa289ba28
--- /dev/null
+++ b/lib/rbcodec/rbcodec.make
@@ -0,0 +1,19 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7
8RBCODEC_LIB = $(RBCODEC_BLD)/librbcodec.a
9RBCODEC_SRC := $(call preprocess, $(RBCODEC_DIR)/SOURCES)
10RBCODEC_OBJ := $(call c2obj, $(RBCODEC_SRC))
11INCLUDES += -I$(RBCODEC_DIR) -I$(RBCODEC_DIR)/dsp -I$(RBCODEC_DIR)/metadata
12OTHER_SRC += $(RBCODEC_SRC)
13
14$(RBCODEC_BLD)/%.o: $(RBCODEC_DIR)/%.c
15 $(SILENT)mkdir -p $(dir $@)
16 $(call PRINTS,CC $<)$(CC) $(CFLAGS) $(RBCODEC_CFLAGS) -c $< -o $@
17
18$(RBCODEC_LIB): $(RBCODEC_OBJ)
19 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null