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
|
|
|
mf.c \
|
|
|
|
open.c \
|
|
|
|
url.c \
|
|
|
|
video.c \
|
|
|
|
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(STREAM_CACHE),yes)
|
|
|
|
SRCS += cache2.c
|
|
|
|
endif
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
# Miscellaneous
|
2006-07-06 13:09:45 +00:00
|
|
|
SRCS += cdinfo.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
cue_read.c \
|
|
|
|
parse_es.c \
|
|
|
|
parse_mp4.c \
|
|
|
|
yuv4mpeg.c \
|
|
|
|
yuv4mpeg_ratio.c \
|
|
|
|
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(CDDA),yes)
|
|
|
|
SRCS += cdda.c
|
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
|
|
|
SRCS += cddb.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
# Stream readers/writers
|
|
|
|
SRCS += stream.c \
|
|
|
|
stream_file.c \
|
|
|
|
stream_null.c \
|
|
|
|
|
2006-07-06 13:06:21 +00:00
|
|
|
ifeq ($(HAVE_DVD),yes)
|
|
|
|
SRCS += stream_dvd.c
|
|
|
|
endif
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(DVDNAV),yes)
|
|
|
|
SRCS += dvdnav_stream.c
|
|
|
|
endif
|
|
|
|
ifeq ($(VCD),yes)
|
|
|
|
SRCS += stream_vcd.c
|
|
|
|
endif
|
|
|
|
ifeq ($(FTP),yes)
|
|
|
|
SRCS += stream_ftp.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBSMBCLIENT),yes)
|
|
|
|
SRCS += stream_smb.c
|
|
|
|
endif
|
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
|
|
|
SRCS += stream_netstream.c
|
|
|
|
ifeq ($(STREAMING_LIVE555),yes)
|
|
|
|
SRCS += stream_livedotcom.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(VSTREAM),yes)
|
|
|
|
SRCS += stream_vstream.c
|
|
|
|
endif
|
2006-07-06 13:06:21 +00:00
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
# TV in
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(TV),yes)
|
|
|
|
SRCS += tv.c frequencies.c tvi_dummy.c
|
|
|
|
ifeq ($(TV_BSDBT848),yes)
|
|
|
|
SRCS += tvi_bsdbt848.c
|
|
|
|
endif
|
|
|
|
ifeq ($(TV_V4L2),yes)
|
|
|
|
SRCS += tvi_v4l2.c audio_in.c
|
2006-07-10 21:32:19 +00:00
|
|
|
ifeq ($(PVR),yes)
|
|
|
|
SRCS += stream_pvr.c
|
|
|
|
endif
|
2006-07-06 13:09:45 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(TV_V4L),yes)
|
|
|
|
SRCS += tvi_v4l.c audio_in.c
|
|
|
|
endif
|
2006-07-06 20:49:23 +00:00
|
|
|
ifneq ($(TV_V4L)$(TV_V4L2),)
|
2006-07-06 13:09:45 +00:00
|
|
|
ifeq ($(ALSA1X),yes)
|
|
|
|
SRCS += ai_alsa1x.c
|
|
|
|
endif
|
|
|
|
ifeq ($(ALSA9),yes)
|
|
|
|
SRCS += ai_alsa.c
|
|
|
|
endif
|
|
|
|
ifeq ($(OSS),yes)
|
|
|
|
SRCS += ai_oss.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2005-06-19 22:52:55 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
|
|
|
SRCS += asf_streaming.c \
|
|
|
|
http.c \
|
|
|
|
network.c \
|
|
|
|
cookies.c \
|
|
|
|
asf_mmst_streaming.c \
|
|
|
|
pnm.c \
|
|
|
|
rtp.c \
|
2006-06-23 20:17:12 +00:00
|
|
|
rtsp.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
|
|
|
SRCS += realrtsp/asmrp.c \
|
|
|
|
realrtsp/real.c \
|
|
|
|
realrtsp/rmff.c \
|
|
|
|
realrtsp/sdpplin.c \
|
|
|
|
realrtsp/xbuffer.c \
|
|
|
|
|
2006-06-23 21:38:28 +00:00
|
|
|
SRCS += librtsp/rtsp.c \
|
2006-06-26 21:27:57 +00:00
|
|
|
librtsp/rtsp_rtp.c \
|
2006-06-23 21:38:28 +00:00
|
|
|
librtsp/rtsp_session.c \
|
|
|
|
|
2006-06-26 17:37:55 +00:00
|
|
|
SRCS += freesdp/common.c \
|
|
|
|
freesdp/errorlist.c \
|
|
|
|
freesdp/parser.c \
|
|
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DVBIN),yes)
|
|
|
|
SRCS += dvbin.c
|
|
|
|
SRCS += dvb_tune.c
|
|
|
|
endif
|
|
|
|
|
2006-02-06 16:04:17 +00:00
|
|
|
ifeq ($(MENCODER),yes)
|
|
|
|
SRCS += $(MUXERS)
|
|
|
|
endif
|
|
|
|
|
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-12 23:51:41 +00:00
|
|
|
INCLUDE = -I.. -I../loader $(LIBAV_INC)
|
2003-08-17 20:56:40 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC)
|
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 \
|
|
|
|
./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \
|
|
|
|
../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-06-23 21:38:28 +00:00
|
|
|
rm -f *.o *.a *~ \
|
|
|
|
realrtsp/*.o realrtsp/*.a realrtsp/*~ \
|
2006-06-26 17:37:55 +00:00
|
|
|
librtsp/*.o librtsp/*.a librtsp/*~ \
|
|
|
|
freesdp/*.o freesdp/*.a freesdp/*~
|
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
|