A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10GOBAN_SRCDIR := $(APPSDIR)/plugins/goban
11GOBAN_BUILDDIR := $(BUILDDIR)/apps/plugins/goban
12
13GOBAN_SRC := $(call preprocess, $(GOBAN_SRCDIR)/SOURCES)
14GOBAN_OBJ := $(call c2obj, $(GOBAN_SRC))
15
16OTHER_SRC += $(GOBAN_SRC)
17
18ifndef APP_TYPE
19 ### all targets
20 ROCKS += $(GOBAN_BUILDDIR)/goban.rock
21else
22 ### simulator
23 ROCKS += $(GOBAN_BUILDDIR)/goban.rock
24endif
25
26$(GOBAN_BUILDDIR)/goban.rock: $(GOBAN_OBJ)
27
28$(GOBAN_BUILDDIR)/goban.refmap: $(GOBAN_OBJ)
29
30$(GOBAN_OUTLDS): $(PLUGIN_LDS) $(GOBAN_BUILDDIR)/goban.refmap
31 $(call PRINTS,PP $(@F))$(call preprocess2file,$<,$@,-DOVERLAY_OFFSET=$(shell \
32 $(TOOLSDIR)/ovl_offset.pl $(GOBAN_BUILDDIR)/goban.refmap))
33
34$(GOBAN_BUILDDIR)/goban.ovl: $(GOBAN_OBJ) $(GOBAN_OUTLDS)
35 $(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
36 $(filter %.o, $^) \
37 $(filter %.a, $+) \
38 -lgcc $(GOBAN_OVLFLAGS)
39 $(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)