2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 PDBOXSRCDIR
:= $(APPSDIR
)/plugins
/pdbox
11 PDBOXBUILDDIR
:= $(BUILDDIR
)/apps
/plugins
/pdbox
13 ROCKS
+= $(PDBOXBUILDDIR
)/pdbox.rock
15 PDBOX_SRC
:= $(call preprocess
, $(PDBOXSRCDIR
)/SOURCES
)
16 PDBOX_OBJ
:= $(call c2obj
, $(PDBOX_SRC
))
18 # add source files to OTHERSRC to get automatic dependencies
19 OTHERSRC
+= $(PDBOX_SRC
)
21 $(PDBOXBUILDDIR
)/pdbox.rock
: $(PDBOX_OBJ
)
23 PDBOXFLAGS
= $(PLUGINFLAGS
) \
24 -DFIXEDPOINT
-DSTATIC
-DPD
-DUSEAPI_ROCKBOX \
25 -I
$(PDBOXSRCDIR
) -I
$(PDBOXSRCDIR
)/PDa
/src \
26 -I
$(PDBOXSRCDIR
)/TLSF-2.4
.4/src
28 # Compile PDBox with extra flags (adapted from ZXBox)
29 $(PDBOXBUILDDIR
)/%.o
: $(PDBOXSRCDIR
)/%.c
$(PLUGINBITMAPLIB
) $(PDBOXSRCDIR
)/pdbox.make
30 $(SILENT
)mkdir
-p
$(dir $@
)
31 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) -I
$(dir $<) $(PDBOXFLAGS
) -c
$< -o
$@