forked from len0rd/rockbox
rbspeex: Fix build when using system speex libraries
Change-Id: If6dd5d89ff1e7d668ca975a89b9091a86cbca42c
This commit is contained in:
parent
64bed8361d
commit
0c4c1e6042
1 changed files with 3 additions and 1 deletions
|
@ -73,12 +73,14 @@ endif
|
||||||
ifeq ($(SYS_SPEEX),)
|
ifeq ($(SYS_SPEEX),)
|
||||||
# This sets up 'SRC' based on the files mentioned in SOURCES
|
# This sets up 'SRC' based on the files mentioned in SOURCES
|
||||||
SPEEXSRCS := $(shell $(CC) $(CFLAGS) -E -P -xc $(SPEEXSRC)/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
|
LIBS = $(TARGET_DIR)librbspeex.a
|
||||||
else
|
else
|
||||||
LIBS = $(SYS_SPEEX)
|
LIBS = $(SYS_SPEEX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LIBSOURCES += rbspeex.c
|
||||||
|
|
||||||
TARGET_DIR ?= $(shell pwd)/
|
TARGET_DIR ?= $(shell pwd)/
|
||||||
BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET)
|
BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET)
|
||||||
OBJDIR = $(abspath $(BUILD_DIR))/
|
OBJDIR = $(abspath $(BUILD_DIR))/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue