diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.make')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.make | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.make b/apps/plugins/mpegplayer/mpegplayer.make new file mode 100644 index 0000000000..af2156787e --- /dev/null +++ b/apps/plugins/mpegplayer/mpegplayer.make | |||
@@ -0,0 +1,32 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | MPEGSRCDIR := $(APPSDIR)/plugins/mpegplayer | ||
11 | MPEGBUILDDIR := $(BUILDDIR)/apps/plugins/mpegplayer | ||
12 | |||
13 | ROCKS += $(MPEGBUILDDIR)/mpegplayer.rock | ||
14 | |||
15 | MPEG_SRC := $(call preprocess, $(MPEGSRCDIR)/SOURCES) | ||
16 | MPEG_OBJ := $(call c2obj, $(MPEG_SRC)) | ||
17 | |||
18 | # add source files to OTHER_SRC to get automatic dependencies | ||
19 | OTHER_SRC += $(MPEG_SRC) | ||
20 | |||
21 | # Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM > 401) | ||
22 | ifeq ($(shell expr $(GCCNUM) \> 401),1) | ||
23 | MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline | ||
24 | else | ||
25 | MPEGCFLAGS = $(PLUGINFLAGS) | ||
26 | endif | ||
27 | |||
28 | $(MPEGBUILDDIR)/mpegplayer.rock: $(MPEG_OBJ) $(CODECDIR)/libmad-mpeg.a | ||
29 | |||
30 | $(MPEGBUILDDIR)/%.o: $(MPEGSRCDIR)/%.c $(MPEGSRCDIR)/mpegplayer.make | ||
31 | $(SILENT)mkdir -p $(dir $@) | ||
32 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(MPEGCFLAGS) -c $< -o $@ | ||