summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libopus/libopus.make
blob: ab93a5a5cc9f87a91817b00456b76131c72b0ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
# $Id$
#

# libopus
OPUSLIB := $(CODECDIR)/libopus.a
OPUSLIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libopus/SOURCES)
OPUSLIB_OBJ := $(call c2obj, $(OPUSLIB_SRC))

# codec specific compilation flags
$(OPUSLIB) : CODECFLAGS += -DHAVE_CONFIG_H \
   -I$(RBCODECLIB_DIR)/codecs/libopus \
   -I$(RBCODECLIB_DIR)/codecs/libopus/celt \
   -I$(RBCODECLIB_DIR)/codecs/libopus/silk

$(OPUSLIB): $(OPUSLIB_OBJ)
	$(SILENT)$(shell rm -f $@)
	$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null