first attempt at mp3 playback in x11 simulator using libmad

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@535 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2002-05-09 23:54:47 +00:00
parent 564bb3edb0
commit 4dbbca63d3
4 changed files with 272 additions and 1 deletions

View file

@ -57,6 +57,12 @@ APPS = tetris.c screensaver.c tree.c app.c play.c menu.c icons.c
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c \
button-x11.c io.c sleep.c $(APPS) $(FIRMSRCS)
ifdef MPEG_PLAY
SRCS += mpegplay.c
DEFINES += -DMPEG_PLAY
LIBS = -lmad
endif
OBJS := $(SRCS:c=o)
all: $(TARGET)
@ -108,7 +114,7 @@ sprintf.o: $(COMMON)/sprintf.c
$(CC) $(CFLAGS) -c $<
$(TARGET): $(OBJS)
$(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS)
$(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS) $(LIBS)
DEPS:=.deps