A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 40 lines 1.3 kB view raw
1# __________ __ ___. 2# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6# \/ \/ \/ \/ \/ 7# $Id$ 8# 9 10PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox 11PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox 12 13ROCKS += $(PDBOXBUILDDIR)/pdbox.rock 14 15PDBOX_SRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES) 16PDBOX_OBJ := $(call c2obj, $(PDBOX_SRC)) 17 18# add source files to OTHERSRC to get automatic dependencies 19OTHER_SRC += $(PDBOX_SRC) 20 21$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) 22 23PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type 24PDBOXLDFLAGS = $(PLUGINLDFLAGS) 25ifdef APP_TYPE 26PDBOXLDFLAGS += -lm 27endif 28 29# Disable stringop-truncation warnings on GCC 8 or greater 30ifeq ($(shell expr $(GCCNUM) \> 800),1) 31 PDBOXFLAGS += -Wno-stringop-truncation 32endif 33 34 35$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB) 36 37# Compile PDBox with extra flags (adapted from ZXBox) 38$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make 39 $(SILENT)mkdir -p $(dir $@) 40 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@