diff options
Diffstat (limited to 'apps/codecs/lib/Makefile')
-rw-r--r-- | apps/codecs/lib/Makefile | 8 |
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 | |||
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 | ||