diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-05-18 08:41:09 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-05-18 08:43:47 -0400 |
commit | 0c4c1e60428c28b30a5f1c151b6691b2171cff7f (patch) | |
tree | 2811886f2ff7026bc3356903aedcc42392d661d3 | |
parent | 64bed8361d6452fb4e1e161955d3550b81352d82 (diff) | |
download | rockbox-0c4c1e60428c28b30a5f1c151b6691b2171cff7f.tar.gz rockbox-0c4c1e60428c28b30a5f1c151b6691b2171cff7f.zip |
rbspeex: Fix build when using system speex libraries
Change-Id: If6dd5d89ff1e7d668ca975a89b9091a86cbca42c
-rw-r--r-- | tools/rbspeex/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index 03f88f34cd..669e030c0d 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile | |||
@@ -73,12 +73,14 @@ endif | |||
73 | ifeq ($(SYS_SPEEX),) | 73 | ifeq ($(SYS_SPEEX),) |
74 | # This sets up 'SRC' based on the files mentioned in SOURCES | 74 | # This sets up 'SRC' based on the files mentioned in SOURCES |
75 | SPEEXSRCS := $(shell $(CC) $(CFLAGS) -E -P -xc $(SPEEXSRC)/SOURCES) | 75 | SPEEXSRCS := $(shell $(CC) $(CFLAGS) -E -P -xc $(SPEEXSRC)/SOURCES) |
76 | LIBSOURCES := $(SPEEXSRCS:%.c=$(SPEEXSRC)/%.c) rbspeex.c | 76 | LIBSOURCES := $(SPEEXSRCS:%.c=$(SPEEXSRC)/%.c) |
77 | LIBS = $(TARGET_DIR)librbspeex.a | 77 | LIBS = $(TARGET_DIR)librbspeex.a |
78 | else | 78 | else |
79 | LIBS = $(SYS_SPEEX) | 79 | LIBS = $(SYS_SPEEX) |
80 | endif | 80 | endif |
81 | 81 | ||
82 | LIBSOURCES += rbspeex.c | ||
83 | |||
82 | TARGET_DIR ?= $(shell pwd)/ | 84 | TARGET_DIR ?= $(shell pwd)/ |
83 | BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET) | 85 | BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET) |
84 | OBJDIR = $(abspath $(BUILD_DIR))/ | 86 | OBJDIR = $(abspath $(BUILD_DIR))/ |