2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 INCLUDES
=-I
$(APPSDIR
) -I..
-I.
-I
$(FIRMDIR
)/include -I
$(FIRMDIR
)/export \
11 -I
$(FIRMDIR
)/common
-I
$(FIRMDIR
)/drivers
-I
$(BUILDDIR
)
14 INCLUDES
+= $(patsubst %,-I
$(APPSDIR
)/%,$(subst :, ,$(APPEXTRA
)))
17 # libmusepack is faster on ARM-targets with -O1 instead of -O2
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
31 OBJS2
:= $(SRC
:%.c
=$(OBJDIR
)/%.o
)
32 OBJS
= $(patsubst %.S
, $(OBJDIR
)/%.o
, $(OBJS2
))
33 DEPFILE
= $(OBJDIR
)/dep-libmusepack
39 $(call PRINTS
,AR
+RANLIB
$(@F
))$(AR
) ruv
$@
$+ >/dev
/null
2>&1
42 include $(TOOLSDIR
)/make.inc
45 $(call PRINTS
,cleaning libmusepack
)rm -f
$(OBJS
) $(OUTPUT
) $(DEPFILE
)
47 ifneq ($(MAKECMDGOALS
),clean)