summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpegplayer.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.make')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.make6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.make b/apps/plugins/mpegplayer/mpegplayer.make
index cd7e006031..2a39e7ddce 100644
--- a/apps/plugins/mpegplayer/mpegplayer.make
+++ b/apps/plugins/mpegplayer/mpegplayer.make
@@ -18,4 +18,10 @@ MPEG_OBJ := $(call c2obj, $(MPEG_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(MPEG_SRC)
+MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline
+
$(MPEGBUILDDIR)/mpegplayer.rock: $(MPEG_OBJ) $(CODECDIR)/libmad-mpeg.a
+
+$(MPEGBUILDDIR)/%.o: $(MPEGSRCDIR)/%.c $(MPEGSRCDIR)/mpegplayer.make
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(MPEGCFLAGS) -c $< -o $@