summaryrefslogtreecommitdiffstats
path: root/uisimulator/x11/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/Makefile')
-rw-r--r--uisimulator/x11/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 8076686f52..36e814e121 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -101,6 +101,14 @@ else
endif
COMMONSRCS = io.c
+ifeq ($(HAVE_MPEG_PLAY),1)
+ SOUNDSRC = mpegplay.c oss_sound.c
+ LDFLAGS += $(SOUND_LDFLAGS)
+ CFLAGS += $(SOUND_CFLAGS) -DHAVE_MPEG_PLAY
+else
+ SOUNDSRC =
+endif
+
FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c mp3_playback.c power.c\
powermgmt.c panic.c mp3data.c sprintf.c buffer.c timefuncs.c
@@ -117,7 +125,7 @@ endif
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \
button-x11.c thread.c sim_icons.c $(APPS) $(MENUS) $(FIRMSRCS) \
- $(COMMONSRCS) lcd-common.c fmradio.c
+ $(COMMONSRCS) $(SOUNDSRC) lcd-common.c fmradio.c
ROCKSRC := $(wildcard $(APPDIR)/plugins/*.c)
ROCKS := $(ROCKSRC:$(APPDIR)/plugins/%.c=$(OBJDIR)/%.rock)
@@ -321,6 +329,9 @@ $(OBJDIR)/lcd-player.o: $(DRIVERS)/lcd-player.c
$(OBJDIR)/radio.o: $(RECDIR)/radio.c
$(CC) $(APPCFLAGS) -c $< -o $@
+$(OBJDIR)/mpegplay.o: $(SIMCOMMON)/mpegplay.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
# these ones are simulator-specific
$(OBJDIR)/%.o: %.c