diff options
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r-- | apps/codecs/lib/Makefile | 8 | ||||
-rw-r--r-- | apps/codecs/lib/SOURCES | 7 | ||||
-rw-r--r-- | apps/codecs/lib/codeclib.h | 4 |
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 | |||
20 | CFLAGS = $(INCLUDES) $(GCCOPTS) \ | 20 | CFLAGS = $(INCLUDES) $(GCCOPTS) \ |
21 | $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC | 21 | $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC |
22 | 22 | ||
23 | # Sectioned compilation for target | ||
24 | ifndef SIMVER | ||
25 | CFLAGS += -ffunction-sections -fdata-sections | ||
26 | endif | ||
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 |
24 | include $(TOOLSDIR)/makesrc.inc | 29 | include $(TOOLSDIR)/makesrc.inc |
25 | 30 | ||
26 | SOURCES = $(SRC) | 31 | SOURCES = $(SRC) |
27 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | 32 | OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o) |
33 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | ||
28 | DEPFILE = $(OBJDIR)/dep-codeclib | 34 | DEPFILE = $(OBJDIR)/dep-codeclib |
29 | DIRS = . | 35 | DIRS = . |
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 */ |
2 | codeclib.c | 2 | codeclib.c |
3 | |||
4 | |||
5 | mdct2.c | ||
6 | #ifdef CPU_ARM | ||
7 | mdct_arm.S | ||
8 | #endif | ||
9 | |||
3 | #elif defined(SIMULATOR) && defined(__APPLE__) | 10 | #elif defined(SIMULATOR) && defined(__APPLE__) |
4 | osx.dummy.c | 11 | osx.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 | |||
60 | extern void mdct_backward(int n, int32_t *in, int32_t *out); | ||
61 | |||
58 | /* Various codec helper functions */ | 62 | /* Various codec helper functions */ |
59 | 63 | ||
60 | int codec_init(void); | 64 | int codec_init(void); |