diff options
Diffstat (limited to 'apps/codecs/libFLAC/Makefile')
-rw-r--r-- | apps/codecs/libFLAC/Makefile | 59 |
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 | |||
10 | INCLUDES=-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 | |||
14 | ifdef APPEXTRA | ||
15 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | ||
16 | endif | ||
17 | |||
18 | NEWGCC=$(shell expr $(GCCNUM) ">" 303) | ||
19 | |||
20 | FLACOPTS = -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 | |||
25 | ifeq ($(NEWGCC), 1) | ||
26 | # this is 3.4.X options: | ||
27 | FLACOPTS += --param large-function-insns=10000 | ||
28 | endif | ||
29 | |||
30 | CFLAGS = $(GCCOPTS) $(PROFILE_OPTS) $(FLACOPTS)\ | ||
31 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} | ||
32 | |||
33 | # This sets up 'SRC' based on the files mentioned in SOURCES | ||
34 | include $(TOOLSDIR)/makesrc.inc | ||
35 | |||
36 | SOURCES = $(SRC) | ||
37 | OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o) | ||
38 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | ||
39 | DEPFILE = $(OBJDIR)/dep-libFLAC | ||
40 | DIRS = | ||
41 | |||
42 | OUTPUT = $(BUILDDIR)/libFLAC.a | ||
43 | |||
44 | all: $(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 | |||
54 | include $(TOOLSDIR)/make.inc | ||
55 | |||
56 | clean: | ||
57 | $(call PRINTS,cleaning libFLAC)rm -f $(OBJS) $(OUTPUT) $(DEPFILE) | ||
58 | |||
59 | -include $(DEPFILE) | ||