summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/lib/Makefile')
-rw-r--r--apps/codecs/lib/Makefile8
1 files changed, 7 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