summaryrefslogtreecommitdiff
path: root/apps/codecs/libFLAC/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libFLAC/Makefile')
-rw-r--r--apps/codecs/libFLAC/Makefile59
1 files changed, 0 insertions, 59 deletions
diff --git a/apps/codecs/libFLAC/Makefile b/apps/codecs/libFLAC/Makefile
deleted file mode 100644
index b8ab586200..0000000000
--- a/apps/codecs/libFLAC/Makefile
+++ /dev/null
@@ -1,59 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
11 -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(APPSDIR)/codecs/libFLAC/include \
12 -I$(BUILDDIR)
13
14ifdef APPEXTRA
15 INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
16endif
17
18NEWGCC=$(shell expr $(GCCNUM) ">" 303)
19
20FLACOPTS = -DFLAC__NO_ASM -DFLAC__ALIGN_MALLOC_DATA \
21-DFLAC__INTEGER_ONLY_LIBRARY -DVERSION=\"1.1.2\" -fomit-frame-pointer \
22-funroll-loops -finline-functions -Wall -W -Wno-inline \
23-DFLaC__INLINE=__inline__
24
25ifeq ($(NEWGCC), 1)
26 # this is 3.4.X options:
27 FLACOPTS += --param large-function-insns=10000
28endif
29
30CFLAGS = $(GCCOPTS) $(PROFILE_OPTS) $(FLACOPTS)\
31$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
32
33# This sets up 'SRC' based on the files mentioned in SOURCES
34include $(TOOLSDIR)/makesrc.inc
35
36SOURCES = $(SRC)
37OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
38OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
39DEPFILE = $(OBJDIR)/dep-libFLAC
40DIRS =
41
42OUTPUT = $(BUILDDIR)/libFLAC.a
43
44all: $(OUTPUT)
45
46$(OUTPUT): $(OBJS)
47 $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
48 $(SILENT)$(RANLIB) $@
49
50$(OBJDIR)/libFLAC/%.o: $(APPSDIR)/codecs/libFLAC/%.c
51 $(SILENT)mkdir -p $(OBJDIR)/libFLAC
52 $(call PRINTS,CC $(<F))$(CC) -c -O2 $(CFLAGS) -I$(APPSDIR)/codecs/libFLAC/include/FLAC $< -o $@
53
54include $(TOOLSDIR)/make.inc
55
56clean:
57 $(call PRINTS,cleaning libFLAC)rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
58
59-include $(DEPFILE)