summaryrefslogtreecommitdiff
path: root/apps/codecs/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r--apps/codecs/lib/Makefile8
-rw-r--r--apps/codecs/lib/SOURCES7
-rw-r--r--apps/codecs/lib/codeclib.h4
3 files changed, 18 insertions, 1 deletions
diff --git a/apps/codecs/lib/Makefile b/apps/codecs/lib/Makefile
index 9f831d5f92..4a33a58f27 100644
--- a/apps/codecs/lib/Makefile
+++ b/apps/codecs/lib/Makefile
@@ -20,11 +20,17 @@ endif
20CFLAGS = $(INCLUDES) $(GCCOPTS) \ 20CFLAGS = $(INCLUDES) $(GCCOPTS) \
21$(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC 21$(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC
22 22
23# Sectioned compilation for target
24ifndef SIMVER
25 CFLAGS += -ffunction-sections -fdata-sections
26endif
27
23# This sets up 'SRC' based on the files mentioned in SOURCES 28# This sets up 'SRC' based on the files mentioned in SOURCES
24include $(TOOLSDIR)/makesrc.inc 29include $(TOOLSDIR)/makesrc.inc
25 30
26SOURCES = $(SRC) 31SOURCES = $(SRC)
27OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 32OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
33OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
28DEPFILE = $(OBJDIR)/dep-codeclib 34DEPFILE = $(OBJDIR)/dep-codeclib
29DIRS = . 35DIRS = .
30 36
diff --git a/apps/codecs/lib/SOURCES b/apps/codecs/lib/SOURCES
index 65a656526a..9c6d4e7ff6 100644
--- a/apps/codecs/lib/SOURCES
+++ b/apps/codecs/lib/SOURCES
@@ -1,5 +1,12 @@
1#if CONFIG_CODEC == SWCODEC /* software codec platforms */ 1#if CONFIG_CODEC == SWCODEC /* software codec platforms */
2codeclib.c 2codeclib.c
3
4
5mdct2.c
6#ifdef CPU_ARM
7mdct_arm.S
8#endif
9
3#elif defined(SIMULATOR) && defined(__APPLE__) 10#elif defined(SIMULATOR) && defined(__APPLE__)
4osx.dummy.c 11osx.dummy.c
5#endif 12#endif
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h
index 1d95486c78..87cc926c6b 100644
--- a/apps/codecs/lib/codeclib.h
+++ b/apps/codecs/lib/codeclib.h
@@ -55,6 +55,10 @@ void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, con
55#define abs(x) ((x)>0?(x):-(x)) 55#define abs(x) ((x)>0?(x):-(x))
56#define labs(x) abs(x) 56#define labs(x) abs(x)
57 57
58/*MDCT library functions*/
59
60extern void mdct_backward(int n, int32_t *in, int32_t *out);
61
58/* Various codec helper functions */ 62/* Various codec helper functions */
59 63
60int codec_init(void); 64int codec_init(void);