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 9f831d5..4a33a58 100644
--- a/apps/codecs/lib/Makefile
+++ b/apps/codecs/lib/Makefile
@@ -20,11 +20,17 @@ endif
CFLAGS = $(INCLUDES) $(GCCOPTS) \
$(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC
+# Sectioned compilation for target
+ifndef SIMVER
+ CFLAGS += -ffunction-sections -fdata-sections
+endif
+
# This sets up 'SRC' based on the files mentioned in SOURCES
include $(TOOLSDIR)/makesrc.inc
SOURCES = $(SRC)
-OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
+OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
+OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
DEPFILE = $(OBJDIR)/dep-codeclib
DIRS = .