rbspeex: Fix build when using system speex libraries

Change-Id: If6dd5d89ff1e7d668ca975a89b9091a86cbca42c
This commit is contained in:
Solomon Peachy 2021-05-18 08:41:09 -04:00
parent 64bed8361d
commit 0c4c1e6042

View file

@ -73,12 +73,14 @@ endif
ifeq ($(SYS_SPEEX),)
# This sets up 'SRC' based on the files mentioned in SOURCES
SPEEXSRCS := $(shell $(CC) $(CFLAGS) -E -P -xc $(SPEEXSRC)/SOURCES)
LIBSOURCES := $(SPEEXSRCS:%.c=$(SPEEXSRC)/%.c) rbspeex.c
LIBSOURCES := $(SPEEXSRCS:%.c=$(SPEEXSRC)/%.c)
LIBS = $(TARGET_DIR)librbspeex.a
else
LIBS = $(SYS_SPEEX)
endif
LIBSOURCES += rbspeex.c
TARGET_DIR ?= $(shell pwd)/
BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET)
OBJDIR = $(abspath $(BUILD_DIR))/