summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2002-05-12 11:34:08 +0000
committerDave Chapman <dave@dchapman.com>2002-05-12 11:34:08 +0000
commitebb57e83ba2c786a93d3f318028e1f9412e32229 (patch)
tree5154ca31f64bee37a0d9260fecb92f66510441fb
parent43bc6e62e410adfe4238012becca7a0522cf9435 (diff)
downloadrockbox-ebb57e83ba2c786a93d3f318028e1f9412e32229.tar.gz
rockbox-ebb57e83ba2c786a93d3f318028e1f9412e32229.zip
use internal copy of libmad
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@551 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/x11/Makefile49
1 files changed, 44 insertions, 5 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 1858ea5090..ae19b38862 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -23,13 +23,14 @@ APPDIR= ..
FIRMWAREDIR = ../../firmware
DRIVERS = $(FIRMWAREDIR)/drivers
COMMON = $(FIRMWAREDIR)/common
+LIBMADDIR = $(APPDIR)/common/libmad
CC = gcc
RM = rm -f
DEBUG = -g
-DISPLAY = -DHAVE_LCD_CHARCELLS
-#DISPLAY = -DHAVE_LCD_BITMAP
+#DISPLAY = -DHAVE_LCD_CHARCELLS
+DISPLAY = -DHAVE_LCD_BITMAP
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
-DHAVE_RECORDER_KEYPAD $(DISPLAY)
@@ -38,6 +39,8 @@ LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
INCLUDES = -I. -I$(DRIVERS) -I$(FIRMWAREDIR)
+LIBS =
+
UNAME := $(shell uname)
ifeq ($(UNAME),Linux)
INCLUDES += -I/usr/X11R6/include
@@ -58,9 +61,9 @@ 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
+ SRCS += mpegplay.c bit.c decoder.c fixed.c frame.c huffman.c layer12.c layer3.c stream.c synth.c timer.c version.c
+ DEFINES += -DMPEG_PLAY -DFPM_DEFAULT -DHAVE_CONFIG_H
+ INCLUDES += -I$(LIBMADDIR)
endif
OBJS := $(SRCS:c=o)
@@ -74,6 +77,42 @@ clean:
distclean: clean
$(RM) config.cache
+ifdef MPEG_PLAY
+bit.o: $(LIBMADDIR)/bit.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+decoder.o: $(LIBMADDIR)/decoder.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+fixed.o: $(LIBMADDIR)/fixed.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+frame.o: $(LIBMADDIR)/frame.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+huffman.o: $(LIBMADDIR)/huffman.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+layer12.o: $(LIBMADDIR)/layer12.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+layer3.o: $(LIBMADDIR)/layer3.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+stream.o: $(LIBMADDIR)/stream.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+synth.o: $(LIBMADDIR)/synth.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+timer.o: $(LIBMADDIR)/timer.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+version.o: $(LIBMADDIR)/version.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+endif
+
menu.o: $(APPDIR)/menu.c
$(CC) $(CFLAGS) -c $< -o $@