A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 51 lines 2.0 kB view raw
1# __________ __ ___. 2# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6# \/ \/ \/ \/ \/ 7# $Id$ 8# 9 10INCLUDES += -I$(APPSDIR) $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) 11SRC += $(call preprocess, $(APPSDIR)/SOURCES) 12LIB_SRC += $(call preprocess, $(APPSDIR)/SOURCES) 13LIB_SRC += $(BUILDDIR)/lang/lang_core.c 14LIB_SRC += $(BUILDDIR)/apps/bitmaps/mono/default_icons.c 15LIB_SRC += $(BUILDDIR)/apps/bitmaps/native/rockboxlogo.320x98x16.c 16LIB_SRC += $(BUILDDIR)/apps/bitmaps/native/usblogo.176x48x16.c 17 18# apps/features.txt is a file that (is preprocessed and) lists named features 19# based on defines in the config-*.h files. The named features will be passed 20# to genlang and thus (translated) phrases can be used based on those names. 21# button.h is included for the HAS_BUTTON_HOLD define. 22# 23# Kludge: depends on config.o which only depends on config-*.h to have config.h 24# changes trigger a genlang re-run 25# 26 27ifneq (,$(USE_LTO)) 28$(BUILDDIR)/apps/features: PPCFLAGS += -DUSE_LTO 29endif 30 31$(BUILDDIR)/apps/features: $(APPSDIR)/features.txt $(BUILDDIR)/firmware/common/config.o 32 $(SILENT)mkdir -p $(BUILDDIR)/apps 33 $(SILENT)mkdir -p $(BUILDDIR)/lang 34 $(call PRINTS,PP $(<F)) 35 $(SILENT)$(CC) $(PPCFLAGS) \ 36 -E -P -imacros "config.h" -imacros "button.h" -x c $< | \ 37 grep -v "^#" | grep -v "^ *$$" > $(BUILDDIR)/apps/features; \ 38 39$(BUILDDIR)/apps/genlang-features: $(BUILDDIR)/apps/features 40 $(call PRINTS,GEN $(subst $(BUILDDIR)/,,$@))tr \\n : < $< > $@ 41 42ASMDEFS_SRC += $(APPSDIR)/core_asmdefs.c 43 44 45ROCKBOXLIB = $(BUILDDIR)/librockbox.a 46 47ROCKBOXLIB_OBJ := $(call c2obj, $(LIB_SRC)) 48 49$(ROCKBOXLIB): $(ROCKBOXLIB_OBJ) 50 $(SILENT)$(shell rm -f $@) 51 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null