autodetection: convert path to native separators before displaying it.
[Rockbox.git] / apps / codecs / libmusepack / Makefile
bloba70d33644acd1497a61ebd5098de49e379a3bd1d
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
11 -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
13 ifdef APPEXTRA
14 INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
15 endif
17 # libmusepack is faster on ARM-targets with -O1 instead of -O2
18 ifeq ($(CPU),arm)
19 MUSEPACKOPTS += -O1
20 else
21 MUSEPACKOPTS += -O2
22 endif
24 CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET_INC) $(MUSEPACKOPTS) $(TARGET) \
25 $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} $(PROFILE_OPTS)
27 # This sets up 'SRC' based on the files mentioned in SOURCES
28 include $(TOOLSDIR)/makesrc.inc
30 SOURCES = $(SRC)
31 OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
32 OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
33 DEPFILE = $(OBJDIR)/dep-libmusepack
34 DIRS =
36 all: $(OUTPUT)
38 $(OUTPUT): $(OBJS)
39 $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
40 $(SILENT)$(RANLIB) $@
42 include $(TOOLSDIR)/make.inc
44 clean:
45 $(call PRINTS,cleaning libmusepack)rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
47 ifneq ($(MAKECMDGOALS),clean)
48 -include $(DEPFILE)
49 endif