2008-06-17 13:40:04 +02: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 21:28:24 +01:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
2008-05-09 19:51:44 +02:00
|
|
|
|
|
|
|
###### variable declarations #######
|
|
|
|
|
2007-03-14 00:42:38 +01:00
|
|
|
COMMON_LDFLAGS += $(EXTRA_LIB)\
|
|
|
|
$(EXTRALIBS) \
|
|
|
|
|
|
|
|
LDFLAGS_MPLAYER = $(EXTRALIBS_MPLAYER) \
|
|
|
|
$(COMMON_LDFLAGS) \
|
|
|
|
|
|
|
|
LDFLAGS_MENCODER = $(EXTRALIBS_MENCODER) \
|
|
|
|
$(COMMON_LDFLAGS) \
|
|
|
|
|
2005-06-20 00:52:55 +02:00
|
|
|
SRCS_COMMON = asxparser.c \
|
|
|
|
codec-cfg.c \
|
|
|
|
cpudetect.c \
|
|
|
|
edl.c \
|
|
|
|
find_sub.c \
|
2007-08-28 13:20:24 +02:00
|
|
|
get_path.c \
|
2005-06-20 00:52:55 +02:00
|
|
|
m_config.c \
|
|
|
|
m_option.c \
|
|
|
|
m_struct.c \
|
2007-02-17 22:04:46 +01:00
|
|
|
mpcommon.c \
|
2005-06-20 00:52:55 +02:00
|
|
|
parser-cfg.c \
|
|
|
|
playtree.c \
|
|
|
|
playtreeparser.c \
|
|
|
|
spudec.c \
|
|
|
|
sub_cc.c \
|
2007-11-01 07:52:38 +01:00
|
|
|
subopt-helper.c \
|
2005-06-20 00:52:55 +02:00
|
|
|
subreader.c \
|
|
|
|
vobsub.c \
|
2008-04-09 20:15:21 +02: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_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 \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs/ad.c \
|
|
|
|
libmpcodecs/ad_alaw.c \
|
|
|
|
libmpcodecs/ad_dk3adpcm.c \
|
|
|
|
libmpcodecs/ad_dvdpcm.c \
|
|
|
|
libmpcodecs/ad_hwmpa.c \
|
|
|
|
libmpcodecs/ad_imaadpcm.c \
|
|
|
|
libmpcodecs/ad_msadpcm.c \
|
|
|
|
libmpcodecs/ad_msgsm.c \
|
|
|
|
libmpcodecs/ad_pcm.c \
|
|
|
|
libmpcodecs/dec_audio.c \
|
|
|
|
libmpcodecs/dec_video.c \
|
|
|
|
libmpcodecs/img_format.c \
|
|
|
|
libmpcodecs/mp_image.c \
|
|
|
|
libmpcodecs/native/nuppelvideo.c \
|
|
|
|
libmpcodecs/native/rtjpegn.c \
|
|
|
|
libmpcodecs/native/xa_gsm.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_nuv.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 \
|
|
|
|
libmpcodecs/vf_flip.c \
|
|
|
|
libmpcodecs/vf_format.c \
|
|
|
|
libmpcodecs/vf_framestep.c \
|
|
|
|
libmpcodecs/vf_halfpack.c \
|
|
|
|
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 \
|
|
|
|
libmpcodecs/vf_palette.c \
|
|
|
|
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_rgb2bgr.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 \
|
|
|
|
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_yuy2.c \
|
|
|
|
libmpcodecs/vf_yvu9.c \
|
2008-04-25 00:05:43 +02:00
|
|
|
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 \
|
|
|
|
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_nuv.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_ty_osd.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 \
|
2008-04-23 12:07:50 +02:00
|
|
|
libvo/aclib.c \
|
|
|
|
libvo/osd.c \
|
|
|
|
libvo/sub.c \
|
2008-04-08 20:25:30 +02:00
|
|
|
osdep/$(GETCH) \
|
|
|
|
osdep/$(TIMER) \
|
2008-04-24 15:38:12 +02:00
|
|
|
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 \
|
2008-04-08 20:25:30 +02:00
|
|
|
|
2008-04-24 17:32:44 +02:00
|
|
|
SRCS_COMMON-$(AUDIO_INPUT)-$(ALSA1X) += stream/ai_alsa1x.c
|
|
|
|
SRCS_COMMON-$(AUDIO_INPUT)-$(ALSA9) += stream/ai_alsa.c
|
|
|
|
SRCS_COMMON-$(AUDIO_INPUT)-$(OSS) += stream/ai_oss.c
|
2008-04-23 12:07:50 +02:00
|
|
|
SRCS_COMMON-$(BITMAP_FONT) += libvo/font_load.c
|
2008-04-24 15:38:12 +02: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 14:51:02 +01: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 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(DVDREAD) += stream/stream_dvd.c \
|
|
|
|
stream/stream_dvd_common.c
|
2009-01-08 20:28:28 +01: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 10:25:17 +02:00
|
|
|
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(FAAD) += libmpcodecs/ad_faad.c
|
2008-08-07 14:35:34 +02:00
|
|
|
SRCS_COMMON-$(FAAD_INTERNAL) += libfaad2/bits.c \
|
|
|
|
libfaad2/cfft.c \
|
|
|
|
libfaad2/common.c \
|
|
|
|
libfaad2/decoder.c \
|
|
|
|
libfaad2/drc.c \
|
|
|
|
libfaad2/drm_dec.c \
|
|
|
|
libfaad2/error.c \
|
|
|
|
libfaad2/filtbank.c \
|
|
|
|
libfaad2/hcr.c \
|
|
|
|
libfaad2/huffman.c \
|
|
|
|
libfaad2/ic_predict.c \
|
|
|
|
libfaad2/is.c \
|
|
|
|
libfaad2/lt_predict.c \
|
|
|
|
libfaad2/mdct.c \
|
|
|
|
libfaad2/mp4.c \
|
|
|
|
libfaad2/ms.c \
|
|
|
|
libfaad2/output.c \
|
|
|
|
libfaad2/pns.c \
|
|
|
|
libfaad2/ps_dec.c \
|
|
|
|
libfaad2/ps_syntax.c \
|
|
|
|
libfaad2/pulse.c \
|
|
|
|
libfaad2/rvlc.c \
|
|
|
|
libfaad2/sbr_dct.c \
|
|
|
|
libfaad2/sbr_dec.c \
|
|
|
|
libfaad2/sbr_e_nf.c \
|
|
|
|
libfaad2/sbr_fbt.c \
|
|
|
|
libfaad2/sbr_hfadj.c \
|
|
|
|
libfaad2/sbr_hfgen.c \
|
|
|
|
libfaad2/sbr_huff.c \
|
|
|
|
libfaad2/sbr_qmf.c \
|
|
|
|
libfaad2/sbr_syntax.c \
|
|
|
|
libfaad2/sbr_tf_grid.c \
|
|
|
|
libfaad2/specrec.c \
|
|
|
|
libfaad2/ssr.c \
|
|
|
|
libfaad2/ssr_fb.c \
|
|
|
|
libfaad2/ssr_ipqf.c \
|
|
|
|
libfaad2/syntax.c \
|
|
|
|
libfaad2/tns.c \
|
|
|
|
|
2008-04-23 12:07:50 +02:00
|
|
|
SRCS_COMMON-$(FREETYPE) += libvo/font_load_ft.c
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(FTP) += stream/stream_ftp.c
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_COMMON-$(GIF) += libmpdemux/demux_gif.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(HAVE_POSIX_SELECT) += libmpcodecs/vf_bmovl.c
|
2008-08-07 14:36:31 +02:00
|
|
|
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += libaf/af_export.c osdep/mmap_anon.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(JPEG) += libmpcodecs/vd_ijpg.c
|
2008-04-09 20:15:21 +02:00
|
|
|
SRCS_COMMON-$(LADSPA) += libaf/af_ladspa.c
|
2008-07-30 12:26:23 +02:00
|
|
|
SRCS_COMMON-$(LIBA52) += libmpcodecs/ad_hwac3.c \
|
2008-09-15 18:32:31 +02:00
|
|
|
libmpcodecs/ad_liba52.c
|
|
|
|
SRCS_COMMON-$(LIBA52_INTERNAL) += liba52/crc.c \
|
2008-04-27 13:46:56 +02:00
|
|
|
liba52/resample.c \
|
|
|
|
liba52/bit_allocate.c \
|
|
|
|
liba52/bitstream.c \
|
|
|
|
liba52/downmix.c \
|
|
|
|
liba52/imdct.c \
|
|
|
|
liba52/parse.c \
|
|
|
|
|
2008-04-09 20:33:26 +02:00
|
|
|
SRCS_COMMON-$(LIBASS) += libass/ass.c \
|
|
|
|
libass/ass_bitmap.c \
|
|
|
|
libass/ass_cache.c \
|
|
|
|
libass/ass_font.c \
|
|
|
|
libass/ass_fontconfig.c \
|
|
|
|
libass/ass_library.c \
|
|
|
|
libass/ass_mp.c \
|
|
|
|
libass/ass_render.c \
|
|
|
|
libass/ass_utils.c \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs/vf_ass.c \
|
|
|
|
|
2008-05-10 20:54:10 +02:00
|
|
|
SRCS_COMMON-$(LIBAVCODEC) += av_opts.c \
|
|
|
|
libaf/af_lavcresample.c \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs/ad_ffmpeg.c \
|
|
|
|
libmpcodecs/vd_ffmpeg.c \
|
|
|
|
libmpcodecs/vf_lavc.c \
|
|
|
|
libmpcodecs/vf_lavcdeint.c \
|
|
|
|
libmpcodecs/vf_screenshot.c \
|
|
|
|
|
|
|
|
# These filters use private headers and do not work with shared libavcodec.
|
|
|
|
SRCS_COMMON-$(LIBAVCODEC_A) += libaf/af_lavcac3enc.c \
|
|
|
|
libmpcodecs/vf_fspp.c \
|
|
|
|
libmpcodecs/vf_geq.c \
|
|
|
|
libmpcodecs/vf_mcdeint.c \
|
|
|
|
libmpcodecs/vf_qp.c \
|
|
|
|
libmpcodecs/vf_spp.c \
|
|
|
|
libmpcodecs/vf_uspp.c \
|
|
|
|
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_COMMON-$(LIBAVFORMAT) += libmpdemux/demux_lavf.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(LIBDCA) += libmpcodecs/ad_libdca.c
|
|
|
|
SRCS_COMMON-$(LIBDV) += libmpcodecs/ad_libdv.c \
|
2008-04-25 00:05:43 +02:00
|
|
|
libmpcodecs/vd_libdv.c \
|
|
|
|
libmpdemux/demux_rawdv.c
|
2008-04-25 00:30:50 +02:00
|
|
|
SRCS_COMMON-$(LIBDVDCSS_INTERNAL) += libdvdcss/css.c \
|
2008-04-25 00:27:01 +02:00
|
|
|
libdvdcss/device.c \
|
|
|
|
libdvdcss/error.c \
|
|
|
|
libdvdcss/ioctl.c \
|
|
|
|
libdvdcss/libdvdcss.c \
|
|
|
|
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(LIBMAD) += libmpcodecs/ad_libmad.c
|
2008-04-26 20:02:23 +02:00
|
|
|
SRCS_COMMON-$(LIBMPEG2) += libmpcodecs/vd_libmpeg2.c \
|
|
|
|
libmpeg2/alloc.c \
|
|
|
|
libmpeg2/cpu_accel.c\
|
|
|
|
libmpeg2/cpu_state.c \
|
|
|
|
libmpeg2/decode.c \
|
|
|
|
libmpeg2/header.c \
|
|
|
|
libmpeg2/idct.c \
|
|
|
|
libmpeg2/motion_comp.c \
|
|
|
|
libmpeg2/slice.c
|
|
|
|
SRCS_COMMON-$(LIBMPEG2)-$(ARCH_ALPHA) += libmpeg2/idct_alpha.c \
|
|
|
|
libmpeg2/motion_comp_alpha.c
|
2008-12-17 09:47:01 +01:00
|
|
|
SRCS_COMMON-$(LIBMPEG2)-$(ARCH_ARM) += libmpeg2/motion_comp_arm.c \
|
2008-10-01 08:47:26 +02:00
|
|
|
libmpeg2/motion_comp_arm_s.S
|
2008-05-03 17:23:22 +02:00
|
|
|
SRCS_COMMON-$(LIBMPEG2)-$(HAVE_ALTIVEC) += libmpeg2/idct_altivec.c \
|
2008-04-26 20:02:23 +02:00
|
|
|
libmpeg2/motion_comp_altivec.c
|
|
|
|
SRCS_COMMON-$(LIBMPEG2)-$(HAVE_MMX) += libmpeg2/idct_mmx.c \
|
|
|
|
libmpeg2/motion_comp_mmx.c
|
|
|
|
SRCS_COMMON-$(LIBMPEG2)-$(HAVE_VIS) += libmpeg2/motion_comp_vis.c
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_COMMON-$(LIBNEMESI) += libmpdemux/demux_nemesi.c \
|
|
|
|
stream/stream_nemesi.c
|
|
|
|
SRCS_COMMON-$(LIBNUT) += libmpdemux/demux_nut.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(LIBPOSTPROC) += libmpcodecs/vf_pp.c
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(LIBSMBCLIENT) += stream/stream_smb.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(LIBTHEORA) += libmpcodecs/vd_theora.c
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_COMMON-$(LIBVORBIS) += libmpcodecs/ad_libvorbis.c \
|
|
|
|
libmpdemux/demux_ogg.c
|
2008-08-07 14:35:34 +02:00
|
|
|
SRCS_COMMON-$(LIVE555) += libmpdemux/demux_rtp.cpp \
|
|
|
|
libmpdemux/demux_rtp_codec.cpp \
|
2008-08-07 22:32:02 +02:00
|
|
|
stream/stream_live555.c
|
2008-08-07 12:57:40 +02:00
|
|
|
SRCS_COMMON-$(MACOSX_FINDER) += osdep/macosx_finder_args.c
|
2008-11-30 14:22:34 +01:00
|
|
|
SRCS_COMMON-$(MNG) += libmpdemux/demux_mng.c
|
2008-04-28 00:53:18 +02:00
|
|
|
SRCS_COMMON-$(MP3LIB) += libmpcodecs/ad_mp3lib.c mp3lib/sr1.c
|
|
|
|
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32) += mp3lib/decode_i586.c
|
2008-04-30 16:42:16 +02:00
|
|
|
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32)-$(HAVE_3DNOW) += mp3lib/dct36_3dnow.c \
|
|
|
|
mp3lib/dct64_3dnow.c
|
2009-01-25 22:03:02 +01:00
|
|
|
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32)-$(HAVE_3DNOWEXT) += mp3lib/dct36_k7.c \
|
2008-04-30 16:42:16 +02:00
|
|
|
mp3lib/dct64_k7.c
|
|
|
|
SRCS_COMMON-$(MP3LIB)-$(ARCH_X86_32)-$(HAVE_MMX) += mp3lib/dct64_mmx.c
|
2008-04-28 00:53:18 +02:00
|
|
|
SRCS_COMMON-$(MP3LIB)-$(HAVE_ALTIVEC) += mp3lib/dct64_altivec.c
|
2008-04-30 16:42:16 +02:00
|
|
|
SRCS_COMMON-$(MP3LIB)-$(HAVE_MMX) += mp3lib/decode_mmx.c
|
|
|
|
SRCS_COMMON-$(MP3LIB)-$(HAVE_SSE) += mp3lib/dct64_sse.c
|
2008-08-07 14:35:34 +02:00
|
|
|
SRCS_COMMON-$(MUSEPACK) += libmpcodecs/ad_mpc.c \
|
|
|
|
libmpdemux/demux_mpc.c
|
|
|
|
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 \
|
|
|
|
|
|
|
|
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
|
|
|
|
SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
|
|
|
|
SRCS_COMMON-$(NEED_MMAP) += osdep/mmap-os2.c
|
|
|
|
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
|
2008-08-07 14:20:50 +02:00
|
|
|
SRCS_COMMON-$(NETWORK) += stream/stream_netstream.c \
|
2008-04-24 15:38:12 +02: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 18:22:52 +02:00
|
|
|
stream/librtsp/rtsp.c \
|
2008-04-24 15:38:12 +02:00
|
|
|
stream/realrtsp/asmrp.c \
|
|
|
|
stream/realrtsp/real.c \
|
|
|
|
stream/realrtsp/rmff.c \
|
|
|
|
stream/realrtsp/sdpplin.c \
|
|
|
|
stream/realrtsp/xbuffer.c \
|
|
|
|
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(PNG) += libmpcodecs/vd_mpng.c
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(PVR) += stream/stream_pvr.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(QTX_CODECS) += libmpcodecs/ad_qtaudio.c \
|
|
|
|
libmpcodecs/vd_qtvideo.c
|
2008-04-28 16:01:58 +02:00
|
|
|
SRCS_COMMON-$(QTX_EMULATION) += loader/wrapper.S
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(RADIO) += stream/stream_radio.c
|
|
|
|
SRCS_COMMON-$(RADIO_CAPTURE) += stream/audio_in.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(REAL_CODECS) += libmpcodecs/ad_realaud.c \
|
|
|
|
libmpcodecs/vd_realvid.c
|
|
|
|
SRCS_COMMON-$(SPEEX) += libmpcodecs/ad_speex.c
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(STREAM_CACHE) += stream/cache2.c
|
2008-04-25 00:05:43 +02:00
|
|
|
|
2008-04-23 01:05:27 +02:00
|
|
|
SRCS_COMMON-$(TREMOR_INTERNAL) += tremor/bitwise.c \
|
|
|
|
tremor/block.c \
|
|
|
|
tremor/codebook.c \
|
|
|
|
tremor/floor0.c \
|
|
|
|
tremor/floor1.c \
|
|
|
|
tremor/framing.c \
|
|
|
|
tremor/info.c \
|
|
|
|
tremor/mapping0.c \
|
|
|
|
tremor/mdct.c \
|
|
|
|
tremor/registry.c \
|
|
|
|
tremor/res012.c \
|
|
|
|
tremor/sharedbook.c \
|
|
|
|
tremor/synthesis.c \
|
|
|
|
tremor/window.c \
|
|
|
|
|
2008-04-24 15:38:12 +02: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
|
|
|
|
SRCS_COMMON-$(TV_DSHOW) += stream/tvi_dshow.c
|
|
|
|
SRCS_COMMON-$(TV_TELETEXT) += stream/tvi_vbi.c
|
|
|
|
SRCS_COMMON-$(TV_V4L1) += stream/tvi_v4l.c stream/audio_in.c
|
|
|
|
SRCS_COMMON-$(TV_V4L2) += stream/tvi_v4l2.c stream/audio_in.c
|
2008-04-09 14:54:07 +02:00
|
|
|
SRCS_COMMON-$(UNRAR_EXEC) += unrar_exec.c
|
2008-04-24 15:38:12 +02:00
|
|
|
SRCS_COMMON-$(VCD) += stream/stream_vcd.c
|
|
|
|
SRCS_COMMON-$(VSTREAM) += stream/stream_vstream.c
|
2008-04-28 16:01:58 +02:00
|
|
|
SRCS_COMMON-$(WIN32_EMULATION) += loader/elfdll.c \
|
|
|
|
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 \
|
|
|
|
|
2008-04-24 15:04:50 +02: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-25 00:05:43 +02:00
|
|
|
libmpdemux/demux_avs.c \
|
2008-04-28 16:01:58 +02:00
|
|
|
loader/afl.c \
|
2008-06-08 12:43:30 +02:00
|
|
|
loader/drv.c \
|
2008-04-28 16:01:58 +02: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 \
|
|
|
|
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 15:04:50 +02:00
|
|
|
|
|
|
|
SRCS_COMMON-$(XANIM_CODECS) += libmpcodecs/vd_xanim.c
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_COMMON-$(XMMS_PLUGINS) += libmpdemux/demux_xmms.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_COMMON-$(XVID4) += libmpcodecs/vd_xvid4.c
|
2008-12-03 13:47:29 +01:00
|
|
|
SRCS_COMMON-$(ZR) += libmpcodecs/vd_zrmjpeg.c \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs/vf_zrmjpeg.c
|
2008-04-24 15:38:12 +02:00
|
|
|
|
2006-11-20 14:00:26 +01:00
|
|
|
SRCS_MPLAYER = mplayer.c \
|
|
|
|
m_property.c \
|
2007-03-29 19:16:11 +02:00
|
|
|
mp_fifo.c \
|
2006-11-20 14:00:26 +01:00
|
|
|
mp_msg.c \
|
|
|
|
mixer.c \
|
|
|
|
parser-mpcmd.c \
|
2007-02-21 01:49:24 +01:00
|
|
|
command.c \
|
2008-04-07 01:09:06 +02:00
|
|
|
input/input.c \
|
2008-04-23 11:33:51 +02:00
|
|
|
libao2/audio_out.c \
|
|
|
|
libao2/ao_mpegpes.c \
|
|
|
|
libao2/ao_null.c \
|
|
|
|
libao2/ao_pcm.c \
|
2008-04-23 12:07:50 +02:00
|
|
|
libvo/aspect.c \
|
|
|
|
libvo/geometry.c \
|
|
|
|
libvo/spuenc.c \
|
|
|
|
libvo/video_out.c \
|
|
|
|
libvo/vo_mpegpes.c \
|
|
|
|
libvo/vo_null.c \
|
2008-04-07 01:09:06 +02:00
|
|
|
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(3DFX) += libvo/vo_3dfx.c
|
|
|
|
SRCS_MPLAYER-$(AA) += libvo/vo_aa.c
|
2008-12-03 13:05:47 +01: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 13:53:00 +02:00
|
|
|
SRCS_MPLAYER-$(APPLE_IR) += input/appleir.c
|
2008-05-18 16:55:26 +02:00
|
|
|
SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(ARTS) += libao2/ao_arts.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(BL) += libvo/vo_bl.c
|
|
|
|
SRCS_MPLAYER-$(CACA) += libvo/vo_caca.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(COREAUDIO) += libao2/ao_macosx.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(COREVIDEO) += libvo/vo_macosx.m
|
|
|
|
SRCS_MPLAYER-$(DFBMGA) += libvo/vo_dfbmga.c
|
|
|
|
SRCS_MPLAYER-$(DGA) += libvo/vo_dga.c
|
|
|
|
SRCS_MPLAYER-$(DIRECT3D) += libvo/vo_direct3d.c libvo/w32_common.c
|
|
|
|
SRCS_MPLAYER-$(DIRECTFB) += libvo/vo_directfb2.c
|
|
|
|
SRCS_MPLAYER-$(DIRECTX) += libao2/ao_dsound.c libvo/vo_directx.c
|
|
|
|
SRCS_MPLAYER-$(DXR2) += libao2/ao_dxr2.c libvo/vo_dxr2.c
|
|
|
|
SRCS_MPLAYER-$(DXR3) += libvo/vo_dxr3.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(ESD) += libao2/ao_esd.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(FBDEV) += libvo/vo_fbdev.c libvo/vo_fbdev2.c
|
|
|
|
SRCS_MPLAYER-$(GGI) += libvo/vo_ggi.c
|
|
|
|
SRCS_MPLAYER-$(GIF) += libvo/vo_gif89a.c
|
|
|
|
SRCS_MPLAYER-$(GL) += libvo/gl_common.c libvo/vo_gl.c libvo/vo_gl2.c
|
|
|
|
SRCS_MPLAYER-$(GL_WIN32) += libvo/w32_common.c
|
2008-05-18 18:25:20 +02:00
|
|
|
SRCS_MPLAYER-$(GUI) += gui/bitmap.c
|
2008-04-11 19:45:02 +02:00
|
|
|
SRCS_MPLAYER-$(GUI_GTK) += gui/app.c \
|
|
|
|
gui/cfg.c \
|
|
|
|
gui/interface.c \
|
|
|
|
gui/mplayer/gui_common.c \
|
|
|
|
gui/mplayer/menu.c \
|
|
|
|
gui/mplayer/mw.c \
|
|
|
|
gui/mplayer/pb.c \
|
|
|
|
gui/mplayer/play.c \
|
|
|
|
gui/mplayer/sw.c \
|
|
|
|
gui/mplayer/widgets.c \
|
|
|
|
gui/mplayer/gtk/about.c \
|
|
|
|
gui/mplayer/gtk/eq.c \
|
|
|
|
gui/mplayer/gtk/fs.c \
|
|
|
|
gui/mplayer/gtk/gtk_common.c \
|
|
|
|
gui/mplayer/gtk/gtk_url.c \
|
|
|
|
gui/mplayer/gtk/mb.c \
|
|
|
|
gui/mplayer/gtk/menu.c \
|
|
|
|
gui/mplayer/gtk/opts.c \
|
|
|
|
gui/mplayer/gtk/pl.c \
|
|
|
|
gui/mplayer/gtk/sb.c \
|
|
|
|
gui/skin/cut.c \
|
|
|
|
gui/skin/font.c \
|
|
|
|
gui/skin/skin.c \
|
|
|
|
gui/wm/ws.c \
|
|
|
|
gui/wm/wsxdnd.c \
|
|
|
|
|
2008-05-18 18:25:20 +02:00
|
|
|
SRCS_MPLAYER-$(GUI_WIN32) += gui/win32/dialogs.c \
|
2008-04-11 19:45:02 +02:00
|
|
|
gui/win32/gui.c \
|
|
|
|
gui/win32/interface.c \
|
|
|
|
gui/win32/playlist.c \
|
|
|
|
gui/win32/preferences.c \
|
|
|
|
gui/win32/skinload.c \
|
|
|
|
gui/win32/widgetrender.c \
|
|
|
|
gui/win32/wincfg.c \
|
|
|
|
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(IVTV) += libao2/ao_ivtv.c libvo/vo_ivtv.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(JACK) += libao2/ao_jack.c
|
2008-04-07 01:09:06 +02:00
|
|
|
SRCS_MPLAYER-$(JOYSTICK) += input/joystick.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(JPEG) += libvo/vo_jpeg.c
|
2008-04-11 10:18:28 +02: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 12:44:21 +02:00
|
|
|
SRCS_MPLAYER-$(LIBMENU_DVBIN) += libmenu/menu_dvbin.c
|
2008-04-30 16:42:16 +02:00
|
|
|
SRCS_MPLAYER-$(LIRC) += input/lirc.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(MD5SUM) += libvo/vo_md5sum.c
|
|
|
|
SRCS_MPLAYER-$(MGA) += libvo/vo_mga.c
|
2008-12-03 13:05:47 +01: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 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(PNG) += libvo/vo_png.c
|
|
|
|
SRCS_MPLAYER-$(PNM) += libvo/vo_pnm.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(PULSE) += libao2/ao_pulse.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(QUARTZ) += libvo/vo_quartz.c
|
|
|
|
SRCS_MPLAYER-$(S3FB) += libvo/vo_s3fb.c
|
|
|
|
SRCS_MPLAYER-$(SDL) += libao2/ao_sdl.c libvo/vo_sdl.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(SGIAUDIO) += libao2/ao_sgi.c
|
|
|
|
SRCS_MPLAYER-$(SUNAUDIO) += libao2/ao_sun.c
|
2008-12-03 15:48:31 +01: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 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(V4L2) += libao2/ao_v4l2.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(VESA) += libvo/gtf.c libvo/vo_vesa.c libvo/vesa_lvo.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX) += libvo/vo_cvidix.c \
|
|
|
|
libvo/vosub_vidix.c \
|
2008-06-20 22:17:38 +02:00
|
|
|
vidix/vidix.c \
|
2008-04-26 14:47:24 +02:00
|
|
|
vidix/drivers.c \
|
|
|
|
vidix/dha.c \
|
|
|
|
vidix/mtrr.c \
|
|
|
|
vidix/pci.c \
|
|
|
|
vidix/pci_names.c \
|
|
|
|
vidix/pci_dev_ids.c\
|
|
|
|
|
2008-04-30 16:42:16 +02:00
|
|
|
SRCS_MPLAYER-$(VIDIX_CYBERBLADE) += vidix/cyberblade_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_IVTV) += vidix/ivtv_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_MACH64) += vidix/mach64_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_MGA) += vidix/mga_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_MGA_CRTC2) += vidix/mga_crtc2_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_NVIDIA) += vidix/nvidia_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_PM2) += vidix/pm2_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_PM3) += vidix/pm3_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_RADEON) += vidix/radeon_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_RAGE128) += vidix/rage128_vid.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_S3) += vidix/s3_vid.c
|
2008-08-12 01:10:03 +02:00
|
|
|
SRCS_MPLAYER-$(VIDIX_SH_VEU) += vidix/sh_veu_vid.c
|
2008-04-30 16:42:16 +02:00
|
|
|
SRCS_MPLAYER-$(VIDIX_SIS) += vidix/sis_vid.c vidix/sis_bridge.c
|
|
|
|
SRCS_MPLAYER-$(VIDIX_UNICHROME) += vidix/unichrome_vid.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(WII) += libvo/vo_wii.c
|
2008-12-03 13:05:47 +01:00
|
|
|
SRCS_MPLAYER-$(WIN32WAVEOUT) += libao2/ao_win32.c
|
2008-12-03 15:48:31 +01:00
|
|
|
SRCS_MPLAYER-$(WINVIDIX) += libvo/vo_winvidix.c
|
|
|
|
SRCS_MPLAYER-$(X11) += libvo/vo_x11.c libvo/vo_xover.c libvo/x11_common.c
|
|
|
|
SRCS_MPLAYER-$(XMGA) += libvo/vo_xmga.c
|
|
|
|
SRCS_MPLAYER-$(XV) += libvo/vo_xv.c
|
|
|
|
SRCS_MPLAYER-$(XVIDIX) += libvo/vo_xvidix.c
|
|
|
|
SRCS_MPLAYER-$(XVMC) += libvo/vo_xvmc.c
|
|
|
|
SRCS_MPLAYER-$(XVR100) += libvo/vo_xvr100.c
|
|
|
|
SRCS_MPLAYER-$(YUV4MPEG) += libvo/vo_yuv4mpeg.c
|
|
|
|
SRCS_MPLAYER-$(ZR) += libvo/jpeg_enc.c libvo/vo_zr.c libvo/vo_zr2.c
|
2008-04-23 12:07:50 +02:00
|
|
|
|
2005-06-20 00:52:55 +02:00
|
|
|
SRCS_MENCODER = mencoder.c \
|
|
|
|
mp_msg-mencoder.c \
|
|
|
|
parser-mecmd.c \
|
|
|
|
xvid_vbr.c \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs/ae.c \
|
|
|
|
libmpcodecs/ae_pcm.c \
|
|
|
|
libmpcodecs/ve.c \
|
|
|
|
libmpcodecs/ve_raw.c \
|
2008-04-25 00:05:43 +02:00
|
|
|
libmpdemux/muxer.c \
|
|
|
|
libmpdemux/muxer_avi.c \
|
|
|
|
libmpdemux/muxer_mpeg.c \
|
|
|
|
libmpdemux/muxer_rawaudio.c \
|
|
|
|
libmpdemux/muxer_rawvideo.c \
|
2008-04-24 15:04:50 +02:00
|
|
|
|
|
|
|
SRCS_MENCODER-$(FAAC) += libmpcodecs/ae_faac.c
|
|
|
|
SRCS_MENCODER-$(LIBAVCODEC) += libmpcodecs/ae_lavc.c libmpcodecs/ve_lavc.c
|
2008-04-25 00:05:43 +02:00
|
|
|
SRCS_MENCODER-$(LIBAVFORMAT) += libmpdemux/muxer_lavf.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_MENCODER-$(LIBDV) += libmpcodecs/ve_libdv.c
|
|
|
|
SRCS_MENCODER-$(LIBLZO) += libmpcodecs/ve_nuv.c
|
|
|
|
SRCS_MENCODER-$(MP3LAME) += libmpcodecs/ae_lame.c
|
2008-04-26 12:53:32 +02:00
|
|
|
SRCS_MENCODER-$(QTX_CODECS_WIN32) += libmpcodecs/ve_qtvideo.c
|
2008-04-24 15:04:50 +02:00
|
|
|
SRCS_MENCODER-$(TOOLAME) += libmpcodecs/ae_toolame.c
|
|
|
|
SRCS_MENCODER-$(TWOLAME) += libmpcodecs/ae_twolame.c
|
|
|
|
SRCS_MENCODER-$(WIN32DLL) += libmpcodecs/ve_vfw.c
|
|
|
|
SRCS_MENCODER-$(X264) += libmpcodecs/ve_x264.c
|
|
|
|
SRCS_MENCODER-$(XVID4) += libmpcodecs/ve_xvid4.c
|
|
|
|
|
2008-04-30 15:58:26 +02:00
|
|
|
SRCS_COMMON += $(SRCS_COMMON-yes) $(SRCS_COMMON-yes-yes) $(SRCS_COMMON-yes-yes-yes)
|
|
|
|
SRCS_MENCODER += $(SRCS_MENCODER-yes)
|
|
|
|
SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
|
2005-06-20 00:52:55 +02:00
|
|
|
|
2007-05-12 01:15:11 +02:00
|
|
|
COMMON_LIBS-$(LIBAVFORMAT_A) += libavformat/libavformat.a
|
|
|
|
COMMON_LIBS-$(LIBAVCODEC_A) += libavcodec/libavcodec.a
|
|
|
|
COMMON_LIBS-$(LIBAVUTIL_A) += libavutil/libavutil.a
|
|
|
|
COMMON_LIBS-$(LIBPOSTPROC_A) += libpostproc/libpostproc.a
|
2008-09-17 00:30:22 +02:00
|
|
|
COMMON_LIBS-$(LIBSWSCALE_A) += libswscale/libswscale.a
|
2008-04-30 15:58:26 +02:00
|
|
|
COMMON_LIBS += $(COMMON_LIBS-yes)
|
2007-03-24 20:59:36 +01:00
|
|
|
|
2008-04-30 15:58:26 +02:00
|
|
|
OBJS_COMMON += $(addsuffix .o, $(basename $(SRCS_COMMON)))
|
|
|
|
OBJS_MENCODER += $(addsuffix .o, $(basename $(SRCS_MENCODER)))
|
|
|
|
OBJS_MPLAYER += $(addsuffix .o, $(basename $(SRCS_MPLAYER)))
|
|
|
|
OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o
|
|
|
|
OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
|
2007-03-24 20:59:36 +01:00
|
|
|
|
2008-04-28 20:34:59 +02:00
|
|
|
MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(COMMON_LIBS)
|
2008-08-07 14:35:34 +02:00
|
|
|
MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(COMMON_LIBS)
|
2008-07-05 11:07:24 +02:00
|
|
|
DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER))))
|
2007-03-24 20:59:36 +01:00
|
|
|
|
2008-04-30 15:58:26 +02:00
|
|
|
ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
|
|
|
|
ALL_PRG-$(MENCODER) += mencoder$(EXESUF)
|
2008-04-29 10:53:08 +02:00
|
|
|
|
2008-05-18 18:25:20 +02:00
|
|
|
INSTALL_TARGETS-$(GUI) += install-gui
|
2008-08-07 14:35:34 +02:00
|
|
|
INSTALL_TARGETS-$(MENCODER) += install-mencoder install-mencoder-man
|
|
|
|
INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man
|
2007-03-24 20:59:36 +01:00
|
|
|
|
2008-04-28 19:54:14 +02:00
|
|
|
DIRS = . \
|
2008-04-25 10:25:17 +02:00
|
|
|
gui \
|
2008-04-13 23:20:29 +02:00
|
|
|
gui/mplayer \
|
|
|
|
gui/mplayer/gtk \
|
|
|
|
gui/skin \
|
|
|
|
gui/wm \
|
|
|
|
gui/win32 \
|
|
|
|
input \
|
2008-04-27 13:46:56 +02:00
|
|
|
liba52 \
|
2008-04-09 20:15:21 +02:00
|
|
|
libaf \
|
2008-04-23 11:33:51 +02:00
|
|
|
libao2 \
|
2008-04-09 00:25:59 +02:00
|
|
|
libass \
|
2008-04-29 09:37:35 +02:00
|
|
|
libavcodec \
|
|
|
|
libavcodec/alpha \
|
2008-12-17 02:10:34 +01:00
|
|
|
libavcodec/arm \
|
2008-04-29 09:37:35 +02:00
|
|
|
libavcodec/bfin \
|
|
|
|
libavcodec/mlib \
|
|
|
|
libavcodec/ppc \
|
|
|
|
libavcodec/sh4 \
|
|
|
|
libavcodec/sparc \
|
2008-12-22 10:20:18 +01:00
|
|
|
libavcodec/x86 \
|
2008-04-29 09:37:35 +02:00
|
|
|
libavformat \
|
|
|
|
libavutil \
|
2008-04-25 00:27:01 +02:00
|
|
|
libdvdcss \
|
2009-01-10 14:51:02 +01:00
|
|
|
libdvdnav \
|
|
|
|
libdvdnav/vm \
|
2009-01-08 20:28:28 +01:00
|
|
|
libdvdread4 \
|
2008-04-25 01:11:16 +02:00
|
|
|
libfaad2 \
|
2008-04-07 10:28:54 +02:00
|
|
|
libmenu \
|
2008-04-24 15:04:50 +02:00
|
|
|
libmpcodecs \
|
|
|
|
libmpcodecs/native \
|
2008-04-25 00:05:43 +02:00
|
|
|
libmpdemux \
|
2008-04-26 20:02:23 +02:00
|
|
|
libmpeg2 \
|
2008-04-29 09:37:35 +02:00
|
|
|
libpostproc \
|
|
|
|
libswscale \
|
2008-04-23 12:07:50 +02:00
|
|
|
libvo \
|
2008-04-28 16:01:58 +02:00
|
|
|
loader \
|
|
|
|
loader/dshow \
|
|
|
|
loader/dmo \
|
2008-04-28 00:53:18 +02:00
|
|
|
mp3lib \
|
2008-04-08 20:25:30 +02:00
|
|
|
osdep \
|
2008-04-24 15:38:12 +02:00
|
|
|
stream \
|
|
|
|
stream/freesdp \
|
|
|
|
stream/librtsp \
|
|
|
|
stream/realrtsp \
|
2008-04-23 01:05:27 +02:00
|
|
|
tremor \
|
2008-04-22 10:50:38 +02:00
|
|
|
TOOLS \
|
2008-04-26 14:47:24 +02:00
|
|
|
vidix \
|
2002-09-22 15:04:19 +02:00
|
|
|
|
2008-07-05 11:07:24 +02:00
|
|
|
ALLHEADERS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.h))
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
PARTS = libavcodec \
|
|
|
|
libavformat \
|
|
|
|
libavutil \
|
|
|
|
libpostproc \
|
|
|
|
libswscale \
|
|
|
|
|
2008-07-05 11:08:22 +02:00
|
|
|
FFMPEGLIBS = $(foreach part, $(PARTS), $(part)/$(part).a)
|
2008-07-05 11:07:24 +02:00
|
|
|
FFMPEGFILES = $(foreach part, $(PARTS), $(part)/*.[chS] libavcodec/*/*.[chS])
|
|
|
|
|
2008-05-09 19:51:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
###### generic rules #######
|
|
|
|
|
2008-05-18 19:35:54 +02:00
|
|
|
all: $(ALL_PRG-yes)
|
2002-09-22 15:04:19 +02:00
|
|
|
|
2008-04-29 10:53:08 +02:00
|
|
|
%.d: %.c
|
|
|
|
$(MPDEPEND_CMD) > $@
|
|
|
|
|
|
|
|
%.d: %.cpp
|
|
|
|
$(MPDEPEND_CMD_CXX) > $@
|
|
|
|
|
|
|
|
%.d: %.m
|
|
|
|
$(MPDEPEND_CMD) > $@
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
%.ho: %.h
|
|
|
|
$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
|
|
|
|
|
2008-08-07 14:35:34 +02:00
|
|
|
%.o: %.m
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2008-07-06 15:26:30 +02:00
|
|
|
%-rc.o: %.rc
|
|
|
|
$(WINDRES) -I. $< $@
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
checkheaders: $(ALLHEADERS:.h=.ho)
|
2008-04-30 14:19:04 +02:00
|
|
|
|
2008-04-19 00:49:17 +02:00
|
|
|
dep depend: $(DEPS)
|
2008-04-28 17:36:00 +02:00
|
|
|
for part in $(PARTS); do $(MAKE) -C $$part depend; done
|
2007-05-01 21:15:29 +02:00
|
|
|
|
2008-08-14 22:42:54 +02:00
|
|
|
$(FFMPEGLIBS): $(FFMPEGFILES) config.h
|
2008-05-23 16:52:12 +02:00
|
|
|
$(MAKE) -C $(@D)
|
2008-06-24 10:55:06 +02:00
|
|
|
touch $@
|
2001-02-24 21:28:24 +01:00
|
|
|
|
2006-11-20 14:38:21 +01:00
|
|
|
mencoder$(EXESUF): $(MENCODER_DEPS)
|
2006-11-21 18:42:20 +01:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS_MENCODER)
|
2001-11-01 00:30:26 +01:00
|
|
|
|
2008-08-07 14:35:34 +02:00
|
|
|
mplayer$(EXESUF): $(MPLAYER_DEPS)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
|
|
|
|
|
2006-11-08 01:13:33 +01:00
|
|
|
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
|
2008-09-15 17:34:26 +02:00
|
|
|
$(HOST_CC) -O -DCODECS2HTML $(EXTRA_INC) -o $@ $<
|
2006-07-13 03:20:14 +02:00
|
|
|
|
2006-11-09 00:45:15 +01:00
|
|
|
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
|
2008-07-06 15:36:17 +02:00
|
|
|
./$^ > $@
|
2002-12-16 00:45:19 +01:00
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
# ./configure must be rerun if it changed
|
|
|
|
config.mak: configure
|
|
|
|
@echo "############################################################"
|
|
|
|
@echo "####### Please run ./configure again - it's changed! #######"
|
|
|
|
@echo "############################################################"
|
|
|
|
|
|
|
|
help_mp.h: help/help_mp-en.h $(HELP_FILE)
|
2008-05-28 00:03:21 +02:00
|
|
|
help/help_create.sh $(HELP_FILE) $(CHARSET)
|
2008-05-09 19:47:19 +02:00
|
|
|
|
2008-05-27 13:19:35 +02:00
|
|
|
# rebuild version.h each time the working copy is updated
|
|
|
|
ifeq ($(wildcard .svn/entries),.svn/entries)
|
|
|
|
version.h: .svn/entries
|
|
|
|
endif
|
|
|
|
version.h:
|
|
|
|
./version.sh `$(CC) -dumpversion`
|
|
|
|
|
2008-07-04 16:35:44 +02:00
|
|
|
%(EXESUF): %.c
|
|
|
|
|
2008-05-09 19:51:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
###### dependency declarations / specific CFLAGS ######
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
codec-cfg.d: codecs.conf.h
|
2009-01-25 21:35:58 +01:00
|
|
|
mpcommon.d vobsub.d gui/win32/gui.d libmpdemux/muxer_avi.d osdep/mplayer-rc.o stream/network.d stream/stream_cddb.d: version.h
|
2008-05-09 19:47:19 +02:00
|
|
|
$(DEPS): help_mp.h
|
|
|
|
|
2008-08-07 23:46:06 +02:00
|
|
|
libdvdcss/%.o libdvdcss/%.d: CFLAGS += -D__USE_UNIX98 -D_GNU_SOURCE -DVERSION=\"1.2.9\" $(CFLAGS_LIBDVDCSS)
|
2009-01-10 14:51:02 +01:00
|
|
|
libdvdnav/%.o libdvdnav/%.d: CFLAGS += -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\"
|
2009-01-08 20:28:28 +01:00
|
|
|
libdvdread4/%.o libdvdread4/%.d: CFLAGS += -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H $(CFLAGS_LIBDVDCSS_DVDREAD)
|
2008-08-07 23:46:06 +02:00
|
|
|
libfaad2/%.o libfaad2/%.d: CFLAGS += -Ilibfaad2 -D_GNU_SOURCE -DHAVE_CONFIG_H $(CFLAGS_FAAD_FIXED)
|
2008-04-25 00:27:01 +02:00
|
|
|
|
2008-08-07 23:03:14 +02:00
|
|
|
loader/% loader/%: CFLAGS += -Iloader -fno-omit-frame-pointer $(CFLAGS_NO_OMIT_LEAF_FRAME_POINTER)
|
2008-04-28 16:01:58 +02:00
|
|
|
#loader/%.o loader/%.d: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
|
2008-08-07 23:03:14 +02:00
|
|
|
loader/win32.o loader/win32.d: CFLAGS += $(CFLAGS_STACKREALIGN)
|
2008-04-28 16:01:58 +02:00
|
|
|
|
2008-04-28 00:53:18 +02:00
|
|
|
mp3lib/decode_i586.o: CFLAGS += -fomit-frame-pointer
|
|
|
|
|
2008-08-07 23:46:06 +02:00
|
|
|
tremor/%.o tremor/%.d: CFLAGS += $(CFLAGS_TREMOR_LOW)
|
|
|
|
|
2008-08-07 23:03:14 +02:00
|
|
|
vidix/%: CFLAGS += $(CFLAGS_DHAHELPER) $(CFLAGS_SVGALIB_HELPER)
|
2008-06-07 16:32:06 +02:00
|
|
|
|
2008-04-26 14:47:24 +02:00
|
|
|
VIDIX_PCI_FILES = vidix/pci_dev_ids.c vidix/pci_ids.h vidix/pci_names.c \
|
|
|
|
vidix/pci_names.h vidix/pci_vendors.h
|
|
|
|
|
2008-06-07 13:53:29 +02:00
|
|
|
$(VIDIX_PCI_FILES): vidix/pci.db vidix/pci_db2c.awk
|
2008-06-07 14:01:29 +02:00
|
|
|
awk -f vidix/pci_db2c.awk $< $(VIDIX_PCIDB)
|
2008-04-26 14:47:24 +02:00
|
|
|
|
2008-04-28 15:28:36 +02:00
|
|
|
VIDIX_DEPS = $(filter vidix/%,$(SRCS_MPLAYER:.c=.d))
|
|
|
|
VIDIX_OBJS = $(filter vidix/%,$(SRCS_MPLAYER:.c=.o))
|
|
|
|
|
|
|
|
$(VIDIX_DEPS) $(VIDIX_OBJS): $(VIDIX_PCI_FILES)
|
2008-04-26 14:47:24 +02:00
|
|
|
|
2008-04-30 19:53:38 +02:00
|
|
|
|
2008-05-09 19:51:44 +02:00
|
|
|
|
2008-05-27 13:31:57 +02:00
|
|
|
###### installation / clean / generic rules #######
|
2008-05-09 19:51:44 +02:00
|
|
|
|
2008-05-18 19:35:54 +02:00
|
|
|
install: $(INSTALL_TARGETS-yes)
|
2007-01-30 12:00:54 +01:00
|
|
|
|
2007-01-30 12:02:19 +01:00
|
|
|
install-dirs:
|
2008-10-16 22:25:41 +02:00
|
|
|
$(INSTALL) -d $(BINDIR) $(CONFDIR) $(LIBDIR)
|
2007-01-30 12:00:54 +01:00
|
|
|
|
2008-05-18 19:16:43 +02:00
|
|
|
install-%: %$(EXESUF) install-dirs
|
2008-05-18 18:01:46 +02:00
|
|
|
$(INSTALL) -m 755 $(INSTALLSTRIP) $< $(BINDIR)
|
2007-01-30 12:00:54 +01:00
|
|
|
|
2008-08-07 14:35:34 +02:00
|
|
|
install-gui: install-mplayer
|
|
|
|
-ln -sf mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
|
|
|
|
$(INSTALL) -d $(DATADIR)/skins $(prefix)/share/pixmaps $(prefix)/share/applications
|
|
|
|
$(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/
|
|
|
|
$(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
|
|
|
|
|
2008-07-17 14:36:54 +02:00
|
|
|
install-mencoder-man: $(foreach lang,$(MAN_LANGS),install-mencoder-man-$(lang))
|
2008-08-07 14:35:34 +02:00
|
|
|
install-mplayer-man: $(foreach lang,$(MAN_LANGS),install-mplayer-man-$(lang))
|
|
|
|
|
|
|
|
install-mencoder-man-en: install-mplayer-man-en
|
|
|
|
cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1
|
2008-05-18 19:05:16 +02:00
|
|
|
|
|
|
|
install-mplayer-man-en:
|
2008-05-18 19:05:55 +02:00
|
|
|
$(INSTALL) -d $(MANDIR)/man1
|
2008-05-18 19:05:16 +02:00
|
|
|
$(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/
|
|
|
|
|
2008-08-07 14:35:34 +02:00
|
|
|
define MENCODER_MAN_RULE
|
|
|
|
install-mencoder-man-$(lang): install-mplayer-man-$(lang)
|
|
|
|
cd $(MANDIR)/$(lang)/man1 && ln -sf mplayer.1 mencoder.1
|
|
|
|
endef
|
2008-05-18 19:05:16 +02:00
|
|
|
|
|
|
|
define MPLAYER_MAN_RULE
|
|
|
|
install-mplayer-man-$(lang):
|
2008-05-18 19:05:55 +02:00
|
|
|
$(INSTALL) -d $(MANDIR)/$(lang)/man1
|
2008-05-18 19:05:16 +02:00
|
|
|
$(INSTALL) -c -m 644 DOCS/man/$(lang)/mplayer.1 $(MANDIR)/$(lang)/man1/
|
|
|
|
endef
|
|
|
|
|
2008-07-19 13:32:33 +02:00
|
|
|
$(foreach lang,$(filter-out en,$(MAN_LANG_ALL)),$(eval $(MENCODER_MAN_RULE)))
|
2008-08-07 14:35:34 +02:00
|
|
|
$(foreach lang,$(filter-out en,$(MAN_LANG_ALL)),$(eval $(MPLAYER_MAN_RULE)))
|
2007-01-30 12:00:54 +01:00
|
|
|
|
2001-10-23 00:46:38 +02:00
|
|
|
uninstall:
|
2008-05-18 16:23:45 +02:00
|
|
|
rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
|
|
|
|
rm -f $(BINDIR)/mencoder$(EXESUF)
|
|
|
|
rm -f $(MANDIR)/man1/mencoder.1 $(MANDIR)/man1/mplayer.1
|
|
|
|
rm -f $(prefix)/share/pixmaps/mplayer.xpm
|
|
|
|
rm -f $(prefix)/share/applications/mplayer.desktop
|
2008-05-18 18:13:46 +02:00
|
|
|
rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1
|
2008-07-17 14:36:54 +02:00
|
|
|
rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))
|
2001-10-23 00:46:38 +02:00
|
|
|
|
2008-04-30 19:54:02 +02:00
|
|
|
clean:
|
2008-04-29 09:37:35 +02:00
|
|
|
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir))))
|
2008-04-29 09:10:55 +02:00
|
|
|
rm -f mplayer$(EXESUF) mencoder$(EXESUF)
|
2006-08-03 19:31:30 +02:00
|
|
|
|
2008-07-06 15:06:05 +02:00
|
|
|
distclean: clean testsclean toolsclean driversclean dhahelperclean dhahelperwinclean
|
2008-05-27 13:24:07 +02:00
|
|
|
rm -rf DOCS/tech/doxygen
|
2008-04-19 00:49:17 +02:00
|
|
|
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
|
2008-04-29 09:10:55 +02:00
|
|
|
rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \
|
2008-04-30 19:53:38 +02:00
|
|
|
version.h $(VIDIX_PCI_FILES) \
|
2008-05-27 13:22:55 +02:00
|
|
|
codec-cfg$(EXESUF) cpuinfo$(EXESUF) TAGS tags
|
2001-02-24 21:28:24 +01:00
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
doxygen:
|
|
|
|
doxygen DOCS/tech/Doxyfile
|
|
|
|
|
2008-01-10 19:40:26 +01:00
|
|
|
TAGS:
|
2008-11-16 14:04:16 +01:00
|
|
|
rm -f $@; ( find -name '*.[chS]' -o -name '*.asm' -print ) | xargs etags -a
|
2008-01-10 19:40:26 +01:00
|
|
|
|
|
|
|
tags:
|
2008-11-16 14:04:16 +01:00
|
|
|
rm -f $@; ( find -name '*.[chS]' -o -name '*.asm' -print ) | xargs ctags -a
|
2008-01-10 19:40:26 +01:00
|
|
|
|
2008-04-29 10:53:08 +02:00
|
|
|
|
2008-05-09 19:51:44 +02:00
|
|
|
|
|
|
|
###### tests / tools #######
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
|
2002-08-10 20:45:31 +02:00
|
|
|
|
2008-05-27 13:09:17 +02:00
|
|
|
codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS)
|
2008-05-27 13:28:00 +02:00
|
|
|
$(CC) -I. -DTESTING -o $@ $^
|
2008-05-27 11:11:13 +02:00
|
|
|
|
2008-08-07 14:35:34 +02:00
|
|
|
codecs2html$(EXESUF): codec-cfg.c $(TEST_OBJS)
|
|
|
|
$(CC) -I. -DCODECS2HTML -o $@ $^
|
|
|
|
|
2008-07-04 16:35:44 +02:00
|
|
|
liba52/test$(EXESUF): cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o)) -lm
|
2004-08-23 02:25:19 +02:00
|
|
|
|
2008-07-04 16:35:44 +02:00
|
|
|
libvo/aspecttest$(EXESUF): libvo/aspect.o libvo/geometry.o $(TEST_OBJS)
|
2004-08-23 02:25:19 +02:00
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
LOADER_TEST_OBJS = $(filter loader/%,$(SRCS_COMMON:.c=.o)) libmpdemux/aviprint.o osdep/mmap_anon.o cpudetect.o $(TEST_OBJS)
|
|
|
|
|
|
|
|
loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): CFLAGS += -g
|
2008-07-04 16:35:44 +02:00
|
|
|
loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): $(LOADER_TEST_OBJS)
|
2008-05-09 19:47:19 +02:00
|
|
|
|
2008-07-04 15:42:19 +02:00
|
|
|
mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF): $(filter mp3lib/%,$(SRCS_COMMON:.c=.o)) libvo/aclib.o cpudetect.o $(TEST_OBJS)
|
2008-05-09 19:47:19 +02:00
|
|
|
|
2008-05-27 13:21:19 +02:00
|
|
|
TESTS = codecs2html$(EXESUF) codec-cfg-test$(EXESUF) \
|
2008-05-27 13:13:43 +02:00
|
|
|
liba52/test$(EXESUF) libvo/aspecttest$(EXESUF) \
|
2008-05-09 19:47:19 +02:00
|
|
|
mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF)
|
|
|
|
|
2008-07-04 16:33:03 +02:00
|
|
|
ifdef ARCH_X86
|
|
|
|
TESTS += loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF)
|
|
|
|
endif
|
|
|
|
|
2008-05-09 19:47:19 +02:00
|
|
|
tests: $(TESTS)
|
|
|
|
|
|
|
|
testsclean:
|
|
|
|
rm -f $(TESTS)
|
2008-04-22 10:50:38 +02:00
|
|
|
|
|
|
|
TOOLS = TOOLS/alaw-gen$(EXESUF) \
|
|
|
|
TOOLS/asfinfo$(EXESUF) \
|
|
|
|
TOOLS/avi-fix$(EXESUF) \
|
|
|
|
TOOLS/avisubdump$(EXESUF) \
|
|
|
|
TOOLS/compare$(EXESUF) \
|
|
|
|
TOOLS/dump_mp4$(EXESUF) \
|
|
|
|
TOOLS/movinfo$(EXESUF) \
|
2008-06-06 15:28:25 +02:00
|
|
|
TOOLS/netstream$(EXESUF) \
|
2008-04-22 10:50:38 +02:00
|
|
|
TOOLS/subrip$(EXESUF) \
|
2008-06-06 15:28:25 +02:00
|
|
|
TOOLS/vivodump$(EXESUF) \
|
2008-04-22 10:50:38 +02:00
|
|
|
|
|
|
|
ifdef ARCH_X86
|
|
|
|
TOOLS += TOOLS/modify_reg$(EXESUF)
|
|
|
|
endif
|
|
|
|
|
2008-04-26 11:31:05 +02:00
|
|
|
ALLTOOLS = $(TOOLS) \
|
|
|
|
TOOLS/bmovl-test$(EXESUF) \
|
|
|
|
TOOLS/vfw2menc$(EXESUF) \
|
|
|
|
|
2008-04-22 10:50:38 +02:00
|
|
|
tools: $(TOOLS)
|
2008-04-26 11:31:05 +02:00
|
|
|
alltools: $(ALLTOOLS)
|
2008-04-22 10:50:38 +02:00
|
|
|
|
2008-05-27 13:37:50 +02:00
|
|
|
toolsclean:
|
|
|
|
rm -f $(ALLTOOLS) TOOLS/fastmem*-* TOOLS/realcodecs/*.so.6.0
|
|
|
|
|
2008-07-04 16:35:44 +02:00
|
|
|
TOOLS/bmovl-test$(EXESUF): -lSDL_image
|
2008-04-22 10:50:38 +02:00
|
|
|
|
2008-07-06 15:18:29 +02:00
|
|
|
TOOLS/subrip$(EXESUF): vobsub.o spudec.o unrar_exec.o libvo/aclib.o \
|
|
|
|
libswscale/libswscale.a libavutil/libavutil.a $(TEST_OBJS)
|
2008-04-22 10:50:38 +02:00
|
|
|
|
2008-07-04 16:35:44 +02:00
|
|
|
TOOLS/vfw2menc$(EXESUF): -lwinmm -lole32
|
2008-04-22 10:50:38 +02:00
|
|
|
|
2008-06-06 15:28:25 +02:00
|
|
|
mplayer-nomain.o: mplayer.c
|
|
|
|
$(CC) $(CFLAGS) -DDISABLE_MAIN -c -o $@ $<
|
|
|
|
|
2008-07-04 15:02:12 +02:00
|
|
|
TOOLS/netstream$(EXESUF): TOOLS/netstream.c
|
|
|
|
TOOLS/vivodump$(EXESUF): TOOLS/vivodump.c
|
|
|
|
TOOLS/netstream$(EXESUF) TOOLS/vivodump$(EXESUF): $(subst mplayer.o,mplayer-nomain.o,$(OBJS_MPLAYER)) $(filter-out %mencoder.o,$(OBJS_MENCODER)) $(OBJS_COMMON) $(COMMON_LIBS)
|
2008-06-06 15:28:25 +02:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(EXTRALIBS_MPLAYER) $(EXTRALIBS_MENCODER) $(COMMON_LDFLAGS)
|
2008-04-22 10:50:38 +02:00
|
|
|
|
|
|
|
fastmemcpybench: TOOLS/fastmemcpybench.c
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
2008-08-02 19:38:11 +02:00
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DCONFIG_MGA -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DCONFIG_MGA -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DCONFIG_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DCONFIG_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
2008-04-22 10:50:38 +02:00
|
|
|
|
|
|
|
REAL_SRCS = $(wildcard TOOLS/realcodecs/*.c)
|
|
|
|
REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0)
|
|
|
|
|
|
|
|
realcodecs: $(REAL_TARGETS)
|
|
|
|
|
|
|
|
fastmemcpybench realcodecs: CFLAGS += -g
|
|
|
|
|
|
|
|
%.so.6.0: %.o
|
|
|
|
ld -shared -o $@ $< -ldl -lc
|
|
|
|
|
2008-05-28 14:40:15 +02: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 15:41:08 +02:00
|
|
|
DRIVER_OBJS = $(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test
|
2008-05-28 14:40:15 +02:00
|
|
|
|
2008-07-06 15:41:08 +02:00
|
|
|
drivers: $(DRIVER_OBJS)
|
2008-05-28 14:40:15 +02:00
|
|
|
|
2008-07-06 15:41:08 +02:00
|
|
|
$(DRIVER_OBJS): CFLAGS = $(KERNEL_CFLAGS)
|
2008-05-28 14:40:15 +02: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 15:41:08 +02:00
|
|
|
install-drivers: $(DRIVER_OBJS)
|
2008-05-28 14:40:15 +02: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:
|
2008-07-06 15:41:08 +02:00
|
|
|
rm -f $(DRIVER_OBJS) drivers/*~
|
2008-05-28 14:40:15 +02:00
|
|
|
|
2008-05-30 21:39:00 +02:00
|
|
|
dhahelper: vidix/dhahelper/dhahelper.o vidix/dhahelper/test
|
|
|
|
|
|
|
|
vidix/dhahelper/dhahelper.o vidix/dhahelper/test: CFLAGS = $(KERNEL_CFLAGS)
|
|
|
|
vidix/dhahelper/dhahelper.o: vidix/dhahelper/dhahelper.c vidix/dhahelper/dhahelper.h
|
|
|
|
|
|
|
|
install-dhahelper: vidix/dhahelper/dhahelper.o
|
|
|
|
-mkdir -p $(MODULES_DIR)
|
|
|
|
install -m 644 $< $(MODULES_DIR)
|
|
|
|
depmod -a
|
2008-06-08 16:18:51 +02:00
|
|
|
-mknod /dev/dhahelper c 180 0
|
2008-05-30 21:39:00 +02:00
|
|
|
|
|
|
|
dhahelperclean:
|
|
|
|
rm -f vidix/dhahelper/*.o vidix/dhahelper/*~ vidix/dhahelper/test
|
|
|
|
|
2008-05-30 22:09:31 +02:00
|
|
|
dhahelperwin: vidix/dhahelperwin/dhasetup.exe vidix/dhahelperwin/dhahelper.sys
|
|
|
|
|
|
|
|
vidix/dhahelperwin/dhasetup.exe: vidix/dhahelperwin/dhasetup.c
|
|
|
|
$(CC) -o $@ $<
|
|
|
|
|
|
|
|
vidix/dhahelperwin/dhahelper.o: vidix/dhahelperwin/dhahelper.c vidix/dhahelperwin/dhahelper.h
|
|
|
|
$(CC) -Wall -Os -c $< -o $@
|
|
|
|
|
2008-07-06 15:28:45 +02:00
|
|
|
vidix/dhahelperwin/dhahelper-rc.o: vidix/dhahelperwin/common.ver vidix/dhahelperwin/ntverp.h
|
2008-05-30 22:09:31 +02:00
|
|
|
|
|
|
|
vidix/dhahelperwin/base.tmp: vidix/dhahelperwin/dhahelper.o vidix/dhahelperwin/dhahelper-rc.o
|
|
|
|
$(CC) -Wl,--base-file,$@ -Wl,--entry,_DriverEntry@8 -nostartfiles \
|
|
|
|
-nostdlib -o vidix/dhahelperwin/junk.tmp $^ -lntoskrnl
|
|
|
|
-rm -f vidix/dhahelperwin/junk.tmp
|
|
|
|
|
|
|
|
vidix/dhahelperwin/temp.exp: vidix/dhahelperwin/base.tmp
|
|
|
|
dlltool --dllname vidix/dhahelperwin/dhahelper.sys --base-file $< --output-exp $@
|
|
|
|
|
|
|
|
vidix/dhahelperwin/dhahelper.sys: vidix/dhahelperwin/temp.exp vidix/dhahelperwin/dhahelper.o vidix/dhahelperwin/dhahelper-rc.o
|
|
|
|
$(CC) -Wl,--subsystem,native -Wl,--image-base,0x10000 \
|
|
|
|
-Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 \
|
|
|
|
-Wl,--entry,_DriverEntry@8 -Wl,$< -mdll -nostartfiles -nostdlib \
|
|
|
|
-o $@ vidix/dhahelperwin/dhahelper.o \
|
|
|
|
vidix/dhahelperwin/dhahelper-rc.o -lntoskrnl
|
|
|
|
strip $@
|
|
|
|
|
2008-05-30 22:10:36 +02:00
|
|
|
install-dhahelperwin:
|
|
|
|
vidix/dhahelperwin/dhasetup.exe install
|
|
|
|
|
2008-05-30 22:09:31 +02:00
|
|
|
dhahelperwinclean:
|
|
|
|
rm -f $(addprefix vidix/dhahelperwin/,*.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp)
|
|
|
|
|
2008-05-28 14:40:15 +02:00
|
|
|
|
|
|
|
|
2008-08-18 08:30:10 +02:00
|
|
|
# Do not include dependencies when they are about to be removed anyway.
|
2008-08-09 15:53:19 +02:00
|
|
|
ifneq ($(MAKECMDGOALS),distclean)
|
2008-04-28 15:31:00 +02:00
|
|
|
-include $(DEPS)
|
2008-08-09 15:53:19 +02:00
|
|
|
endif
|
2008-04-24 23:58:45 +02:00
|
|
|
|
2008-06-24 10:48:04 +02:00
|
|
|
.PHONY: all doxygen *install* *tools drivers dhahelper*
|
2008-04-30 16:37:34 +02:00
|
|
|
.PHONY: checkheaders *clean dep depend tests
|