2008-06-17 11:40:04 +00:00
|
|
|
# MPlayer Makefile
|
|
|
|
#
|
|
|
|
# copyright (c) 2008 Diego Biurrun
|
|
|
|
# Rewritten entirely from a set of Makefiles written by Arpi and many others.
|
|
|
|
#
|
|
|
|
# This file is part of MPlayer.
|
|
|
|
#
|
|
|
|
# MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# MPlayer is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
2008-05-09 17:51:44 +00:00
|
|
|
###### variable declarations #######
|
|
|
|
|
2009-04-20 13:51:47 +00:00
|
|
|
SRCS_AUDIO_INPUT-$(ALSA1X) += stream/ai_alsa1x.c
|
|
|
|
SRCS_AUDIO_INPUT-$(ALSA9) += stream/ai_alsa.c
|
|
|
|
SRCS_AUDIO_INPUT-$(OSS) += stream/ai_oss.c
|
|
|
|
SRCS_COMMON-$(AUDIO_INPUT) += $(SRCS_AUDIO_INPUT-yes)
|
2011-01-26 17:40:52 +00:00
|
|
|
SRCS_COMMON-$(BITMAP_FONT) += sub/font_load.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(CDDA) += stream/stream_cdda.c \
|
|
|
|
stream/cdinfo.c
|
|
|
|
SRCS_COMMON-$(CDDB) += stream/stream_cddb.c
|
|
|
|
SRCS_COMMON-$(DVBIN) += stream/dvb_tune.c \
|
|
|
|
stream/stream_dvb.c
|
|
|
|
SRCS_COMMON-$(DVDNAV) += stream/stream_dvdnav.c
|
2009-01-10 13:51:02 +00:00
|
|
|
SRCS_COMMON-$(DVDNAV_INTERNAL) += libdvdnav/dvdnav.c \
|
|
|
|
libdvdnav/highlight.c \
|
|
|
|
libdvdnav/navigation.c \
|
|
|
|
libdvdnav/read_cache.c \
|
|
|
|
libdvdnav/remap.c \
|
|
|
|
libdvdnav/searching.c \
|
|
|
|
libdvdnav/settings.c \
|
|
|
|
libdvdnav/vm/decoder.c \
|
|
|
|
libdvdnav/vm/vm.c \
|
|
|
|
libdvdnav/vm/vmcmd.c \
|
|
|
|
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(DVDREAD) += stream/stream_dvd.c \
|
|
|
|
stream/stream_dvd_common.c
|
2009-01-08 19:28:28 +00:00
|
|
|
SRCS_COMMON-$(DVDREAD_INTERNAL) += libdvdread4/bitreader.c \
|
|
|
|
libdvdread4/dvd_input.c \
|
|
|
|
libdvdread4/dvd_reader.c \
|
|
|
|
libdvdread4/dvd_udf.c \
|
|
|
|
libdvdread4/ifo_print.c \
|
|
|
|
libdvdread4/ifo_read.c \
|
|
|
|
libdvdread4/md5.c \
|
|
|
|
libdvdread4/nav_print.c \
|
|
|
|
libdvdread4/nav_read.c \
|
2008-04-25 08:25:17 +00:00
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(FAAD) += libmpcodecs/ad_faad.c
|
2009-02-08 03:42:00 +00:00
|
|
|
SRCS_COMMON-$(FASTMEMCPY) += libvo/aclib.c
|
2010-10-31 00:19:56 +00:00
|
|
|
SRCS_COMMON-$(FFMPEG) += libmpcodecs/vf_pp.c \
|
|
|
|
av_opts.c \
|
2010-05-14 00:54:31 +00:00
|
|
|
libaf/af_lavcac3enc.c \
|
2008-05-10 18:54:10 +00:00
|
|
|
libaf/af_lavcresample.c \
|
2008-04-24 13:04:50 +00:00
|
|
|
libmpcodecs/ad_ffmpeg.c \
|
|
|
|
libmpcodecs/vd_ffmpeg.c \
|
|
|
|
libmpcodecs/vf_lavc.c \
|
|
|
|
libmpcodecs/vf_lavcdeint.c \
|
|
|
|
libmpcodecs/vf_screenshot.c \
|
2009-07-26 04:07:49 +00:00
|
|
|
libmpcodecs/vf_uspp.c \
|
2010-10-31 00:19:56 +00:00
|
|
|
libmpdemux/demux_lavf.c \
|
|
|
|
stream/stream_ffmpeg.c \
|
2011-01-26 17:40:52 +00:00
|
|
|
sub/av_sub.c \
|
2008-04-24 13:04:50 +00:00
|
|
|
|
2010-11-06 18:02:44 +00:00
|
|
|
# Requires a new enough libavutil that installs eval.h
|
|
|
|
SRCS_COMMON-$(FFMPEG_EVAL_API) += libmpcodecs/vf_geq.c \
|
2011-07-17 21:15:08 +00:00
|
|
|
libmpcodecs/vf_qp.c \
|
2010-11-06 18:02:44 +00:00
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
# These filters use private headers and do not work with shared libavcodec.
|
2010-10-31 00:19:56 +00:00
|
|
|
SRCS_COMMON-$(FFMPEG_INTERNALS) += libmpcodecs/vf_fspp.c \
|
2008-04-24 13:04:50 +00:00
|
|
|
libmpcodecs/vf_mcdeint.c \
|
|
|
|
libmpcodecs/vf_spp.c \
|
|
|
|
|
2011-01-26 17:40:52 +00:00
|
|
|
SRCS_COMMON-$(FREETYPE) += sub/font_load_ft.c
|
2010-10-31 00:19:56 +00:00
|
|
|
SRCS_COMMON-$(FTP) += stream/stream_ftp.c
|
|
|
|
SRCS_COMMON-$(GIF) += libmpdemux/demux_gif.c
|
|
|
|
SRCS_COMMON-$(HAVE_POSIX_SELECT) += libmpcodecs/vf_bmovl.c
|
|
|
|
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += libaf/af_export.c osdep/mmap_anon.c
|
|
|
|
SRCS_COMMON-$(JPEG) += libmpcodecs/vd_ijpg.c
|
|
|
|
SRCS_COMMON-$(LADSPA) += libaf/af_ladspa.c
|
|
|
|
SRCS_COMMON-$(LIBA52) += libmpcodecs/ad_liba52.c
|
2011-01-26 17:40:52 +00:00
|
|
|
SRCS_COMMON-$(LIBASS) += libmpcodecs/vf_ass.c \
|
|
|
|
sub/ass_mp.c \
|
2011-01-16 18:03:08 +00:00
|
|
|
sub/sd_ass.c \
|
2009-11-17 16:09:17 +00:00
|
|
|
|
2010-07-05 17:04:46 +00:00
|
|
|
SRCS_COMMON-$(LIBBLURAY) += stream/stream_bluray.c
|
2009-04-02 19:01:57 +00:00
|
|
|
SRCS_COMMON-$(LIBBS2B) += libaf/af_bs2b.c
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(LIBDCA) += libmpcodecs/ad_libdca.c
|
|
|
|
SRCS_COMMON-$(LIBDV) += libmpcodecs/ad_libdv.c \
|
2008-04-24 22:05:43 +00:00
|
|
|
libmpcodecs/vd_libdv.c \
|
|
|
|
libmpdemux/demux_rawdv.c
|
2008-04-24 22:30:50 +00:00
|
|
|
SRCS_COMMON-$(LIBDVDCSS_INTERNAL) += libdvdcss/css.c \
|
2008-04-24 22:27:01 +00:00
|
|
|
libdvdcss/device.c \
|
|
|
|
libdvdcss/error.c \
|
|
|
|
libdvdcss/ioctl.c \
|
|
|
|
libdvdcss/libdvdcss.c \
|
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(LIBMAD) += libmpcodecs/ad_libmad.c
|
2009-04-20 13:51:47 +00:00
|
|
|
|
2008-04-24 22:05:43 +00:00
|
|
|
SRCS_COMMON-$(LIBNEMESI) += libmpdemux/demux_nemesi.c \
|
|
|
|
stream/stream_nemesi.c
|
|
|
|
SRCS_COMMON-$(LIBNUT) += libmpdemux/demux_nut.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(LIBSMBCLIENT) += stream/stream_smb.c
|
2010-05-30 12:37:34 +00:00
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(LIBTHEORA) += libmpcodecs/vd_theora.c
|
2008-08-07 12:35:34 +00:00
|
|
|
SRCS_COMMON-$(LIVE555) += libmpdemux/demux_rtp.cpp \
|
|
|
|
libmpdemux/demux_rtp_codec.cpp \
|
2008-08-07 20:32:02 +00:00
|
|
|
stream/stream_live555.c
|
2008-08-07 10:57:40 +00:00
|
|
|
SRCS_COMMON-$(MACOSX_FINDER) += osdep/macosx_finder_args.c
|
2008-11-30 13:22:34 +00:00
|
|
|
SRCS_COMMON-$(MNG) += libmpdemux/demux_mng.c
|
2010-06-30 09:55:14 +00:00
|
|
|
SRCS_COMMON-$(MPG123) += libmpcodecs/ad_mpg123.c
|
2009-04-20 13:52:14 +00:00
|
|
|
|
2008-04-24 22:05:43 +00:00
|
|
|
SRCS_COMMON-$(MUSEPACK) += libmpcodecs/ad_mpc.c \
|
|
|
|
libmpdemux/demux_mpc.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(NATIVE_RTSP) += stream/stream_rtsp.c \
|
|
|
|
stream/freesdp/common.c \
|
|
|
|
stream/freesdp/errorlist.c \
|
|
|
|
stream/freesdp/parser.c \
|
|
|
|
stream/librtsp/rtsp.c \
|
|
|
|
stream/librtsp/rtsp_rtp.c \
|
|
|
|
stream/librtsp/rtsp_session.c \
|
|
|
|
|
2008-04-08 18:25:30 +00:00
|
|
|
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
|
|
|
|
SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
|
2008-04-09 14:13:30 +00:00
|
|
|
SRCS_COMMON-$(NEED_MMAP) += osdep/mmap-os2.c
|
2008-04-08 18:25:30 +00:00
|
|
|
SRCS_COMMON-$(NEED_SETENV) += osdep/setenv.c
|
|
|
|
SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
|
|
|
|
SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
|
|
|
|
SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
|
|
|
|
SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
|
2010-07-17 13:14:53 +00:00
|
|
|
SRCS_COMMON-$(NETWORKING) += stream/stream_netstream.c \
|
2008-04-24 13:38:12 +00:00
|
|
|
stream/asf_mmst_streaming.c \
|
|
|
|
stream/asf_streaming.c \
|
|
|
|
stream/cookies.c \
|
|
|
|
stream/http.c \
|
|
|
|
stream/network.c \
|
|
|
|
stream/pnm.c \
|
|
|
|
stream/rtp.c \
|
|
|
|
stream/udp.c \
|
|
|
|
stream/tcp.c \
|
|
|
|
stream/stream_rtp.c \
|
|
|
|
stream/stream_udp.c \
|
2008-05-01 16:22:52 +00:00
|
|
|
stream/librtsp/rtsp.c \
|
2008-04-24 13:38:12 +00:00
|
|
|
stream/realrtsp/asmrp.c \
|
|
|
|
stream/realrtsp/real.c \
|
|
|
|
stream/realrtsp/rmff.c \
|
|
|
|
stream/realrtsp/sdpplin.c \
|
|
|
|
stream/realrtsp/xbuffer.c \
|
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(PNG) += libmpcodecs/vd_mpng.c
|
2009-02-10 15:34:44 +00:00
|
|
|
SRCS_COMMON-$(PRIORITY) += osdep/priority.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(PVR) += stream/stream_pvr.c
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(QTX_CODECS) += libmpcodecs/ad_qtaudio.c \
|
|
|
|
libmpcodecs/vd_qtvideo.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(RADIO) += stream/stream_radio.c
|
|
|
|
SRCS_COMMON-$(RADIO_CAPTURE) += stream/audio_in.c
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(REAL_CODECS) += libmpcodecs/ad_realaud.c \
|
|
|
|
libmpcodecs/vd_realvid.c
|
|
|
|
SRCS_COMMON-$(SPEEX) += libmpcodecs/ad_speex.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(STREAM_CACHE) += stream/cache2.c
|
2008-04-24 22:05:43 +00:00
|
|
|
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(TV) += stream/stream_tv.c stream/tv.c \
|
|
|
|
stream/frequencies.c stream/tvi_dummy.c
|
|
|
|
SRCS_COMMON-$(TV_BSDBT848) += stream/tvi_bsdbt848.c
|
2009-12-09 17:52:18 +00:00
|
|
|
SRCS_COMMON-$(TV_DSHOW) += stream/tvi_dshow.c \
|
|
|
|
loader/dshow/guids.c \
|
|
|
|
loader/dshow/mediatype.c \
|
|
|
|
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(TV_V4L1) += stream/tvi_v4l.c stream/audio_in.c
|
|
|
|
SRCS_COMMON-$(TV_V4L2) += stream/tvi_v4l2.c stream/audio_in.c
|
2011-01-26 17:40:52 +00:00
|
|
|
SRCS_COMMON-$(UNRAR_EXEC) += sub/unrar_exec.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(VCD) += stream/stream_vcd.c
|
2009-06-14 21:09:35 +00:00
|
|
|
SRCS_COMMON-$(VORBIS) += libmpcodecs/ad_libvorbis.c \
|
|
|
|
libmpdemux/demux_ogg.c
|
2008-04-24 13:38:12 +00:00
|
|
|
SRCS_COMMON-$(VSTREAM) += stream/stream_vstream.c
|
2010-02-12 13:45:19 +00:00
|
|
|
SRCS_QTX_EMULATION += loader/wrapper.S
|
|
|
|
SRCS_COMMON-$(QTX_EMULATION) += $(SRCS_QTX_EMULATION)
|
|
|
|
SRCS_WIN32_EMULATION += loader/elfdll.c \
|
2008-04-28 14:01:58 +00:00
|
|
|
loader/ext.c \
|
|
|
|
loader/ldt_keeper.c \
|
|
|
|
loader/module.c \
|
|
|
|
loader/pe_image.c \
|
|
|
|
loader/pe_resource.c \
|
|
|
|
loader/registry.c \
|
|
|
|
loader/resource.c \
|
|
|
|
loader/win32.c \
|
|
|
|
|
2010-02-12 13:45:19 +00:00
|
|
|
SRCS_COMMON-$(WIN32_EMULATION) += $(SRCS_WIN32_EMULATION)
|
|
|
|
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(WIN32DLL) += libmpcodecs/ad_acm.c \
|
|
|
|
libmpcodecs/ad_dmo.c \
|
|
|
|
libmpcodecs/ad_dshow.c \
|
|
|
|
libmpcodecs/ad_twin.c \
|
|
|
|
libmpcodecs/vd_dmo.c \
|
|
|
|
libmpcodecs/vd_dshow.c \
|
|
|
|
libmpcodecs/vd_vfw.c \
|
|
|
|
libmpcodecs/vd_vfwex.c \
|
2008-04-24 22:05:43 +00:00
|
|
|
libmpdemux/demux_avs.c \
|
2008-04-28 14:01:58 +00:00
|
|
|
loader/afl.c \
|
2008-06-08 10:43:30 +00:00
|
|
|
loader/drv.c \
|
2008-04-28 14:01:58 +00:00
|
|
|
loader/vfl.c \
|
|
|
|
loader/dshow/DS_AudioDecoder.c \
|
|
|
|
loader/dshow/DS_Filter.c \
|
|
|
|
loader/dshow/DS_VideoDecoder.c \
|
|
|
|
loader/dshow/allocator.c \
|
|
|
|
loader/dshow/cmediasample.c \
|
2010-03-08 19:57:37 +00:00
|
|
|
loader/dshow/graph.c \
|
2008-04-28 14:01:58 +00:00
|
|
|
loader/dshow/guids.c \
|
|
|
|
loader/dshow/inputpin.c \
|
|
|
|
loader/dshow/mediatype.c \
|
|
|
|
loader/dshow/outputpin.c \
|
|
|
|
loader/dmo/DMO_AudioDecoder.c \
|
|
|
|
loader/dmo/DMO_VideoDecoder.c \
|
|
|
|
loader/dmo/buffer.c \
|
|
|
|
loader/dmo/dmo.c \
|
|
|
|
loader/dmo/dmo_guids.c \
|
2008-04-24 13:04:50 +00:00
|
|
|
|
|
|
|
SRCS_COMMON-$(XANIM_CODECS) += libmpcodecs/vd_xanim.c
|
2008-04-24 22:05:43 +00:00
|
|
|
SRCS_COMMON-$(XMMS_PLUGINS) += libmpdemux/demux_xmms.c
|
2008-04-24 13:04:50 +00:00
|
|
|
SRCS_COMMON-$(XVID4) += libmpcodecs/vd_xvid4.c
|
2009-04-20 14:02:40 +00:00
|
|
|
SRCS_COMMON = asxparser.c \
|
2009-10-31 21:03:48 +00:00
|
|
|
av_log.c \
|
2010-05-20 20:50:18 +00:00
|
|
|
bstr.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
codec-cfg.c \
|
|
|
|
cpudetect.c \
|
2009-05-08 20:50:26 +00:00
|
|
|
defaultopts.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
edl.c \
|
|
|
|
fmt-conversion.c \
|
|
|
|
m_config.c \
|
|
|
|
m_option.c \
|
|
|
|
m_struct.c \
|
2010-03-09 17:10:06 +00:00
|
|
|
mp_msg.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
mpcommon.c \
|
|
|
|
parser-cfg.c \
|
2010-03-20 23:38:27 +00:00
|
|
|
path.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
playtree.c \
|
|
|
|
playtreeparser.c \
|
|
|
|
subopt-helper.c \
|
2009-05-08 20:50:26 +00:00
|
|
|
talloc.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libaf/af.c \
|
|
|
|
libaf/af_center.c \
|
|
|
|
libaf/af_channels.c \
|
|
|
|
libaf/af_comp.c \
|
|
|
|
libaf/af_delay.c \
|
|
|
|
libaf/af_dummy.c \
|
|
|
|
libaf/af_equalizer.c \
|
|
|
|
libaf/af_extrastereo.c \
|
|
|
|
libaf/af_format.c \
|
|
|
|
libaf/af_gate.c \
|
|
|
|
libaf/af_hrtf.c \
|
|
|
|
libaf/af_karaoke.c \
|
|
|
|
libaf/af_pan.c \
|
|
|
|
libaf/af_resample.c \
|
|
|
|
libaf/af_scaletempo.c \
|
|
|
|
libaf/af_sinesuppress.c \
|
|
|
|
libaf/af_stats.c \
|
|
|
|
libaf/af_sub.c \
|
|
|
|
libaf/af_surround.c \
|
|
|
|
libaf/af_sweep.c \
|
|
|
|
libaf/af_tools.c \
|
|
|
|
libaf/af_volnorm.c \
|
|
|
|
libaf/af_volume.c \
|
|
|
|
libaf/filter.c \
|
|
|
|
libaf/format.c \
|
|
|
|
libaf/reorder_ch.c \
|
|
|
|
libaf/window.c \
|
|
|
|
libmpcodecs/ad.c \
|
|
|
|
libmpcodecs/ad_alaw.c \
|
|
|
|
libmpcodecs/ad_dk3adpcm.c \
|
|
|
|
libmpcodecs/ad_dvdpcm.c \
|
2010-01-11 19:43:19 +00:00
|
|
|
libmpcodecs/ad_hwac3.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/ad_hwmpa.c \
|
|
|
|
libmpcodecs/ad_imaadpcm.c \
|
|
|
|
libmpcodecs/ad_msadpcm.c \
|
|
|
|
libmpcodecs/ad_pcm.c \
|
|
|
|
libmpcodecs/dec_audio.c \
|
2009-11-07 16:40:42 +00:00
|
|
|
libmpcodecs/dec_teletext.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/dec_video.c \
|
|
|
|
libmpcodecs/img_format.c \
|
|
|
|
libmpcodecs/mp_image.c \
|
|
|
|
libmpcodecs/pullup.c \
|
|
|
|
libmpcodecs/vd.c \
|
|
|
|
libmpcodecs/vd_hmblck.c \
|
|
|
|
libmpcodecs/vd_lzo.c \
|
|
|
|
libmpcodecs/vd_mpegpes.c \
|
|
|
|
libmpcodecs/vd_mtga.c \
|
|
|
|
libmpcodecs/vd_null.c \
|
|
|
|
libmpcodecs/vd_raw.c \
|
|
|
|
libmpcodecs/vd_sgi.c \
|
|
|
|
libmpcodecs/vf.c \
|
|
|
|
libmpcodecs/vf_1bpp.c \
|
|
|
|
libmpcodecs/vf_2xsai.c \
|
|
|
|
libmpcodecs/vf_blackframe.c \
|
|
|
|
libmpcodecs/vf_boxblur.c \
|
|
|
|
libmpcodecs/vf_crop.c \
|
|
|
|
libmpcodecs/vf_cropdetect.c \
|
|
|
|
libmpcodecs/vf_decimate.c \
|
|
|
|
libmpcodecs/vf_delogo.c \
|
|
|
|
libmpcodecs/vf_denoise3d.c \
|
|
|
|
libmpcodecs/vf_detc.c \
|
|
|
|
libmpcodecs/vf_dint.c \
|
|
|
|
libmpcodecs/vf_divtc.c \
|
|
|
|
libmpcodecs/vf_down3dright.c \
|
|
|
|
libmpcodecs/vf_dsize.c \
|
|
|
|
libmpcodecs/vf_dvbscale.c \
|
|
|
|
libmpcodecs/vf_eq.c \
|
|
|
|
libmpcodecs/vf_eq2.c \
|
|
|
|
libmpcodecs/vf_expand.c \
|
|
|
|
libmpcodecs/vf_field.c \
|
|
|
|
libmpcodecs/vf_fil.c \
|
|
|
|
libmpcodecs/vf_filmdint.c \
|
2010-03-05 23:13:08 +00:00
|
|
|
libmpcodecs/vf_fixpts.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/vf_flip.c \
|
|
|
|
libmpcodecs/vf_format.c \
|
|
|
|
libmpcodecs/vf_framestep.c \
|
2009-07-07 02:01:36 +00:00
|
|
|
libmpcodecs/vf_gradfun.c \
|
2010-02-13 15:26:18 +00:00
|
|
|
libmpcodecs/vf_halfpack.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/vf_harddup.c \
|
|
|
|
libmpcodecs/vf_hqdn3d.c \
|
|
|
|
libmpcodecs/vf_hue.c \
|
|
|
|
libmpcodecs/vf_il.c \
|
|
|
|
libmpcodecs/vf_ilpack.c \
|
|
|
|
libmpcodecs/vf_ivtc.c \
|
|
|
|
libmpcodecs/vf_kerndeint.c \
|
|
|
|
libmpcodecs/vf_mirror.c \
|
|
|
|
libmpcodecs/vf_noformat.c \
|
|
|
|
libmpcodecs/vf_noise.c \
|
|
|
|
libmpcodecs/vf_ow.c \
|
2010-10-30 04:55:31 +00:00
|
|
|
libmpcodecs/vf_palette.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/vf_perspective.c \
|
|
|
|
libmpcodecs/vf_phase.c \
|
|
|
|
libmpcodecs/vf_pp7.c \
|
|
|
|
libmpcodecs/vf_pullup.c \
|
|
|
|
libmpcodecs/vf_rectangle.c \
|
|
|
|
libmpcodecs/vf_remove_logo.c \
|
|
|
|
libmpcodecs/vf_rgbtest.c \
|
|
|
|
libmpcodecs/vf_rotate.c \
|
|
|
|
libmpcodecs/vf_sab.c \
|
|
|
|
libmpcodecs/vf_scale.c \
|
|
|
|
libmpcodecs/vf_smartblur.c \
|
|
|
|
libmpcodecs/vf_softpulldown.c \
|
2010-10-22 17:46:12 +00:00
|
|
|
libmpcodecs/vf_stereo3d.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpcodecs/vf_softskip.c \
|
|
|
|
libmpcodecs/vf_swapuv.c \
|
|
|
|
libmpcodecs/vf_telecine.c \
|
|
|
|
libmpcodecs/vf_test.c \
|
|
|
|
libmpcodecs/vf_tfields.c \
|
|
|
|
libmpcodecs/vf_tile.c \
|
|
|
|
libmpcodecs/vf_tinterlace.c \
|
|
|
|
libmpcodecs/vf_unsharp.c \
|
|
|
|
libmpcodecs/vf_vo.c \
|
|
|
|
libmpcodecs/vf_yadif.c \
|
|
|
|
libmpcodecs/vf_yuvcsp.c \
|
|
|
|
libmpcodecs/vf_yvu9.c \
|
|
|
|
libmpdemux/aac_hdr.c \
|
|
|
|
libmpdemux/asfheader.c \
|
|
|
|
libmpdemux/aviheader.c \
|
|
|
|
libmpdemux/aviprint.c \
|
|
|
|
libmpdemux/demuxer.c \
|
|
|
|
libmpdemux/demux_aac.c \
|
|
|
|
libmpdemux/demux_asf.c \
|
|
|
|
libmpdemux/demux_audio.c \
|
|
|
|
libmpdemux/demux_avi.c \
|
|
|
|
libmpdemux/demux_demuxers.c \
|
EDL: add support for new EDL file format
The timeline code previously added to support Matroska ordered
chapters allows constructing a playback timeline from segments picked
from multiple source files. Add support for a new EDL format to make
this machinery available for use with file formats other than Matroska
and in a manner easier to use than creating files with ordered
chapters.
Unlike the old -edl option which specifies an additional file with
edits to apply to the video file given as the main argument, the new
EDL format is used by giving only the EDL file as the file to play;
that file then contains the filename(s) to use as source files where
actual video segments come from. Filename paths in the EDL file are
ignored. Currently the source files are only searched for in the
directory of the EDL file; support for a search path option will
likely be added in the future.
Format of the EDL files
The first line in the file must be "mplayer EDL file, version 2".
The rest of the lines belong to one of these classes:
1) lines specifying source files
2) empty lines
3) lines specifying timeline segments.
Lines beginning with '<' specify source files. These lines first
contain an identifier used to refer to the source file later, then the
filename separated by whitespace. The identifier must start with a
letter. Filenames that start or end with whitespace or contain
newlines are not supported.
On other lines '#' characters delimit comments. Lines that contain
only whitespace after comments have been removed are ignored.
Timeline segments must appear in the file in chronological order. Each
segment has the following information associated with it:
- duration
- output start time
- output end time (= output start time + duration)
- source id (specifies the file the content of the segment comes from)
- source start time (timestamp in the source file)
- source end time (= source start time + duration)
The output timestamps must form a continuous timeline from 0 to the
end of the last segment, such that each new segment starts from the
time the previous one ends at. Source files and times may change
arbitrarily between segments.
The general format for lines specifying timeline segments is
[output time info] source_id [source time info]
source_id must be an identifier defined on a '<' line. Both the time
info parts consists of zero or more of the following elements:
1) timestamp
2) -timestamp
3) +duration
4) *
5) -*
, where "timestamp" and "duration" are decimal numbers (computations
are done with nanosecond precision). Whitespace around "+" and "-" is
optional. 1) and 2) specify start and end time of the segment on
output or source side. 3) specifies duration; the semantics are the
same whether this appears on output or source side. 4) and 5) are
ignored on the output side (they're always implicitly assumed). On the
source side 4) specifies that the segment starts where the previous
segment _using this source_ ended; if there was no previous segment
time 0 is used. 5) specifies that the segment ends where the next
segment using this source starts.
Redundant information may be omitted. It will be filled in using the
following rules:
- output start for first segment is 0
- two of [output start, output end, duration] imply third
- two of [source start, source end, duration] imply third
- output start = output end of previous segment
- output end = output start of next segment
- if "*", source start = source end of earlier segment
- if "-*", source end = source start of a later segment
As a special rule, a last zero-duration segment without a source
specification may appear. This will produce no corresponding segment
in the resulting timeline, but can be used as syntax to specify the
end time of the timeline (with effect equal to adding -time on the
previous line).
Examples:
----- begin -----
mplayer EDL file, version 2
< id1 filename
0 id1 123
100 id1 456
200 id1 789
300
----- end -----
All segments come from the source file "filename". First segment
(output time 0-100) comes from time 123-223, second 456-556, third
789-889.
----- begin -----
mplayer EDL file, version 2
< f filename
f 60-120
f 600-660
f 30- 90
----- end -----
Play first seconds 60-120 from the file, then 600-660, then 30-90.
----- begin -----
mplayer EDL file, version 2
< id1 filename1
< id2 filename2
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
----- end -----
This plays time 0-10 from filename1, then 0-10 from filename1, then
10-20 from filename1, then 10-20 from filename2, then 20-30 from
filename1, then 20-30 from filename2.
----- begin -----
mplayer EDL file, version 2
< t1 filename1
< t2 filename2
t1 * +2 # segment 1
+2 t2 100 # segment 2
t1 * # segment 3
t2 *-* # segment 4
t1 3 -* # segment 5
+0.111111 t2 102.5 # segment 6
7.37 t1 5 +1 # segment 7
----- end -----
This rather pathological example illustrates the rules for filling in
implied data. All the values can be determined by recursively applying
the rules given above, and the full end result is this:
+2 0-2 t1 0-2 # segment 1
+2 2-4 t2 100-102 # segment 2
+0.758889 4-4.758889 t1 2-2.758889 # segment 3
+0.5 4.4758889-5.258889 t2 102-102.5 # segment 4
+2 5.258889-7.258889 t1 3-5 # segment 5
+0.111111 7.258889-7.37 t2 102.5-102.611111 # segment 6
+1 7.37-8.37 t1 5-6 # segment 7
2011-02-14 11:05:35 +00:00
|
|
|
libmpdemux/demux_edl.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libmpdemux/demux_film.c \
|
|
|
|
libmpdemux/demux_fli.c \
|
|
|
|
libmpdemux/demux_lmlm4.c \
|
|
|
|
libmpdemux/demux_mf.c \
|
|
|
|
libmpdemux/demux_mkv.c \
|
|
|
|
libmpdemux/demux_mov.c \
|
|
|
|
libmpdemux/demux_mpg.c \
|
|
|
|
libmpdemux/demux_nsv.c \
|
|
|
|
libmpdemux/demux_pva.c \
|
|
|
|
libmpdemux/demux_rawaudio.c \
|
|
|
|
libmpdemux/demux_rawvideo.c \
|
|
|
|
libmpdemux/demux_realaud.c \
|
|
|
|
libmpdemux/demux_real.c \
|
|
|
|
libmpdemux/demux_roq.c \
|
|
|
|
libmpdemux/demux_smjpeg.c \
|
|
|
|
libmpdemux/demux_ts.c \
|
|
|
|
libmpdemux/demux_ty.c \
|
|
|
|
libmpdemux/demux_viv.c \
|
|
|
|
libmpdemux/demux_vqf.c \
|
|
|
|
libmpdemux/demux_y4m.c \
|
|
|
|
libmpdemux/ebml.c \
|
|
|
|
libmpdemux/extension.c \
|
|
|
|
libmpdemux/mf.c \
|
|
|
|
libmpdemux/mp3_hdr.c \
|
|
|
|
libmpdemux/mp_taglists.c \
|
|
|
|
libmpdemux/mpeg_hdr.c \
|
|
|
|
libmpdemux/mpeg_packetizer.c \
|
|
|
|
libmpdemux/parse_es.c \
|
|
|
|
libmpdemux/parse_mp4.c \
|
|
|
|
libmpdemux/video.c \
|
|
|
|
libmpdemux/yuv4mpeg.c \
|
|
|
|
libmpdemux/yuv4mpeg_ratio.c \
|
|
|
|
libvo/osd.c \
|
2010-12-20 03:53:28 +00:00
|
|
|
osdep/numcores.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
osdep/$(GETCH) \
|
|
|
|
osdep/$(TIMER) \
|
|
|
|
stream/open.c \
|
|
|
|
stream/stream.c \
|
|
|
|
stream/stream_cue.c \
|
|
|
|
stream/stream_file.c \
|
|
|
|
stream/stream_mf.c \
|
|
|
|
stream/stream_null.c \
|
|
|
|
stream/url.c \
|
2011-01-26 17:40:52 +00:00
|
|
|
sub/sub.c \
|
|
|
|
sub/sub_cc.c \
|
2011-01-16 18:03:08 +00:00
|
|
|
sub/dec_sub.c \
|
2011-01-26 17:40:52 +00:00
|
|
|
sub/find_sub.c \
|
2011-02-26 19:47:49 +00:00
|
|
|
sub/find_subfiles.c \
|
2011-01-26 17:40:52 +00:00
|
|
|
sub/spudec.c \
|
2010-05-18 22:05:25 +00:00
|
|
|
sub/subassconvert.c \
|
2011-01-26 17:40:52 +00:00
|
|
|
sub/subreader.c \
|
|
|
|
sub/vobsub.c \
|
EDL: add support for new EDL file format
The timeline code previously added to support Matroska ordered
chapters allows constructing a playback timeline from segments picked
from multiple source files. Add support for a new EDL format to make
this machinery available for use with file formats other than Matroska
and in a manner easier to use than creating files with ordered
chapters.
Unlike the old -edl option which specifies an additional file with
edits to apply to the video file given as the main argument, the new
EDL format is used by giving only the EDL file as the file to play;
that file then contains the filename(s) to use as source files where
actual video segments come from. Filename paths in the EDL file are
ignored. Currently the source files are only searched for in the
directory of the EDL file; support for a search path option will
likely be added in the future.
Format of the EDL files
The first line in the file must be "mplayer EDL file, version 2".
The rest of the lines belong to one of these classes:
1) lines specifying source files
2) empty lines
3) lines specifying timeline segments.
Lines beginning with '<' specify source files. These lines first
contain an identifier used to refer to the source file later, then the
filename separated by whitespace. The identifier must start with a
letter. Filenames that start or end with whitespace or contain
newlines are not supported.
On other lines '#' characters delimit comments. Lines that contain
only whitespace after comments have been removed are ignored.
Timeline segments must appear in the file in chronological order. Each
segment has the following information associated with it:
- duration
- output start time
- output end time (= output start time + duration)
- source id (specifies the file the content of the segment comes from)
- source start time (timestamp in the source file)
- source end time (= source start time + duration)
The output timestamps must form a continuous timeline from 0 to the
end of the last segment, such that each new segment starts from the
time the previous one ends at. Source files and times may change
arbitrarily between segments.
The general format for lines specifying timeline segments is
[output time info] source_id [source time info]
source_id must be an identifier defined on a '<' line. Both the time
info parts consists of zero or more of the following elements:
1) timestamp
2) -timestamp
3) +duration
4) *
5) -*
, where "timestamp" and "duration" are decimal numbers (computations
are done with nanosecond precision). Whitespace around "+" and "-" is
optional. 1) and 2) specify start and end time of the segment on
output or source side. 3) specifies duration; the semantics are the
same whether this appears on output or source side. 4) and 5) are
ignored on the output side (they're always implicitly assumed). On the
source side 4) specifies that the segment starts where the previous
segment _using this source_ ended; if there was no previous segment
time 0 is used. 5) specifies that the segment ends where the next
segment using this source starts.
Redundant information may be omitted. It will be filled in using the
following rules:
- output start for first segment is 0
- two of [output start, output end, duration] imply third
- two of [source start, source end, duration] imply third
- output start = output end of previous segment
- output end = output start of next segment
- if "*", source start = source end of earlier segment
- if "-*", source end = source start of a later segment
As a special rule, a last zero-duration segment without a source
specification may appear. This will produce no corresponding segment
in the resulting timeline, but can be used as syntax to specify the
end time of the timeline (with effect equal to adding -time on the
previous line).
Examples:
----- begin -----
mplayer EDL file, version 2
< id1 filename
0 id1 123
100 id1 456
200 id1 789
300
----- end -----
All segments come from the source file "filename". First segment
(output time 0-100) comes from time 123-223, second 456-556, third
789-889.
----- begin -----
mplayer EDL file, version 2
< f filename
f 60-120
f 600-660
f 30- 90
----- end -----
Play first seconds 60-120 from the file, then 600-660, then 30-90.
----- begin -----
mplayer EDL file, version 2
< id1 filename1
< id2 filename2
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
----- end -----
This plays time 0-10 from filename1, then 0-10 from filename1, then
10-20 from filename1, then 10-20 from filename2, then 20-30 from
filename1, then 20-30 from filename2.
----- begin -----
mplayer EDL file, version 2
< t1 filename1
< t2 filename2
t1 * +2 # segment 1
+2 t2 100 # segment 2
t1 * # segment 3
t2 *-* # segment 4
t1 3 -* # segment 5
+0.111111 t2 102.5 # segment 6
7.37 t1 5 +1 # segment 7
----- end -----
This rather pathological example illustrates the rules for filling in
implied data. All the values can be determined by recursively applying
the rules given above, and the full end result is this:
+2 0-2 t1 0-2 # segment 1
+2 2-4 t2 100-102 # segment 2
+0.758889 4-4.758889 t1 2-2.758889 # segment 3
+0.5 4.4758889-5.258889 t2 102-102.5 # segment 4
+2 5.258889-7.258889 t1 3-5 # segment 5
+0.111111 7.258889-7.37 t2 102.5-102.611111 # segment 6
+1 7.37-8.37 t1 5-6 # segment 7
2011-02-14 11:05:35 +00:00
|
|
|
timeline/tl_edl.c \
|
2011-02-14 07:34:39 +00:00
|
|
|
timeline/tl_matroska.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
$(SRCS_COMMON-yes)
|
2008-04-24 13:38:12 +00:00
|
|
|
|
2008-04-06 23:09:06 +00:00
|
|
|
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(3DFX) += libvo/vo_3dfx.c
|
|
|
|
SRCS_MPLAYER-$(AA) += libvo/vo_aa.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(ALSA1X) += libao2/ao_alsa.c
|
|
|
|
SRCS_MPLAYER-$(ALSA5) += libao2/ao_alsa5.c
|
|
|
|
SRCS_MPLAYER-$(ALSA9) += libao2/ao_alsa.c
|
2008-05-18 11:53:00 +00:00
|
|
|
SRCS_MPLAYER-$(APPLE_IR) += input/appleir.c
|
2008-04-06 23:09:06 +00:00
|
|
|
SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(ARTS) += libao2/ao_arts.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(BL) += libvo/vo_bl.c
|
|
|
|
SRCS_MPLAYER-$(CACA) += libvo/vo_caca.c
|
2009-05-04 14:53:47 +00:00
|
|
|
SRCS_MPLAYER-$(COREAUDIO) += libao2/ao_coreaudio.c
|
2009-08-28 13:29:07 +00:00
|
|
|
SRCS_MPLAYER-$(COREVIDEO) += libvo/vo_corevideo.m libvo/osx_common.c
|
2009-03-01 11:36:39 +00:00
|
|
|
SRCS_MPLAYER-$(DART) += libao2/ao_dart.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(DGA) += libvo/vo_dga.c
|
|
|
|
SRCS_MPLAYER-$(DIRECT3D) += libvo/vo_direct3d.c libvo/w32_common.c
|
2010-09-15 15:58:48 +00:00
|
|
|
SRCS_MPLAYER-$(DIRECTFB) += libvo/vo_directfb2.c libvo/vo_dfbmga.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(DIRECTX) += libao2/ao_dsound.c libvo/vo_directx.c
|
|
|
|
SRCS_MPLAYER-$(DXR3) += libvo/vo_dxr3.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(ESD) += libao2/ao_esd.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(FBDEV) += libvo/vo_fbdev.c libvo/vo_fbdev2.c
|
2010-10-31 00:19:56 +00:00
|
|
|
SRCS_MPLAYER-$(FFMPEG) += libvo/vo_png.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(GGI) += libvo/vo_ggi.c
|
|
|
|
SRCS_MPLAYER-$(GIF) += libvo/vo_gif89a.c
|
2010-03-26 12:12:25 +00:00
|
|
|
SRCS_MPLAYER-$(GL) += libvo/gl_common.c libvo/vo_gl.c \
|
2010-10-18 20:44:04 +00:00
|
|
|
libvo/vo_gl2.c libvo/csputils.c \
|
|
|
|
pnm_loader.c
|
2010-04-25 08:17:23 +00:00
|
|
|
SRCS_MPLAYER-$(GL_SDL) += libvo/sdl_common.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(GL_WIN32) += libvo/w32_common.c
|
2009-12-19 13:46:34 +00:00
|
|
|
SRCS_MPLAYER-$(GL_X11) += libvo/x11_common.c
|
2010-01-03 14:54:51 +00:00
|
|
|
SRCS_MPLAYER-$(MATRIXVIEW) += libvo/vo_matrixview.c libvo/matrixview.c
|
2008-04-11 17:45:02 +00:00
|
|
|
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(IVTV) += libao2/ao_ivtv.c libvo/vo_ivtv.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(JACK) += libao2/ao_jack.c
|
2008-04-06 23:09:06 +00:00
|
|
|
SRCS_MPLAYER-$(JOYSTICK) += input/joystick.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(JPEG) += libvo/vo_jpeg.c
|
2010-02-01 14:09:53 +00:00
|
|
|
SRCS_MPLAYER-$(KAI) += libao2/ao_kai.c
|
2009-03-14 18:44:58 +00:00
|
|
|
SRCS_MPLAYER-$(KVA) += libvo/vo_kva.c
|
2008-04-11 08:18:28 +00:00
|
|
|
SRCS_MPLAYER-$(LIBMENU) += libmenu/menu.c \
|
|
|
|
libmenu/menu_chapsel.c \
|
|
|
|
libmenu/menu_cmdlist.c \
|
|
|
|
libmenu/menu_console.c \
|
|
|
|
libmenu/menu_filesel.c \
|
|
|
|
libmenu/menu_list.c \
|
|
|
|
libmenu/menu_param.c \
|
|
|
|
libmenu/menu_pt.c \
|
|
|
|
libmenu/menu_txt.c \
|
|
|
|
libmenu/vf_menu.c \
|
|
|
|
|
2008-04-13 10:44:21 +00:00
|
|
|
SRCS_MPLAYER-$(LIBMENU_DVBIN) += libmenu/menu_dvbin.c
|
2008-04-30 14:42:16 +00:00
|
|
|
SRCS_MPLAYER-$(LIRC) += input/lirc.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(MD5SUM) += libvo/vo_md5sum.c
|
|
|
|
SRCS_MPLAYER-$(MGA) += libvo/vo_mga.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(NAS) += libao2/ao_nas.c
|
|
|
|
SRCS_MPLAYER-$(OPENAL) += libao2/ao_openal.c
|
|
|
|
SRCS_MPLAYER-$(OSS) += libao2/ao_oss.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(PNM) += libvo/vo_pnm.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(PULSE) += libao2/ao_pulse.c
|
2009-08-28 12:54:33 +00:00
|
|
|
SRCS_MPLAYER-$(QUARTZ) += libvo/vo_quartz.c libvo/osx_common.c
|
2011-06-24 13:56:43 +00:00
|
|
|
SRCS_MPLAYER-$(RSOUND) += libao2/ao_rsound.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(S3FB) += libvo/vo_s3fb.c
|
2010-04-25 08:17:23 +00:00
|
|
|
SRCS_MPLAYER-$(SDL) += libao2/ao_sdl.c libvo/vo_sdl.c libvo/sdl_common.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(SGIAUDIO) += libao2/ao_sgi.c
|
|
|
|
SRCS_MPLAYER-$(SUNAUDIO) += libao2/ao_sun.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(SVGA) += libvo/vo_svga.c
|
|
|
|
SRCS_MPLAYER-$(TDFXFB) += libvo/vo_tdfxfb.c
|
|
|
|
SRCS_MPLAYER-$(TDFXVID) += libvo/vo_tdfx_vid.c
|
|
|
|
SRCS_MPLAYER-$(TGA) += libvo/vo_tga.c
|
|
|
|
SRCS_MPLAYER-$(V4L2) += libvo/vo_v4l2.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(V4L2) += libao2/ao_v4l2.c
|
2009-02-16 20:58:13 +00:00
|
|
|
SRCS_MPLAYER-$(VDPAU) += libvo/vo_vdpau.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(VESA) += libvo/gtf.c libvo/vo_vesa.c libvo/vesa_lvo.c
|
2011-01-31 01:44:50 +00:00
|
|
|
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(WII) += libvo/vo_wii.c
|
2008-12-03 12:05:47 +00:00
|
|
|
SRCS_MPLAYER-$(WIN32WAVEOUT) += libao2/ao_win32.c
|
2010-03-26 12:12:25 +00:00
|
|
|
SRCS_MPLAYER-$(X11) += libvo/vo_x11.c libvo/vo_xover.c \
|
|
|
|
libvo/x11_common.c
|
2008-12-03 14:48:31 +00:00
|
|
|
SRCS_MPLAYER-$(XMGA) += libvo/vo_xmga.c
|
|
|
|
SRCS_MPLAYER-$(XV) += libvo/vo_xv.c
|
|
|
|
SRCS_MPLAYER-$(XVR100) += libvo/vo_xvr100.c
|
|
|
|
SRCS_MPLAYER-$(YUV4MPEG) += libvo/vo_yuv4mpeg.c
|
2006-11-20 13:00:26 +00:00
|
|
|
|
2009-05-21 08:46:24 +00:00
|
|
|
SRCS_MPLAYER = command.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
m_property.c \
|
2009-05-21 08:46:24 +00:00
|
|
|
mixer.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
mp_fifo.c \
|
2009-05-21 08:46:24 +00:00
|
|
|
mplayer.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
parser-mpcmd.c \
|
|
|
|
input/input.c \
|
|
|
|
libao2/ao_mpegpes.c \
|
|
|
|
libao2/ao_null.c \
|
|
|
|
libao2/ao_pcm.c \
|
2009-05-21 08:46:24 +00:00
|
|
|
libao2/audio_out.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libvo/aspect.c \
|
|
|
|
libvo/geometry.c \
|
2009-05-08 20:50:26 +00:00
|
|
|
libvo/old_vo_wrapper.c \
|
2009-04-20 14:02:40 +00:00
|
|
|
libvo/spuenc.c \
|
|
|
|
libvo/video_out.c \
|
|
|
|
libvo/vo_mpegpes.c \
|
|
|
|
libvo/vo_null.c \
|
|
|
|
$(SRCS_MPLAYER-yes)
|
|
|
|
|
2008-04-30 13:58:26 +00:00
|
|
|
COMMON_LIBS += $(COMMON_LIBS-yes)
|
2007-03-24 19:59:36 +00:00
|
|
|
|
2008-04-30 13:58:26 +00:00
|
|
|
OBJS_COMMON += $(addsuffix .o, $(basename $(SRCS_COMMON)))
|
|
|
|
OBJS_MPLAYER += $(addsuffix .o, $(basename $(SRCS_MPLAYER)))
|
|
|
|
OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o
|
|
|
|
OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
|
2007-03-24 19:59:36 +00:00
|
|
|
|
2008-08-07 12:35:34 +00:00
|
|
|
MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(COMMON_LIBS)
|
2010-09-20 12:30:35 +00:00
|
|
|
DEP_FILES = $(patsubst %.S,%.d,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d))))
|
2007-03-24 19:59:36 +00:00
|
|
|
|
2008-04-30 13:58:26 +00:00
|
|
|
ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
|
2008-04-29 08:53:08 +00:00
|
|
|
|
2010-03-28 11:49:09 +00:00
|
|
|
INSTALL_TARGETS-$(MPLAYER) += install-mplayer \
|
|
|
|
install-mplayer-man \
|
|
|
|
install-mplayer-msg
|
2007-03-24 19:59:36 +00:00
|
|
|
|
2008-04-28 17:54:14 +00:00
|
|
|
DIRS = . \
|
2008-04-13 21:20:29 +00:00
|
|
|
input \
|
2008-04-09 18:15:21 +00:00
|
|
|
libaf \
|
2008-04-23 09:33:51 +00:00
|
|
|
libao2 \
|
2008-04-24 22:27:01 +00:00
|
|
|
libdvdcss \
|
2009-01-10 13:51:02 +00:00
|
|
|
libdvdnav \
|
|
|
|
libdvdnav/vm \
|
2009-01-08 19:28:28 +00:00
|
|
|
libdvdread4 \
|
2008-04-07 08:28:54 +00:00
|
|
|
libmenu \
|
2008-04-24 13:04:50 +00:00
|
|
|
libmpcodecs \
|
|
|
|
libmpcodecs/native \
|
2008-04-24 22:05:43 +00:00
|
|
|
libmpdemux \
|
2008-04-23 10:07:50 +00:00
|
|
|
libvo \
|
2008-04-28 14:01:58 +00:00
|
|
|
loader \
|
|
|
|
loader/dshow \
|
|
|
|
loader/dmo \
|
2010-01-04 19:56:28 +00:00
|
|
|
loader/wine \
|
2008-04-08 18:25:30 +00:00
|
|
|
osdep \
|
2008-04-24 13:38:12 +00:00
|
|
|
stream \
|
|
|
|
stream/freesdp \
|
|
|
|
stream/librtsp \
|
|
|
|
stream/realrtsp \
|
2011-01-16 18:03:08 +00:00
|
|
|
sub \
|
2011-02-14 07:34:39 +00:00
|
|
|
timeline \
|
2008-04-22 08:50:38 +00:00
|
|
|
TOOLS \
|
2002-09-22 13:04:19 +00:00
|
|
|
|
2010-03-28 11:49:09 +00:00
|
|
|
MOFILES := $(MSG_LANGS:%=locale/%/LC_MESSAGES/mplayer.mo)
|
|
|
|
|
2008-07-05 09:07:24 +00:00
|
|
|
ALLHEADERS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.h))
|
|
|
|
|
2009-04-20 00:18:59 +00:00
|
|
|
ADDSUFFIXES = $(foreach suf,$(1),$(addsuffix $(suf),$(2)))
|
|
|
|
ADD_ALL_DIRS = $(call ADDSUFFIXES,$(1),$(DIRS))
|
|
|
|
ADD_ALL_EXESUFS = $(1) $(call ADDSUFFIXES,$(EXESUFS_ALL),$(1))
|
2009-04-20 00:16:53 +00:00
|
|
|
|
2011-06-30 21:18:52 +00:00
|
|
|
###### brief build output #######
|
|
|
|
|
|
|
|
ifndef V
|
|
|
|
$(eval override CC = @printf "CC\t$$@\n"; $(CC))
|
|
|
|
$(eval override RM = @$(RM))
|
|
|
|
endif
|
|
|
|
|
2008-05-09 17:51:44 +00:00
|
|
|
###### generic rules #######
|
|
|
|
|
2010-03-28 11:49:09 +00:00
|
|
|
all: $(ALL_PRG-yes) locales
|
2002-09-22 13:04:19 +00:00
|
|
|
|
2010-02-23 23:33:10 +00:00
|
|
|
%.o: %.S
|
2010-07-01 23:18:16 +00:00
|
|
|
$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
|
2010-02-23 23:33:10 +00:00
|
|
|
|
2008-12-06 02:41:45 +00:00
|
|
|
%.o: %.c
|
2010-07-01 23:18:16 +00:00
|
|
|
$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
|
2008-04-29 08:53:08 +00:00
|
|
|
|
2008-12-06 02:41:45 +00:00
|
|
|
%.o: %.cpp
|
2010-07-01 23:18:16 +00:00
|
|
|
$(CC) $(DEPFLAGS) $(CXXFLAGS) -c -o $@ $<
|
2008-04-29 08:53:08 +00:00
|
|
|
|
2008-12-06 02:41:45 +00:00
|
|
|
%.o: %.m
|
2010-07-01 23:18:16 +00:00
|
|
|
$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
|
2010-02-23 23:33:10 +00:00
|
|
|
|
2008-07-06 13:26:30 +00:00
|
|
|
%-rc.o: %.rc
|
|
|
|
$(WINDRES) -I. $< $@
|
|
|
|
|
2008-08-07 12:35:34 +00:00
|
|
|
mplayer$(EXESUF): $(MPLAYER_DEPS)
|
2009-10-19 09:56:18 +00:00
|
|
|
mplayer$(EXESUF): EXTRALIBS += $(EXTRALIBS_MPLAYER)
|
2010-10-30 21:04:18 +00:00
|
|
|
mplayer$(EXESUF):
|
2009-10-19 09:56:18 +00:00
|
|
|
$(CC) -o $@ $^ $(EXTRALIBS)
|
2008-08-07 12:35:34 +00:00
|
|
|
|
2010-03-10 01:38:33 +00:00
|
|
|
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h
|
2009-07-25 18:30:44 +00:00
|
|
|
$(HOST_CC) -O -DCODECS2HTML -I. -o $@ $<
|
2006-07-13 01:20:14 +00:00
|
|
|
|
2006-11-08 23:45:15 +00:00
|
|
|
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
|
2008-07-06 13:36:17 +00:00
|
|
|
./$^ > $@
|
2002-12-15 23:45:19 +00:00
|
|
|
|
2008-05-09 17:47:19 +00:00
|
|
|
# ./configure must be rerun if it changed
|
|
|
|
config.mak: configure
|
|
|
|
@echo "############################################################"
|
|
|
|
@echo "####### Please run ./configure again - it's changed! #######"
|
|
|
|
@echo "############################################################"
|
|
|
|
|
2011-02-19 17:01:07 +00:00
|
|
|
version.h .version: version.sh
|
|
|
|
./$<
|
|
|
|
|
|
|
|
# Force version.sh to run to potentially regenerate version.h
|
|
|
|
-include .version
|
2008-04-29 08:35:58 +00:00
|
|
|
|
2010-06-14 11:16:30 +00:00
|
|
|
%$(EXESUF): %.c
|
2010-06-14 11:24:55 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
2008-07-04 14:35:44 +00:00
|
|
|
|
2010-03-28 11:49:09 +00:00
|
|
|
locales: $(MOFILES)
|
|
|
|
|
|
|
|
locale/%/LC_MESSAGES/mplayer.mo: po/%.po
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
msgfmt -c -o $@ $<
|
|
|
|
|
2010-09-04 00:20:08 +00:00
|
|
|
%.ho: %.h
|
|
|
|
$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
|
|
|
|
|
|
|
|
checkheaders: $(ALLHEADERS:.h=.ho)
|
|
|
|
|
2008-04-19 09:43:53 +00:00
|
|
|
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2008-05-09 17:51:44 +00:00
|
|
|
###### dependency declarations / specific CFLAGS ######
|
2006-07-13 01:20:14 +00:00
|
|
|
|
2009-03-01 11:03:18 +00:00
|
|
|
# Make sure all generated header files are created.
|
2010-09-26 01:36:16 +00:00
|
|
|
codec-cfg.o: codecs.conf.h
|
2010-09-20 20:26:04 +00:00
|
|
|
mpcommon.o osdep/mplayer-rc.o: version.h
|
2008-04-08 18:25:30 +00:00
|
|
|
|
2009-07-26 02:55:40 +00:00
|
|
|
# Files that depend on libavcodec internals
|
2011-07-17 21:15:08 +00:00
|
|
|
libmpcodecs/vf_fspp.o libmpcodecs/vf_mcdeint.o libmpcodecs/vf_spp.o: CFLAGS := -I$(FFMPEG_SOURCE_PATH) $(CFLAGS)
|
2009-07-26 02:55:40 +00:00
|
|
|
|
2010-07-04 07:13:18 +00:00
|
|
|
osdep/mplayer-rc.o: osdep/mplayer.exe.manifest
|
|
|
|
|
2010-09-25 13:01:33 +00:00
|
|
|
libdvdcss/%: CFLAGS := -Ilibdvdcss -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS)
|
|
|
|
libdvdnav/%: CFLAGS := -Ilibdvdnav -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\" $(CFLAGS)
|
|
|
|
libdvdread4/%: CFLAGS := -Ilibdvdread4 -D_GNU_SOURCE $(CFLAGS_LIBDVDCSS_DVDREAD) $(CFLAGS)
|
2008-04-24 22:27:01 +00:00
|
|
|
|
2010-01-04 20:32:23 +00:00
|
|
|
loader/%: CFLAGS += -fno-omit-frame-pointer $(CFLAGS_NO_OMIT_LEAF_FRAME_POINTER)
|
2009-03-05 21:27:05 +00:00
|
|
|
#loader/%: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
|
|
|
|
loader/win32%: CFLAGS += $(CFLAGS_STACKREALIGN)
|
2008-04-28 14:01:58 +00:00
|
|
|
|
2009-05-12 18:09:53 +00:00
|
|
|
stream/stream_dvdnav%: CFLAGS := $(CFLAGS_LIBDVDNAV) $(CFLAGS)
|
|
|
|
|
2008-04-30 17:51:45 +00:00
|
|
|
|
2008-04-27 11:46:56 +00:00
|
|
|
|
2008-05-27 11:31:57 +00:00
|
|
|
###### installation / clean / generic rules #######
|
2008-04-27 22:53:18 +00:00
|
|
|
|
2008-05-18 17:35:54 +00:00
|
|
|
install: $(INSTALL_TARGETS-yes)
|
2007-01-30 11:00:54 +00:00
|
|
|
|
2007-01-30 11:02:19 +00:00
|
|
|
install-dirs:
|
2008-12-06 01:57:08 +00:00
|
|
|
if test ! -d $(BINDIR) ; then $(INSTALL) -d $(BINDIR) ; fi
|
|
|
|
if test ! -d $(CONFDIR) ; then $(INSTALL) -d $(CONFDIR) ; fi
|
|
|
|
if test ! -d $(LIBDIR) ; then $(INSTALL) -d $(LIBDIR) ; fi
|
2007-01-30 11:00:54 +00:00
|
|
|
|
2008-05-18 17:16:43 +00:00
|
|
|
install-%: %$(EXESUF) install-dirs
|
2008-05-18 16:01:46 +00:00
|
|
|
$(INSTALL) -m 755 $(INSTALLSTRIP) $< $(BINDIR)
|
2007-01-30 11:00:54 +00:00
|
|
|
|
2008-08-07 12:35:34 +00:00
|
|
|
install-mplayer-man: $(foreach lang,$(MAN_LANGS),install-mplayer-man-$(lang))
|
2010-03-28 11:49:09 +00:00
|
|
|
install-mplayer-msg: $(foreach lang,$(MSG_LANGS),install-mplayer-msg-$(lang))
|
2008-08-07 12:35:34 +00:00
|
|
|
|
2008-05-18 17:05:16 +00:00
|
|
|
install-mplayer-man-en:
|
2008-12-06 01:57:08 +00:00
|
|
|
if test ! -d $(MANDIR)/man1 ; then $(INSTALL) -d $(MANDIR)/man1 ; fi
|
2009-02-01 11:32:58 +00:00
|
|
|
$(INSTALL) -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/
|
2008-05-18 17:05:16 +00:00
|
|
|
|
|
|
|
define MPLAYER_MAN_RULE
|
|
|
|
install-mplayer-man-$(lang):
|
2008-12-06 01:57:08 +00:00
|
|
|
if test ! -d $(MANDIR)/$(lang)/man1 ; then $(INSTALL) -d $(MANDIR)/$(lang)/man1 ; fi
|
2009-02-01 11:32:58 +00:00
|
|
|
$(INSTALL) -m 644 DOCS/man/$(lang)/mplayer.1 $(MANDIR)/$(lang)/man1/
|
2008-05-18 17:05:16 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-07 12:35:34 +00:00
|
|
|
$(foreach lang,$(filter-out en,$(MAN_LANG_ALL)),$(eval $(MPLAYER_MAN_RULE)))
|
2007-01-30 11:00:54 +00:00
|
|
|
|
2010-03-28 11:49:09 +00:00
|
|
|
define MPLAYER_MSG_RULE
|
|
|
|
install-mplayer-msg-$(lang):
|
|
|
|
if test ! -d $(LOCALEDIR)/$(lang)/LC_MESSAGES ; then $(INSTALL) -d $(LOCALEDIR)/$(lang)/LC_MESSAGES ; fi
|
|
|
|
$(INSTALL) -m 644 locale/$(lang)/LC_MESSAGES/mplayer.mo $(LOCALEDIR)/$(lang)/LC_MESSAGES/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach lang,$(MSG_LANG_ALL),$(eval $(MPLAYER_MSG_RULE)))
|
|
|
|
|
2001-10-22 22:46:38 +00:00
|
|
|
uninstall:
|
2011-06-30 20:12:48 +00:00
|
|
|
$(RM) $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
|
|
|
|
$(RM) $(prefix)/share/pixmaps/mplayer.xpm
|
|
|
|
$(RM) $(prefix)/share/applications/mplayer.desktop
|
|
|
|
$(RM) $(MANDIR)/man1/mplayer.1
|
|
|
|
$(RM) $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1,$(MANDIR)/$(lang)/man1/$(man)))
|
|
|
|
$(RM) $(foreach lang,$(MSG_LANGS),$(LOCALEDIR)/$(lang)/LC_MESSAGES/mplayer.1)
|
2001-10-22 22:46:38 +00:00
|
|
|
|
2008-04-30 17:54:02 +00:00
|
|
|
clean:
|
2011-06-30 20:12:48 +00:00
|
|
|
-$(RM) $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
|
|
|
|
-$(RM) $(call ADD_ALL_EXESUFS,mplayer)
|
|
|
|
-$(RM) $(MOFILES)
|
2006-08-03 17:31:30 +00:00
|
|
|
|
2011-01-31 01:44:50 +00:00
|
|
|
distclean: clean testsclean toolsclean driversclean
|
2011-06-30 20:12:48 +00:00
|
|
|
-$(RM) -r DOCS/tech/doxygen
|
|
|
|
-$(RM) -r locale
|
|
|
|
-$(RM) $(call ADD_ALL_DIRS,/*.d)
|
|
|
|
-$(RM) config.log config.mak config.h codecs.conf.h version.h TAGS tags
|
|
|
|
-$(RM) $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2008-05-09 17:47:19 +00:00
|
|
|
doxygen:
|
|
|
|
doxygen DOCS/tech/Doxyfile
|
|
|
|
|
2008-01-10 18:40:26 +00:00
|
|
|
TAGS:
|
2011-06-30 20:12:48 +00:00
|
|
|
$(RM) $@; find . -name '*.[chS]' -o -name '*.asm' | xargs etags -a
|
2008-01-10 18:40:26 +00:00
|
|
|
|
|
|
|
tags:
|
2011-06-30 20:12:48 +00:00
|
|
|
$(RM) $@; find . -name '*.[chS]' -o -name '*.asm' | xargs ctags -a
|
2008-01-10 18:40:26 +00:00
|
|
|
|
2010-01-24 22:55:11 +00:00
|
|
|
generated_ebml:
|
|
|
|
TOOLS/matroska.py --generate-header >libmpdemux/ebml_types.h
|
|
|
|
TOOLS/matroska.py --generate-definitions >libmpdemux/ebml_defs.c
|
2002-08-10 18:45:31 +00:00
|
|
|
|
2008-05-09 17:51:44 +00:00
|
|
|
###### tests / tools #######
|
2004-08-23 00:25:19 +00:00
|
|
|
|
2010-03-09 17:10:06 +00:00
|
|
|
TEST_OBJS = mp_msg.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
|
2002-08-10 18:45:31 +00:00
|
|
|
|
2010-03-10 01:38:33 +00:00
|
|
|
codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h $(TEST_OBJS)
|
2008-05-27 11:28:00 +00:00
|
|
|
$(CC) -I. -DTESTING -o $@ $^
|
2008-05-27 09:11:13 +00:00
|
|
|
|
2010-03-10 01:38:33 +00:00
|
|
|
codecs2html$(EXESUF): codec-cfg.c $(TEST_OBJS)
|
2008-08-07 12:35:34 +00:00
|
|
|
$(CC) -I. -DCODECS2HTML -o $@ $^
|
|
|
|
|
2010-06-14 11:34:48 +00:00
|
|
|
LOADER_TEST_OBJS = $(SRCS_WIN32_EMULATION:.c=.o) $(SRCS_QTX_EMULATION:.S=.o) libavutil/libavutil.a osdep/mmap_anon.o cpudetect.o path.o $(TEST_OBJS)
|
2008-05-09 17:47:19 +00:00
|
|
|
|
|
|
|
loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): CFLAGS += -g
|
2008-07-04 14:35:44 +00:00
|
|
|
loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): $(LOADER_TEST_OBJS)
|
2008-05-09 17:47:19 +00:00
|
|
|
|
2011-07-04 21:26:14 +00:00
|
|
|
TESTS = codecs2html codec-cfg-test
|
2008-05-09 17:47:19 +00:00
|
|
|
|
2008-07-04 14:33:03 +00:00
|
|
|
ifdef ARCH_X86
|
2009-02-12 12:17:50 +00:00
|
|
|
TESTS += loader/qtx/list loader/qtx/qtxload
|
2008-07-04 14:33:03 +00:00
|
|
|
endif
|
|
|
|
|
2009-02-12 12:17:50 +00:00
|
|
|
tests: $(addsuffix $(EXESUF),$(TESTS))
|
2008-05-09 17:47:19 +00:00
|
|
|
|
|
|
|
testsclean:
|
2011-06-30 20:12:48 +00:00
|
|
|
-$(RM) $(call ADD_ALL_EXESUFS,$(TESTS))
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2009-02-12 12:17:50 +00:00
|
|
|
TOOLS = $(addprefix TOOLS/,alaw-gen asfinfo avi-fix avisubdump compare dump_mp4 movinfo netstream subrip vivodump)
|
2008-04-22 08:50:38 +00:00
|
|
|
|
|
|
|
ifdef ARCH_X86
|
2009-03-14 15:56:16 +00:00
|
|
|
TOOLS += TOOLS/fastmemcpybench TOOLS/modify_reg
|
2008-04-22 08:50:38 +00:00
|
|
|
endif
|
|
|
|
|
2009-02-12 12:17:50 +00:00
|
|
|
ALLTOOLS = $(TOOLS) TOOLS/bmovl-test TOOLS/vfw2menc
|
2008-04-26 09:31:05 +00:00
|
|
|
|
2009-02-12 12:17:50 +00:00
|
|
|
tools: $(addsuffix $(EXESUF),$(TOOLS))
|
|
|
|
alltools: $(addsuffix $(EXESUF),$(ALLTOOLS))
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2008-05-27 11:37:50 +00:00
|
|
|
toolsclean:
|
2011-06-30 20:12:48 +00:00
|
|
|
-$(RM) $(call ADD_ALL_EXESUFS,$(ALLTOOLS))
|
|
|
|
-$(RM) TOOLS/realcodecs/*.so.6.0
|
2008-05-27 11:37:50 +00:00
|
|
|
|
2008-07-04 14:35:44 +00:00
|
|
|
TOOLS/bmovl-test$(EXESUF): -lSDL_image
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2011-01-26 17:40:52 +00:00
|
|
|
TOOLS/subrip$(EXESUF): sub/vobsub.o sub/spudec.o sub/unrar_exec.o \
|
|
|
|
libvo/aclib.o \ libswscale/libswscale.a libavutil/libavutil.a $(TEST_OBJS)
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2008-07-04 14:35:44 +00:00
|
|
|
TOOLS/vfw2menc$(EXESUF): -lwinmm -lole32
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2008-06-06 13:28:25 +00:00
|
|
|
mplayer-nomain.o: mplayer.c
|
|
|
|
$(CC) $(CFLAGS) -DDISABLE_MAIN -c -o $@ $<
|
|
|
|
|
2008-07-04 13:02:12 +00:00
|
|
|
TOOLS/netstream$(EXESUF): TOOLS/netstream.c
|
|
|
|
TOOLS/vivodump$(EXESUF): TOOLS/vivodump.c
|
2011-01-20 23:44:26 +00:00
|
|
|
TOOLS/netstream$(EXESUF) TOOLS/vivodump$(EXESUF): $(subst mplayer.o,mplayer-nomain.o,$(OBJS_MPLAYER)) $(OBJS_COMMON) $(COMMON_LIBS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(EXTRALIBS_MPLAYER) $(EXTRALIBS)
|
2008-04-22 08:50:38 +00:00
|
|
|
|
|
|
|
REAL_SRCS = $(wildcard TOOLS/realcodecs/*.c)
|
|
|
|
REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0)
|
|
|
|
|
|
|
|
realcodecs: $(REAL_TARGETS)
|
2009-03-10 10:05:09 +00:00
|
|
|
realcodecs: CFLAGS += -g
|
2008-04-22 08:50:38 +00:00
|
|
|
|
|
|
|
%.so.6.0: %.o
|
|
|
|
ld -shared -o $@ $< -ldl -lc
|
|
|
|
|
2008-05-28 12:40:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
###### drivers #######
|
|
|
|
|
|
|
|
KERNEL_INC = /lib/modules/`uname -r`/build/include
|
|
|
|
KERNEL_VERSION = $(shell grep RELEASE $(KERNEL_INC)/linux/version.h | cut -d'"' -f2)
|
|
|
|
KERNEL_CFLAGS = -O2 -D__KERNEL__ -DMODULE -Wall -I$(KERNEL_INC) -include $(KERNEL_INC)/linux/modversions.h
|
|
|
|
KERNEL_OBJS = $(addprefix drivers/, mga_vid.o tdfx_vid.o radeon_vid.o rage128_vid.o)
|
|
|
|
MODULES_DIR = /lib/modules/$(KERNEL_VERSION)/misc
|
2008-07-06 13:41:08 +00:00
|
|
|
DRIVER_OBJS = $(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test
|
2008-05-28 12:40:15 +00:00
|
|
|
|
2008-07-06 13:41:08 +00:00
|
|
|
drivers: $(DRIVER_OBJS)
|
2008-05-28 12:40:15 +00:00
|
|
|
|
2008-07-06 13:41:08 +00:00
|
|
|
$(DRIVER_OBJS): CFLAGS = $(KERNEL_CFLAGS)
|
2008-05-28 12:40:15 +00:00
|
|
|
drivers/mga_vid.o: drivers/mga_vid.c drivers/mga_vid.h
|
|
|
|
drivers/tdfx_vid.o: drivers/tdfx_vid.c drivers/3dfx.h
|
|
|
|
drivers/radeon_vid.o drivers/rage128_vid.o: CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math
|
|
|
|
drivers/radeon_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h
|
|
|
|
drivers/rage128_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h
|
|
|
|
$(CC) $(CFLAGS) -DRAGE128 -c $< -o $@
|
|
|
|
|
2008-07-06 13:41:08 +00:00
|
|
|
install-drivers: $(DRIVER_OBJS)
|
2008-05-28 12:40:15 +00:00
|
|
|
-mkdir -p $(MODULES_DIR)
|
|
|
|
install -m 644 $(KERNEL_OBJS) $(MODULES_DIR)
|
|
|
|
depmod -a
|
|
|
|
-mknod /dev/mga_vid c 178 0
|
|
|
|
-mknod /dev/tdfx_vid c 178 0
|
|
|
|
-mknod /dev/radeon_vid c 178 0
|
|
|
|
-ln -s /dev/radeon_vid /dev/rage128_vid
|
|
|
|
|
|
|
|
driversclean:
|
2011-06-30 20:12:48 +00:00
|
|
|
-$(RM) $(DRIVER_OBJS) drivers/*~
|
2008-05-28 12:40:15 +00:00
|
|
|
|
|
|
|
|
2008-04-22 08:50:38 +00:00
|
|
|
|
2010-09-20 12:07:56 +00:00
|
|
|
-include $(DEP_FILES)
|
2008-04-24 21:58:45 +00:00
|
|
|
|
2011-01-31 01:44:50 +00:00
|
|
|
.PHONY: all doxygen locales *install* *tools drivers
|
2011-02-19 17:01:07 +00:00
|
|
|
.PHONY: checkheaders *clean tests .version
|
2010-06-22 13:15:34 +00:00
|
|
|
|
|
|
|
# Disable suffix rules. Most of the builtin rules are suffix rules,
|
|
|
|
# so this saves some time on slow systems.
|
|
|
|
.SUFFIXES:
|
2010-11-03 22:50:44 +00:00
|
|
|
|
|
|
|
# If a command returns failure but changed its target file, delete the
|
|
|
|
# (presumably malformed) file. Otherwise the file would be considered to
|
|
|
|
# be up to date if make is restarted.
|
|
|
|
|
|
|
|
.DELETE_ON_ERROR:
|