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
10DOOMSRCDIR := $(APPSDIR)/plugins/doom
11DOOMBUILDDIR := $(BUILDDIR)/apps/plugins/doom
12
13ROCKS += $(DOOMBUILDDIR)/doom.rock
14
15DOOM_SRC := $(call preprocess, $(DOOMSRCDIR)/SOURCES)
16DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
17
18# add source files to OTHER_SRC to get automatic dependencies
19OTHER_SRC += $(DOOM_SRC)
20
21DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
22
23# Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM > 401)
24ifeq ($(shell expr $(GCCNUM) \> 401),1)
25 DOOMCFLAGS += -fgnu89-inline
26endif
27# Disable stringop-truncation warnings on GCC 8 or greater
28ifeq ($(shell expr $(GCCNUM) \> 800),1)
29 DOOMCFLAGS += -Wno-stringop-truncation
30endif
31
32ifndef APP_TYPE
33ifeq ($(TARGET), IRIVER_H100)
34 DOOMCCFLAGS += -mstructure-size-boundary=8
35endif
36endif
37
38$(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ)
39
40# new rule needed to use extra compile flags
41$(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c
42 $(SILENT)mkdir -p $(dir $@)
43 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@