2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
LIBNAME = libmpdemux.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
# Headers and header-dumpers
|
|
|
|
SRCS = mp3_hdr.c \
|
|
|
|
mpeg_hdr.c \
|
|
|
|
asfheader.c \
|
|
|
|
aviheader.c \
|
|
|
|
aviprint.c \
|
|
|
|
|
|
|
|
# Core
|
2006-07-06 13:09:45 +00:00
|
|
|
SRCS += extension.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
video.c \
|
|
|
|
|
|
|
|
# Miscellaneous
|
2006-07-31 17:39:17 +00:00
|
|
|
SRCS += parse_es.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
parse_mp4.c \
|
2006-07-19 22:13:50 +00:00
|
|
|
mpeg_packetizer.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
yuv4mpeg.c \
|
|
|
|
yuv4mpeg_ratio.c \
|
|
|
|
|
|
|
|
# Demuxers
|
|
|
|
SRCS += demuxer.c \
|
|
|
|
demux_aac.c \
|
|
|
|
demux_asf.c \
|
|
|
|
demux_audio.c \
|
|
|
|
demux_avi.c \
|
|
|
|
demux_demuxers.c \
|
|
|
|
demux_film.c \
|
|
|
|
demux_fli.c \
|
|
|
|
demux_lmlm4.c \
|
|
|
|
demux_mf.c \
|
|
|
|
demux_mov.c \
|
2005-07-10 17:14:12 +00:00
|
|
|
demux_mpc.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
demux_mpg.c \
|
|
|
|
demux_nsv.c \
|
|
|
|
demux_nuv.c \
|
|
|
|
demux_pva.c \
|
|
|
|
demux_rawaudio.c \
|
|
|
|
demux_rawvideo.c \
|
|
|
|
demux_realaud.c \
|
|
|
|
demux_real.c \
|
|
|
|
demux_roq.c \
|
|
|
|
demux_smjpeg.c \
|
|
|
|
demux_ts.c \
|
|
|
|
demux_ty.c \
|
|
|
|
demux_ty_osd.c \
|
|
|
|
demux_viv.c \
|
|
|
|
demux_vqf.c \
|
|
|
|
demux_y4m.c \
|
2006-05-08 21:41:15 +00:00
|
|
|
demux_mkv.c ebml.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(LIBVORBIS),yes)
|
|
|
|
SRCS += demux_ogg.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBDV),yes)
|
|
|
|
SRCS += demux_rawdv.c
|
|
|
|
endif
|
|
|
|
ifeq ($(GIF),yes)
|
|
|
|
SRCS += demux_gif.c
|
|
|
|
endif
|
2002-12-22 21:01:01 +00:00
|
|
|
ifeq ($(XMMS_PLUGINS),yes)
|
|
|
|
SRCS += demux_xmms.c
|
2006-07-06 13:06:21 +00:00
|
|
|
endif
|
2005-02-13 13:39:19 +00:00
|
|
|
ifneq ($(W32_LIB),)
|
|
|
|
SRCS += demux_avs.c
|
|
|
|
endif
|
2003-03-16 20:13:28 +00:00
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
# Muxers
|
2006-02-06 16:04:17 +00:00
|
|
|
MUXERS = muxer.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
muxer_avi.c \
|
|
|
|
muxer_mpeg.c \
|
|
|
|
muxer_rawaudio.c \
|
|
|
|
muxer_rawvideo.c \
|
|
|
|
|
2005-08-01 20:16:56 +00:00
|
|
|
LIBAV_INC =
|
|
|
|
ifeq ($(CONFIG_LIBAVUTIL),yes)
|
|
|
|
LIBAV_INC += -I../libavutil
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
|
|
|
LIBAV_INC += -I../libavcodec
|
|
|
|
endif
|
2004-04-11 14:26:04 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVFORMAT),yes)
|
2005-08-01 20:16:56 +00:00
|
|
|
LIBAV_INC += -I../libavformat
|
2006-02-06 16:04:17 +00:00
|
|
|
SRCS += demux_lavf.c
|
|
|
|
MUXERS += muxer_lavf.c
|
2006-01-09 19:35:44 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVFORMAT_SO),yes)
|
2006-02-06 16:04:17 +00:00
|
|
|
SRCS += demux_lavf.c
|
|
|
|
MUXERS += muxer_lavf.c
|
2004-04-11 14:26:04 +00:00
|
|
|
endif
|
2003-03-16 20:13:28 +00:00
|
|
|
|
2006-07-31 17:39:17 +00:00
|
|
|
ifeq ($(MENCODER),yes)
|
|
|
|
SRCS += $(MUXERS)
|
|
|
|
endif
|
2006-06-26 17:37:55 +00:00
|
|
|
|
2005-09-23 22:35:04 +00:00
|
|
|
ifeq ($(STREAMING_LIVE555),yes)
|
2005-06-19 22:52:55 +00:00
|
|
|
CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp
|
|
|
|
CPLUSPLUSINCLUDE = $(LIVE_INCLUDES)
|
|
|
|
endif
|
2006-02-06 16:04:17 +00:00
|
|
|
|
2001-10-20 19:04:56 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
2002-08-05 00:39:07 +00:00
|
|
|
OBJS += $(CPLUSPLUSSRCS:.cpp=.o)
|
2006-07-31 17:39:17 +00:00
|
|
|
INCLUDE = -I.. -I../stream -I../loader $(LIBAV_INC)
|
2006-07-27 10:08:17 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS)
|
2006-04-18 14:41:41 +00:00
|
|
|
CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) -D__STDC_LIMIT_MACROS
|
2002-08-30 14:35:17 +00:00
|
|
|
CPLUSPLUS = $(CC)
|
2001-10-20 19:04:56 +00:00
|
|
|
|
2002-08-05 00:39:07 +00:00
|
|
|
.SUFFIXES: .c .cpp .o
|
2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
2002-08-05 00:39:07 +00:00
|
|
|
.cpp.o:
|
|
|
|
$(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $<
|
2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
test: $(LIBNAME) test.c
|
2006-03-25 10:38:37 +00:00
|
|
|
$(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test \
|
2006-07-31 17:39:17 +00:00
|
|
|
./libmpdemux.a ../stream/stream.a \
|
|
|
|
../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \
|
2006-03-25 10:38:37 +00:00
|
|
|
../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o \
|
|
|
|
../m_option.o ../subreader.o \
|
|
|
|
$(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
|
2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
clean:
|
2006-07-31 17:39:17 +00:00
|
|
|
rm -f *.o *.a *~
|
2001-10-20 19:04:56 +00:00
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend test
|
2001-10-20 19:04:56 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|