mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 13:42:29 -05:00
New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
Many #include lines adjusted to conform to the new standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f66c303467
commit
c6b3d38a15
221 changed files with 2081 additions and 3657 deletions
|
|
@ -1,49 +0,0 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id$
|
||||
#
|
||||
|
||||
INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
|
||||
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
|
||||
|
||||
ifdef APPEXTRA
|
||||
INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
|
||||
endif
|
||||
|
||||
# libmusepack is faster on ARM-targets with -O1 instead of -O2
|
||||
ifeq ($(CPU),arm)
|
||||
MUSEPACKOPTS += -O1
|
||||
else
|
||||
MUSEPACKOPTS += -O2
|
||||
endif
|
||||
|
||||
CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET_INC) $(MUSEPACKOPTS) $(TARGET) \
|
||||
$(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} $(PROFILE_OPTS)
|
||||
|
||||
# This sets up 'SRC' based on the files mentioned in SOURCES
|
||||
include $(TOOLSDIR)/makesrc.inc
|
||||
|
||||
SOURCES = $(SRC)
|
||||
OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
|
||||
OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
|
||||
DEPFILE = $(OBJDIR)/dep-libmusepack
|
||||
DIRS =
|
||||
|
||||
all: $(OUTPUT)
|
||||
|
||||
$(OUTPUT): $(OBJS)
|
||||
$(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
|
||||
$(SILENT)$(RANLIB) $@
|
||||
|
||||
include $(TOOLSDIR)/make.inc
|
||||
|
||||
clean:
|
||||
$(call PRINTS,cleaning libmusepack)rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
-include $(DEPFILE)
|
||||
endif
|
||||
|
|
@ -35,9 +35,9 @@
|
|||
/// \file huffsv46.c
|
||||
/// Implementations of huffman decoding for streamversions < 7.
|
||||
|
||||
#include <musepack.h>
|
||||
#include <requant.h>
|
||||
#include <huffman.h>
|
||||
#include "musepack.h"
|
||||
#include "requant.h"
|
||||
#include "huffman.h"
|
||||
|
||||
#ifdef MPC_SUPPORT_SV456
|
||||
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@
|
|||
/// \file huffsv7.c
|
||||
/// Implementations of sv7 huffman decoding functions.
|
||||
|
||||
#include <musepack.h>
|
||||
#include <huffman.h>
|
||||
#include <requant.h>
|
||||
#include "musepack.h"
|
||||
#include "huffman.h"
|
||||
#include "requant.h"
|
||||
|
||||
const HuffmanTyp mpc_table_HuffHdr [10] ICONST_ATTR =
|
||||
{{2147483648u,1,0},{1610612736u,3,1},{1577058304u,7,-4},{1568669696u,9,3},{1560281088u,9,4},{1543503872u,8,-5},{1476395008u,6,2},{1342177280u,5,-3},{1073741824u,4,-2},{0u,2,-1},};
|
||||
|
|
|
|||
29
apps/codecs/libmusepack/libmusepack.make
Normal file
29
apps/codecs/libmusepack/libmusepack.make
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id: Makefile 19082 2008-11-10 23:54:24Z zagor $
|
||||
#
|
||||
|
||||
# libmusepack
|
||||
MUSEPACKLIB := $(CODECDIR)/libmusepack.a
|
||||
MUSEPACKLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libmusepack/SOURCES)
|
||||
MUSEPACKLIB_OBJ := $(call c2obj, $(MUSEPACKLIB_SRC))
|
||||
OTHER_SRC += $(MUSEPACKLIB_SRC)
|
||||
|
||||
$(MUSEPACKLIB): $(MUSEPACKLIB_OBJ)
|
||||
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
|
||||
|
||||
# libmusepack is faster on ARM-targets with -O1 than -O2
|
||||
MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack
|
||||
ifeq ($(CPU),arm)
|
||||
MUSEPACKFLAGS += -O1
|
||||
else
|
||||
MUSEPACKFLAGS += -O2
|
||||
endif
|
||||
|
||||
$(CODECDIR)/libmusepack/%.o: $(ROOTDIR)/apps/codecs/libmusepack/%.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MUSEPACKFLAGS) -c $< -o $@
|
||||
|
|
@ -45,7 +45,9 @@ extern "C" {
|
|||
//#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../codec.h"
|
||||
#ifndef SIMULATOR
|
||||
#include "codecs.h"
|
||||
#endif
|
||||
#include "config_types.h"
|
||||
#include "decoder.h"
|
||||
#include "math.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue