diff options
Diffstat (limited to 'lib/rbcodec/rbcodec.make')
-rw-r--r-- | lib/rbcodec/rbcodec.make | 19 |
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 | |||
8 | RBCODEC_LIB = $(RBCODEC_BLD)/librbcodec.a | ||
9 | RBCODEC_SRC := $(call preprocess, $(RBCODEC_DIR)/SOURCES) | ||
10 | RBCODEC_OBJ := $(call c2obj, $(RBCODEC_SRC)) | ||
11 | INCLUDES += -I$(RBCODEC_DIR) -I$(RBCODEC_DIR)/dsp -I$(RBCODEC_DIR)/metadata | ||
12 | OTHER_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 | ||