1 # LINUX Makefile made by A'rpi / Astral
2 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
3 # * for loops instead of linear sequence of make directories
4 # * some minor problems with make clean and distclean were corrected
9 COMMON_LDFLAGS
+= $(EXTRA_LIB
)\
12 LDFLAGS_MPLAYER
= $(EXTRALIBS_MPLAYER
) \
15 LDFLAGS_MENCODER
= $(EXTRALIBS_MENCODER
) \
18 SRCS_COMMON
= asxparser.c \
44 libaf
/af_equalizer.c \
45 libaf
/af_extrastereo.c \
52 libaf
/af_scaletempo.c \
53 libaf
/af_sinesuppress.c \
65 libmpcodecs
/ad_alaw.c \
66 libmpcodecs
/ad_dk3adpcm.c \
67 libmpcodecs
/ad_dvdpcm.c \
68 libmpcodecs
/ad_hwac3.c \
69 libmpcodecs
/ad_hwmpa.c \
70 libmpcodecs
/ad_imaadpcm.c \
71 libmpcodecs
/ad_msadpcm.c \
72 libmpcodecs
/ad_msgsm.c \
73 libmpcodecs
/ad_pcm.c \
74 libmpcodecs
/dec_audio.c \
75 libmpcodecs
/dec_video.c \
76 libmpcodecs
/img_format.c \
77 libmpcodecs
/mp_image.c \
78 libmpcodecs
/native
/nuppelvideo.c \
79 libmpcodecs
/native
/rtjpegn.c \
80 libmpcodecs
/native
/xa_gsm.c \
81 libmpcodecs
/pullup.c \
83 libmpcodecs
/vd_hmblck.c \
84 libmpcodecs
/vd_lzo.c \
85 libmpcodecs
/vd_mpegpes.c \
86 libmpcodecs
/vd_mtga.c \
87 libmpcodecs
/vd_null.c \
88 libmpcodecs
/vd_nuv.c \
89 libmpcodecs
/vd_raw.c \
90 libmpcodecs
/vd_sgi.c \
92 libmpcodecs
/vf_1bpp.c \
93 libmpcodecs
/vf_2xsai.c \
94 libmpcodecs
/vf_blackframe.c \
95 libmpcodecs
/vf_boxblur.c \
96 libmpcodecs
/vf_crop.c \
97 libmpcodecs
/vf_cropdetect.c \
98 libmpcodecs
/vf_decimate.c \
99 libmpcodecs
/vf_delogo.c \
100 libmpcodecs
/vf_denoise3d.c \
101 libmpcodecs
/vf_detc.c \
102 libmpcodecs
/vf_dint.c \
103 libmpcodecs
/vf_divtc.c \
104 libmpcodecs
/vf_down3dright.c \
105 libmpcodecs
/vf_dsize.c \
106 libmpcodecs
/vf_dvbscale.c \
107 libmpcodecs
/vf_eq.c \
108 libmpcodecs
/vf_eq2.c \
109 libmpcodecs
/vf_expand.c \
110 libmpcodecs
/vf_field.c \
111 libmpcodecs
/vf_fil.c \
112 libmpcodecs
/vf_filmdint.c \
113 libmpcodecs
/vf_flip.c \
114 libmpcodecs
/vf_format.c \
115 libmpcodecs
/vf_framestep.c \
116 libmpcodecs
/vf_halfpack.c \
117 libmpcodecs
/vf_harddup.c \
118 libmpcodecs
/vf_hqdn3d.c \
119 libmpcodecs
/vf_hue.c \
120 libmpcodecs
/vf_il.c \
121 libmpcodecs
/vf_ilpack.c \
122 libmpcodecs
/vf_ivtc.c \
123 libmpcodecs
/vf_kerndeint.c \
124 libmpcodecs
/vf_mirror.c \
125 libmpcodecs
/vf_noformat.c \
126 libmpcodecs
/vf_noise.c \
127 libmpcodecs
/vf_ow.c \
128 libmpcodecs
/vf_palette.c \
129 libmpcodecs
/vf_perspective.c \
130 libmpcodecs
/vf_phase.c \
131 libmpcodecs
/vf_pp7.c \
132 libmpcodecs
/vf_pullup.c \
133 libmpcodecs
/vf_rectangle.c \
134 libmpcodecs
/vf_remove_logo.c \
135 libmpcodecs
/vf_rgb2bgr.c \
136 libmpcodecs
/vf_rgbtest.c \
137 libmpcodecs
/vf_rotate.c \
138 libmpcodecs
/vf_sab.c \
139 libmpcodecs
/vf_scale.c \
140 libmpcodecs
/vf_smartblur.c \
141 libmpcodecs
/vf_softpulldown.c \
142 libmpcodecs
/vf_softskip.c \
143 libmpcodecs
/vf_swapuv.c \
144 libmpcodecs
/vf_telecine.c \
145 libmpcodecs
/vf_test.c \
146 libmpcodecs
/vf_tfields.c \
147 libmpcodecs
/vf_tile.c \
148 libmpcodecs
/vf_tinterlace.c \
149 libmpcodecs
/vf_unsharp.c \
150 libmpcodecs
/vf_vo.c \
151 libmpcodecs
/vf_yadif.c \
152 libmpcodecs
/vf_yuvcsp.c \
153 libmpcodecs
/vf_yuy2.c \
154 libmpcodecs
/vf_yvu9.c \
155 libmpdemux
/aac_hdr.c \
156 libmpdemux
/asfheader.c \
157 libmpdemux
/aviheader.c \
158 libmpdemux
/aviprint.c \
159 libmpdemux
/demuxer.c \
160 libmpdemux
/demux_aac.c \
161 libmpdemux
/demux_asf.c \
162 libmpdemux
/demux_audio.c \
163 libmpdemux
/demux_avi.c \
164 libmpdemux
/demux_demuxers.c \
165 libmpdemux
/demux_film.c \
166 libmpdemux
/demux_fli.c \
167 libmpdemux
/demux_lmlm4.c \
168 libmpdemux
/demux_mf.c \
169 libmpdemux
/demux_mkv.c \
170 libmpdemux
/demux_mov.c \
171 libmpdemux
/demux_mpg.c \
172 libmpdemux
/demux_nsv.c \
173 libmpdemux
/demux_nuv.c \
174 libmpdemux
/demux_pva.c \
175 libmpdemux
/demux_rawaudio.c \
176 libmpdemux
/demux_rawvideo.c \
177 libmpdemux
/demux_realaud.c \
178 libmpdemux
/demux_real.c \
179 libmpdemux
/demux_roq.c \
180 libmpdemux
/demux_smjpeg.c \
181 libmpdemux
/demux_ts.c \
182 libmpdemux
/demux_ty.c \
183 libmpdemux
/demux_ty_osd.c \
184 libmpdemux
/demux_viv.c \
185 libmpdemux
/demux_vqf.c \
186 libmpdemux
/demux_y4m.c \
188 libmpdemux
/extension.c \
190 libmpdemux
/mp3_hdr.c \
191 libmpdemux
/mp_taglists.c \
192 libmpdemux
/mpeg_hdr.c \
193 libmpdemux
/mpeg_packetizer.c \
194 libmpdemux
/parse_es.c \
195 libmpdemux
/parse_mp4.c \
197 libmpdemux
/yuv4mpeg.c \
198 libmpdemux
/yuv4mpeg_ratio.c \
206 stream
/stream_cue.c \
207 stream
/stream_file.c \
209 stream
/stream_null.c \
212 SRCS_COMMON-
$(AUDIO_INPUT
)-$(ALSA1X
) += stream
/ai_alsa1x.c
213 SRCS_COMMON-
$(AUDIO_INPUT
)-$(ALSA9
) += stream
/ai_alsa.c
214 SRCS_COMMON-
$(AUDIO_INPUT
)-$(OSS
) += stream
/ai_oss.c
215 SRCS_COMMON-
$(BITMAP_FONT
) += libvo
/font_load.c
216 SRCS_COMMON-
$(CDDA
) += stream
/stream_cdda.c \
218 SRCS_COMMON-
$(CDDB
) += stream
/stream_cddb.c
219 SRCS_COMMON-
$(DVBIN
) += stream
/dvb_tune.c \
221 SRCS_COMMON-
$(DVDNAV
) += stream
/stream_dvdnav.c
222 SRCS_COMMON-
$(DVDREAD
) += stream
/stream_dvd.c \
223 stream
/stream_dvd_common.c
224 SRCS_COMMON-
$(DVDREAD_INTERNAL
) += dvdread
/cmd_print.c \
225 dvdread
/dvd_input.c \
226 dvdread
/dvd_reader.c \
228 dvdread
/ifo_print.c \
231 dvdread
/nav_print.c \
234 SRCS_COMMON-
$(FAAD
) += libmpcodecs
/ad_faad.c
235 SRCS_COMMON-
$(FREETYPE
) += libvo
/font_load_ft.c
236 SRCS_COMMON-
$(FTP
) += stream
/stream_ftp.c
237 SRCS_COMMON-
$(GIF
) += libmpdemux
/demux_gif.c
238 SRCS_COMMON-
$(HAVE_POSIX_SELECT
) += libmpcodecs
/vf_bmovl.c
239 SRCS_COMMON-
$(HAVE_SYS_MMAN_H
) += osdep
/mmap_anon.c
240 SRCS_COMMON-
$(HAVE_SYS_MMAN_H
) += libaf
/af_export.c
241 SRCS_COMMON-
$(JPEG
) += libmpcodecs
/vd_ijpg.c
242 SRCS_COMMON-
$(LADSPA
) += libaf
/af_ladspa.c
243 SRCS_COMMON-
$(LIBA52
) += libmpcodecs
/ad_liba52.c \
246 liba52
/bit_allocate.c \
252 SRCS_COMMON-
$(LIBASS
) += libass
/ass.c \
253 libass
/ass_bitmap.c \
256 libass
/ass_fontconfig.c \
257 libass
/ass_library.c \
259 libass
/ass_render.c \
261 libmpcodecs
/vf_ass.c \
263 SRCS_COMMON-
$(LIBAVCODEC
) += libaf
/af_lavcresample.c \
264 libmpcodecs
/ad_ffmpeg.c \
265 libmpcodecs
/vd_ffmpeg.c \
266 libmpcodecs
/vf_lavc.c \
267 libmpcodecs
/vf_lavcdeint.c \
268 libmpcodecs
/vf_screenshot.c \
270 # These filters use private headers and do not work with shared libavcodec.
271 SRCS_COMMON-
$(LIBAVCODEC_A
) += libaf
/af_lavcac3enc.c \
272 libmpcodecs
/vf_fspp.c \
273 libmpcodecs
/vf_geq.c \
274 libmpcodecs
/vf_mcdeint.c \
275 libmpcodecs
/vf_qp.c \
276 libmpcodecs
/vf_spp.c \
277 libmpcodecs
/vf_uspp.c \
279 SRCS_COMMON-
$(LIBAVFORMAT
) += libmpdemux
/demux_lavf.c
280 SRCS_COMMON-
$(LIBDCA
) += libmpcodecs
/ad_libdca.c
281 SRCS_COMMON-
$(LIBDV
) += libmpcodecs
/ad_libdv.c \
282 libmpcodecs
/vd_libdv.c \
283 libmpdemux
/demux_rawdv.c
284 SRCS_COMMON-
$(LIBDVDCSS_INTERNAL
) += libdvdcss
/css.c \
288 libdvdcss
/libdvdcss.c \
289 #libdvdcss/bsdi_ioctl \
291 SRCS_COMMON-
$(FAAD_INTERNAL
) += libfaad2
/bits.c \
298 libfaad2
/filtbank.c \
301 libfaad2
/ic_predict.c \
303 libfaad2
/lt_predict.c \
310 libfaad2
/ps_syntax.c \
315 libfaad2
/sbr_e_nf.c \
317 libfaad2
/sbr_hfadj.c \
318 libfaad2
/sbr_hfgen.c \
319 libfaad2
/sbr_huff.c \
321 libfaad2
/sbr_syntax.c \
322 libfaad2
/sbr_tf_grid.c \
326 libfaad2
/ssr_ipqf.c \
330 SRCS_COMMON-
$(LIBMAD
) += libmpcodecs
/ad_libmad.c
331 SRCS_COMMON-
$(LIBMPEG2
) += libmpcodecs
/vd_libmpeg2.c \
333 libmpeg2
/cpu_accel.c\
334 libmpeg2
/cpu_state.c \
338 libmpeg2
/motion_comp.c \
340 SRCS_COMMON-
$(LIBMPEG2
)-$(ARCH_ALPHA
) += libmpeg2
/idct_alpha.c \
341 libmpeg2
/motion_comp_alpha.c
342 SRCS_COMMON-
$(LIBMPEG2
)-$(ARCH_ARMV4L
) += libmpeg2
/motion_comp_arm.c \
343 libmpeg2
/motion_comp_arm_s.S \
344 libmpeg2
/motion_comp_iwmmxt.c
345 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_ALTIVEC
) += libmpeg2
/idct_altivec.c \
346 libmpeg2
/motion_comp_altivec.c
347 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_MMX
) += libmpeg2
/idct_mmx.c \
348 libmpeg2
/motion_comp_mmx.c
349 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_VIS
) += libmpeg2
/motion_comp_vis.c
350 SRCS_COMMON-
$(LIBNEMESI
) += libmpdemux
/demux_nemesi.c \
351 stream
/stream_nemesi.c
352 SRCS_COMMON-
$(LIBNUT
) += libmpdemux
/demux_nut.c
353 SRCS_COMMON-
$(LIBPOSTPROC
) += libmpcodecs
/vf_pp.c
354 SRCS_COMMON-
$(LIBSMBCLIENT
) += stream
/stream_smb.c
355 SRCS_COMMON-
$(LIBTHEORA
) += libmpcodecs
/vd_theora.c
356 SRCS_COMMON-
$(LIBVORBIS
) += libmpcodecs
/ad_libvorbis.c \
357 libmpdemux
/demux_ogg.c
358 SRCS_COMMON-
$(MACOSX_FINDER_SUPPORT
) += osdep
/macosx_finder_args.c
359 SRCS_COMMON-
$(MP3LIB
) += libmpcodecs
/ad_mp3lib.c mp3lib
/sr1.c
360 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
) += mp3lib
/decode_i586.c
361 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_3DNOW
) += mp3lib
/dct36_3dnow.c \
363 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_3DNOWEX
) += mp3lib
/dct36_k7.c \
365 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_MMX
) += mp3lib
/dct64_mmx.c
366 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_ALTIVEC
) += mp3lib
/dct64_altivec.c
367 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_MMX
) += mp3lib
/decode_mmx.c
368 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_SSE
) += mp3lib
/dct64_sse.c
369 SRCS_COMMON-
$(MPLAYER_NETWORK
) += stream
/stream_netstream.c \
370 stream
/asf_mmst_streaming.c \
371 stream
/asf_streaming.c \
379 stream
/stream_rtp.c \
380 stream
/stream_udp.c \
381 stream
/realrtsp
/asmrp.c \
382 stream
/realrtsp
/real.c \
383 stream
/realrtsp
/rmff.c \
384 stream
/realrtsp
/sdpplin.c \
385 stream
/realrtsp
/xbuffer.c \
387 SRCS_COMMON-
$(MUSEPACK
) += libmpcodecs
/ad_mpc.c \
388 libmpdemux
/demux_mpc.c
389 SRCS_COMMON-
$(NATIVE_RTSP
) += stream
/stream_rtsp.c \
390 stream
/freesdp
/common.c \
391 stream
/freesdp
/errorlist.c \
392 stream
/freesdp
/parser.c \
393 stream
/librtsp
/rtsp.c \
394 stream
/librtsp
/rtsp_rtp.c \
395 stream
/librtsp
/rtsp_session.c \
397 SRCS_COMMON-
$(NEED_GETTIMEOFDAY
) += osdep
/gettimeofday.c
398 SRCS_COMMON-
$(NEED_GLOB
) += osdep
/glob-win.c
399 SRCS_COMMON-
$(NEED_MMAP
) += osdep
/mmap-os2.c
400 SRCS_COMMON-
$(NEED_SETENV
) += osdep
/setenv.c
401 SRCS_COMMON-
$(NEED_SHMEM
) += osdep
/shmem.c
402 SRCS_COMMON-
$(NEED_STRSEP
) += osdep
/strsep.c
403 SRCS_COMMON-
$(NEED_SWAB
) += osdep
/swab.c
404 SRCS_COMMON-
$(NEED_VSSCANF
) += osdep
/vsscanf.c
405 SRCS_COMMON-
$(PNG
) += libmpcodecs
/vd_mpng.c
406 SRCS_COMMON-
$(PVR
) += stream
/stream_pvr.c
407 SRCS_COMMON-
$(QTX_CODECS
) += libmpcodecs
/ad_qtaudio.c \
408 libmpcodecs
/vd_qtvideo.c
409 SRCS_COMMON-
$(QTX_EMULATION
) += loader
/wrapper.S
410 SRCS_COMMON-
$(RADIO
) += stream
/stream_radio.c
411 SRCS_COMMON-
$(RADIO_CAPTURE
) += stream
/audio_in.c
412 SRCS_COMMON-
$(REAL_CODECS
) += libmpcodecs
/ad_realaud.c \
413 libmpcodecs
/vd_realvid.c
414 SRCS_COMMON-
$(SPEEX
) += libmpcodecs
/ad_speex.c
415 SRCS_COMMON-
$(STREAM_CACHE
) += stream
/cache2.c
416 SRCS_COMMON-
$(STREAMING_LIVE555
) += libmpdemux
/demux_rtp.
cpp \
417 libmpdemux
/demux_rtp_codec.
cpp \
418 stream
/stream_livedotcom.c \
420 SRCS_COMMON-
$(TREMOR_INTERNAL
) += tremor
/bitwise.c \
431 tremor
/sharedbook.c \
435 SRCS_COMMON-
$(TV
) += stream
/stream_tv.c stream
/tv.c \
436 stream
/frequencies.c stream
/tvi_dummy.c
437 SRCS_COMMON-
$(TV_BSDBT848
) += stream
/tvi_bsdbt848.c
438 SRCS_COMMON-
$(TV_DSHOW
) += stream
/tvi_dshow.c
439 SRCS_COMMON-
$(TV_TELETEXT
) += stream
/tvi_vbi.c
440 SRCS_COMMON-
$(TV_V4L1
) += stream
/tvi_v4l.c stream
/audio_in.c
441 SRCS_COMMON-
$(TV_V4L2
) += stream
/tvi_v4l2.c stream
/audio_in.c
442 SRCS_COMMON-
$(UNRAR_EXEC
) += unrar_exec.c
443 SRCS_COMMON-
$(VCD
) += stream
/stream_vcd.c
444 SRCS_COMMON-
$(VSTREAM
) += stream
/stream_vstream.c
445 SRCS_COMMON-
$(WIN32_EMULATION
) += loader
/elfdll.c \
447 loader
/ldt_keeper.c \
450 loader
/pe_resource.c \
455 SRCS_COMMON-
$(WIN32DLL
) += libmpcodecs
/ad_acm.c \
456 libmpcodecs
/ad_dmo.c \
457 libmpcodecs
/ad_dshow.c \
458 libmpcodecs
/ad_twin.c \
459 libmpcodecs
/vd_dmo.c \
460 libmpcodecs
/vd_dshow.c \
461 libmpcodecs
/vd_vfw.c \
462 libmpcodecs
/vd_vfwex.c \
463 libmpdemux
/demux_avs.c \
467 loader
/dshow
/DS_AudioDecoder.c \
468 loader
/dshow
/DS_Filter.c \
469 loader
/dshow
/DS_VideoDecoder.c \
470 loader
/dshow
/allocator.c \
471 loader
/dshow
/cmediasample.c \
472 loader
/dshow
/guids.c \
473 loader
/dshow
/inputpin.c \
474 loader
/dshow
/mediatype.c \
475 loader
/dshow
/outputpin.c \
476 loader
/dmo
/DMO_AudioDecoder.c \
477 loader
/dmo
/DMO_VideoDecoder.c \
478 loader
/dmo
/buffer.c \
480 loader
/dmo
/dmo_guids.c \
482 SRCS_COMMON-
$(XANIM_CODECS
) += libmpcodecs
/vd_xanim.c
483 SRCS_COMMON-
$(XMMS_PLUGINS
) += libmpdemux
/demux_xmms.c
484 SRCS_COMMON-
$(XVID4
) += libmpcodecs
/vd_xvid4.c
485 SRCS_COMMON-
$(ZORAN
) += libmpcodecs
/vd_zrmjpeg.c \
486 libmpcodecs
/vf_zrmjpeg.c
489 SRCS_MPLAYER
= mplayer.c \
498 libao2
/ao_mpegpes.c \
501 $(addprefix libao2
/,$(AO_SRCS
)) \
504 libvo
/old_vo_wrapper.c \
509 libvo
/vo_yuv4mpeg.c \
510 $(addprefix libvo
/,$(VO_SRCS
)) \
512 SRCS_MPLAYER-
$(APPLE_REMOTE
) += input
/ar.c
513 SRCS_MPLAYER-
$(GUI_GTK
) += gui
/app.c \
517 gui
/mplayer
/gui_common.c \
523 gui
/mplayer
/widgets.c \
524 gui
/mplayer
/gtk
/about.c \
525 gui
/mplayer
/gtk
/eq.c \
526 gui
/mplayer
/gtk
/fs.c \
527 gui
/mplayer
/gtk
/gtk_common.c \
528 gui
/mplayer
/gtk
/gtk_url.c \
529 gui
/mplayer
/gtk
/mb.c \
530 gui
/mplayer
/gtk
/menu.c \
531 gui
/mplayer
/gtk
/opts.c \
532 gui
/mplayer
/gtk
/pl.c \
533 gui
/mplayer
/gtk
/sb.c \
540 SRCS_MPLAYER-
$(GUI_WIN32
) += gui
/bitmap.c \
541 gui
/win32
/dialogs.c \
543 gui
/win32
/interface.c \
544 gui
/win32
/playlist.c \
545 gui
/win32
/preferences.c \
546 gui
/win32
/skinload.c \
547 gui
/win32
/widgetrender.c \
550 SRCS_MPLAYER-
$(JOYSTICK
) += input
/joystick.c
551 SRCS_MPLAYER-
$(LIBMENU
) += libmenu
/menu.c \
552 libmenu
/menu_chapsel.c \
553 libmenu
/menu_cmdlist.c \
554 libmenu
/menu_console.c \
555 libmenu
/menu_filesel.c \
556 libmenu
/menu_list.c \
557 libmenu
/menu_param.c \
562 SRCS_MPLAYER-
$(LIBMENU_DVBIN
) += libmenu
/menu_dvbin.c
563 SRCS_MPLAYER-
$(LIRC
) += input
/lirc.c
565 SRCS_MPLAYER-
$(VIDIX
) += libvo
/vosub_vidix.c \
574 SRCS_MPLAYER-
$(VIDIX_CYBERBLADE
) += vidix
/cyberblade_vid.c
575 SRCS_MPLAYER-
$(VIDIX_IVTV
) += vidix
/ivtv_vid.c
576 SRCS_MPLAYER-
$(VIDIX_MACH64
) += vidix
/mach64_vid.c
577 SRCS_MPLAYER-
$(VIDIX_MGA
) += vidix
/mga_vid.c
578 SRCS_MPLAYER-
$(VIDIX_MGA_CRTC2
) += vidix
/mga_crtc2_vid.c
579 SRCS_MPLAYER-
$(VIDIX_NVIDIA
) += vidix
/nvidia_vid.c
580 SRCS_MPLAYER-
$(VIDIX_PM2
) += vidix
/pm2_vid.c
581 SRCS_MPLAYER-
$(VIDIX_PM3
) += vidix
/pm3_vid.c
582 SRCS_MPLAYER-
$(VIDIX_RADEON
) += vidix
/radeon_vid.c
583 SRCS_MPLAYER-
$(VIDIX_RAGE128
) += vidix
/rage128_vid.c
584 SRCS_MPLAYER-
$(VIDIX_S3
) += vidix
/s3_vid.c
585 SRCS_MPLAYER-
$(VIDIX_SIS
) += vidix
/sis_vid.c vidix
/sis_bridge.c
586 SRCS_MPLAYER-
$(VIDIX_UNICHROME
) += vidix
/unichrome_vid.c
588 OBJS_MPLAYER-
$(PE_EXECUTABLE
) += osdep
/mplayer-rc.o
590 SRCS_MENCODER
= mencoder.c \
595 libmpcodecs
/ae_pcm.c \
597 libmpcodecs
/ve_raw.c \
599 libmpdemux
/muxer_avi.c \
600 libmpdemux
/muxer_mpeg.c \
601 libmpdemux
/muxer_rawaudio.c \
602 libmpdemux
/muxer_rawvideo.c \
604 SRCS_MENCODER-
$(FAAC
) += libmpcodecs
/ae_faac.c
605 SRCS_MENCODER-
$(LIBAVCODEC
) += libmpcodecs
/ae_lavc.c libmpcodecs
/ve_lavc.c
606 SRCS_MENCODER-
$(LIBAVFORMAT
) += libmpdemux
/muxer_lavf.c
607 SRCS_MENCODER-
$(LIBDV
) += libmpcodecs
/ve_libdv.c
608 SRCS_MENCODER-
$(LIBLZO
) += libmpcodecs
/ve_nuv.c
609 SRCS_MENCODER-
$(MP3LAME
) += libmpcodecs
/ae_lame.c
610 SRCS_MENCODER-
$(QTX_CODECS_WIN32
) += libmpcodecs
/ve_qtvideo.c
611 SRCS_MENCODER-
$(TOOLAME
) += libmpcodecs
/ae_toolame.c
612 SRCS_MENCODER-
$(TWOLAME
) += libmpcodecs
/ae_twolame.c
613 SRCS_MENCODER-
$(WIN32DLL
) += libmpcodecs
/ve_vfw.c
614 SRCS_MENCODER-
$(X264
) += libmpcodecs
/ve_x264.c
615 SRCS_MENCODER-
$(XVID4
) += libmpcodecs
/ve_xvid4.c
617 COMMON_LIBS
= libswscale
/libswscale.a \
619 COMMON_LIBS-
$(LIBAVFORMAT_A
) += ffmpeg
/libavformat
/libavformat.a
620 COMMON_LIBS-
$(LIBAVCODEC_A
) += ffmpeg
/libavcodec
/libavcodec.a
621 COMMON_LIBS-
$(LIBAVUTIL_A
) += ffmpeg
/libavutil
/libavutil.a
622 COMMON_LIBS-
$(LIBPOSTPROC_A
) += ffmpeg
/libpostproc
/libpostproc.a
624 ALL_PRG-
$(MPLAYER
) += mplayer
$(EXESUF
)
625 ALL_PRG-
$(MENCODER
) += mencoder
$(EXESUF
)
627 COMMON_LIBS
+= $(COMMON_LIBS-yes
)
628 OBJS_MPLAYER
+= $(OBJS_MPLAYER-yes
)
629 ALL_PRG
+= $(ALL_PRG-yes
)
631 MPLAYER_DEPS
= $(OBJS_MPLAYER
) $(OBJS_COMMON
) $(COMMON_LIBS
)
632 MENCODER_DEPS
= $(OBJS_MENCODER
) $(OBJS_COMMON
) $(COMMON_LIBS
)
634 SRCS_COMMON
+= $(SRCS_COMMON-yes
) $(SRCS_COMMON-yes-yes
) $(SRCS_COMMON-yes-yes-yes
)
635 SRCS_MENCODER
+= $(SRCS_MENCODER-yes
)
636 SRCS_MPLAYER
+= $(SRCS_MPLAYER-yes
)
638 OBJS_COMMON
+= $(addsuffix .o
, $(basename $(SRCS_COMMON
)) )
639 OBJS_MENCODER
+= $(addsuffix .o
, $(basename $(SRCS_MENCODER
)) )
640 OBJS_MPLAYER
+= $(addsuffix .o
, $(basename $(SRCS_MPLAYER
)) )
642 INSTALL_TARGETS-
$(MPLAYER
) += install-mplayer install-mplayer-man
643 INSTALL_TARGETS-
$(MENCODER
) += install-mencoder install-mplayer-man
644 INSTALL_TARGETS-
$(GUI
) += install-gui
645 INSTALL_TARGETS
+= $(INSTALL_TARGETS-yes
)
647 PARTS
= ffmpeg
/libavcodec \
667 ffmpeg
/libavcodec
/alpha \
668 ffmpeg
/libavcodec
/armv4l \
669 ffmpeg
/libavcodec
/bfin \
670 ffmpeg
/libavcodec
/i386 \
671 ffmpeg
/libavcodec
/mlib \
672 ffmpeg
/libavcodec
/ppc \
673 ffmpeg
/libavcodec
/sh4 \
674 ffmpeg
/libavcodec
/sparc \
703 for part in
$(PARTS
); do
$(MAKE
) -C
$$part; done
709 $(MPDEPEND_CMD_CXX
) > $@
715 $(CC
) $(CFLAGS
) -Wno-unused
-c
-o
$@
-x c
$<
718 $(CC
) $(CFLAGS
) -c
-o
$@
$<
720 DEPS
= $(filter-out %.S
,$(patsubst %.
cpp,%.d
,$(patsubst %.c
,%.d
,$(SRCS_COMMON
) $(SRCS_MPLAYER
:.m
=.d
) $(SRCS_MENCODER
))))
721 $(DEPS
) recurse
: help_mp.h version.h codecs.conf.h
723 for part in
$(PARTS
); do
$(MAKE
) -C
$$part depend
; done
725 # rebuild at every config.h/config.mak change:
726 version.h
: config.h config.mak
727 .
/version.sh
`$(CC) -dumpversion`
729 help_mp.h
: help
/help_mp-en.h
$(HELP_FILE
)
730 @echo
'// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
731 @echo
'// See the help/ subdir for the editable files.' >> help_mp.h
732 @echo
'#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
733 @echo
'#define MPLAYER_HELP_MP_H' >> help_mp.h
735 @echo
'#include "$(HELP_FILE)"' >> help_mp.h
737 iconv
-f UTF-8
-t
$(CHARSET
) "$(HELP_FILE)" >> help_mp.h
739 @echo
'#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
741 ifneq ($(HELP_FILE
),help
/help_mp-en.h
)
742 @echo
"Adding untranslated messages to help_mp.h"
743 @echo
'// untranslated messages from the English master file:' >> help_mp.h
744 @help
/help_diff.sh
$(HELP_FILE
) < help
/help_mp-en.h
>> help_mp.h
747 define RECURSIVE_RULE
748 $(part
)/$(notdir $(part
)).a
:
752 $(foreach part
,$(PARTS
),$(eval
$(RECURSIVE_RULE
)))
756 mplayer
$(EXESUF
): $(MPLAYER_DEPS
)
757 $(CC
) -o
$@
$^
$(LDFLAGS_MPLAYER
)
759 mencoder
$(EXESUF
): $(MENCODER_DEPS
)
760 $(CC
) -o
$@
$^
$(LDFLAGS_MENCODER
)
762 codec-cfg
$(EXESUF
): codec-cfg.c codec-cfg.h help_mp.h
763 $(HOST_CC
) -O
-I.
-Iffmpeg
-DCODECS2HTML
$< -o
$@
765 codecs.conf.h
: codec-cfg
$(EXESUF
) etc
/codecs.conf
766 .
/codec-cfg
$(EXESUF
) .
/etc
/codecs.conf
> $@
768 codecs2html
$(EXESUF
): mp_msg.o
769 $(CC
) -DCODECS2HTML codec-cfg.c
$^
-o
$@
771 codec-cfg-test
$(EXESUF
): codecs.conf.h codec-cfg.h mp_msg.o osdep
/getch2.o
772 $(CC
) -I.
-DTESTING codec-cfg.c mp_msg.o osdep
/getch2.o
-ltermcap
-o
$@
774 osdep
/mplayer-rc.o
: osdep
/mplayer.rc version.h
777 dvdread
/%.o dvdread
/%.d
: CFLAGS
+= -D__USE_UNIX98
-D_GNU_SOURCE
778 ifeq ($(LIBDVDCSS_INTERNAL
),yes
)
779 dvdread
/%.o dvdread
/%.d
: CFLAGS
+= -Ilibdvdcss
-DHAVE_DVDCSS_DVDCSS_H
781 libdvdcss
/%.o libdvdcss
/%.d
: CFLAGS
+= -D__USE_UNIX98
-D_GNU_SOURCE
-DVERSION
=\"1.2.9\"
782 libfaad2
/%.o libfaad2
/%.d
: CFLAGS
+= -Ilibfaad2
-D_GNU_SOURCE
784 libmpdemux
/demux_lavf.o libmpdemux
/demux_lavf.d libmpdemux
/mp_taglists.o libmpdemux
/mp_taglists.d
: CFLAGS
+= -Iffmpeg
/libavcodec
786 loader
/% loader
/%: CFLAGS
+= -Iloader
-fno-omit-frame-pointer
$(CFLAG_NO_OMIT_LEAF_FRAME_POINTER
)
787 #loader/%.o loader/%.d: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
788 loader
/win32.o loader
/win32.d
: CFLAGS
+= $(CFLAG_STACKREALIGN
)
790 mp3lib
/decode_i586.o
: CFLAGS
+= -fomit-frame-pointer
792 VIDIX_PCI_FILES
= vidix
/pci_dev_ids.c vidix
/pci_ids.h vidix
/pci_names.c \
793 vidix
/pci_names.h vidix
/pci_vendors.h
795 $(VIDIX_PCI_FILES
): vidix
/pci.db
796 LC_ALL
=C awk
-f vidix
/pci_db2c.awk
$< $(VIDIX_PCIDB
)
798 VIDIX_DEPS
= $(filter vidix
/%,$(SRCS_MPLAYER
:.c
=.d
))
799 VIDIX_OBJS
= $(filter vidix
/%,$(SRCS_MPLAYER
:.c
=.o
))
801 $(VIDIX_DEPS
) $(VIDIX_OBJS
): $(VIDIX_PCI_FILES
)
803 liba52
/test: liba52
/test.c cpudetect.o
$(filter liba52
/%,$(SRCS_COMMON
:.c
=.o
))
805 LOADER_TEST_OBJS
= $(filter loader
/%,$(SRCS_COMMON
:.c
=.o
)) libmpdemux
/aviprint.o cpudetect.o mp_msg.o mp_fifo.o osdep
/mmap_anon.o osdep
/$(GETCH
) osdep
/$(TIMER
) -ltermcap
-lm
807 loader
/qtx
/list loader
/qtx
/qtxload
: CFLAGS
+= -g
808 loader
/qtx
/list
: loader
/qtx
/list.c
$(LOADER_TEST_OBJS
)
809 loader
/qtx
/qtxload
: loader
/qtx
/qtxload.c
$(LOADER_TEST_OBJS
)
811 mp3lib
/test: mp3lib
/test.c
$(filter mp3lib
/%,$(SRCS_COMMON
:.c
=.o
)) libvo
/aclib.o cpudetect.o mp_msg-mencoder.o mp_fifo.o osdep
/$(TIMER
) osdep
/$(GETCH
) -ltermcap
-lm
812 mp3lib
/test2
: mp3lib
/test2.c
$(filter mp3lib
/%,$(SRCS_COMMON
:.c
=.o
)) libvo
/aclib.o cpudetect.o mp_msg-mencoder.o mp_fifo.o osdep
/$(TIMER
) osdep
/$(GETCH
) -ltermcap
-lm
814 install: install-dirs
$(INSTALL_TARGETS
)
817 $(INSTALL
) -d
$(BINDIR
)
818 $(INSTALL
) -d
$(DATADIR
)
819 $(INSTALL
) -d
$(MANDIR
)/man1
820 $(INSTALL
) -d
$(CONFDIR
)
821 if
test -f
$(CONFDIR
)/codecs.conf
; then mv
-f
$(CONFDIR
)/codecs.conf
$(CONFDIR
)/codecs.conf.old
; fi
823 install-mplayer
: mplayer
$(EXESUF
)
824 $(INSTALL
) -m
755 $(INSTALLSTRIP
) mplayer
$(EXESUF
) $(BINDIR
)
827 for lang in
$(MAN_LANG
); do \
828 if
test "$$lang" = en
; then \
829 $(INSTALL
) -c
-m
644 DOCS
/man
/en
/mplayer
.1 $(MANDIR
)/man1
/ ; \
831 $(INSTALL
) -d
$(MANDIR
)/$$lang/man1
; \
832 $(INSTALL
) -c
-m
644 DOCS
/man
/$$lang/mplayer
.1 $(MANDIR
)/$$lang/man1
/ ; \
836 install-mencoder
: mencoder
$(EXESUF
)
837 $(INSTALL
) -m
755 $(INSTALLSTRIP
) mencoder
$(EXESUF
) $(BINDIR
)
838 for lang in
$(MAN_LANG
); do \
839 if
test "$$lang" = en
; then \
840 cd
$(MANDIR
)/man1
&& ln
-sf mplayer
.1 mencoder
.1 ; \
842 cd
$(MANDIR
)/$$lang/man1
&& ln
-sf mplayer
.1 mencoder
.1 ; \
847 -ln
-sf mplayer
$(EXESUF
) $(BINDIR
)/gmplayer
$(EXESUF
)
848 $(INSTALL
) -d
$(DATADIR
)/skins
849 @echo
"*** Download skin(s) at http://www.mplayerhq.hu/design7/dload.html"
850 @echo
"*** for GUI, and extract to $(DATADIR)/skins/"
851 $(INSTALL
) -d
$(prefix)/share
/pixmaps
852 $(INSTALL
) -m
644 etc
/mplayer.xpm
$(prefix)/share
/pixmaps
/
853 $(INSTALL
) -d
$(prefix)/share
/applications
854 $(INSTALL
) -m
644 etc
/mplayer.desktop
$(prefix)/share
/applications
/
857 -rm -f
$(BINDIR
)/mplayer
$(EXESUF
) $(BINDIR
)/gmplayer
$(EXESUF
)
858 -rm -f
$(BINDIR
)/mencoder
$(EXESUF
)
859 -rm -f
$(MANDIR
)/man1
/mencoder
.1 $(MANDIR
)/man1
/mplayer
.1
860 -rm -f
$(prefix)/share
/pixmaps
/mplayer.xpm
861 -rm -f
$(prefix)/share
/applications
/mplayer.desktop
862 for lang in
$(MAN_LANG
); do \
863 if
test "$$lang" != "en"; then \
864 rm -f
$(MANDIR
)/$$lang/man1
/mplayer
.1 \
865 $(MANDIR
)/$$lang/man1
/mencoder
.1 \
866 $(MANDIR
)/$$lang/man1
/gmplayer
.1 ; \
871 rm -f
$(foreach dir,$(DIRS
),$(foreach suffix,/*.o
/*.a
/*.ho
/*~
, $(addsuffix $(suffix),$(dir))))
872 rm -f mplayer
$(EXESUF
) mencoder
$(EXESUF
)
874 distclean: clean doxygen_clean
875 rm -f
$(foreach dir,$(DIRS
),$(foreach suffix,/*.d
, $(addsuffix $(suffix),$(dir))))
876 rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \
877 version.h
$(VIDIX_PCI_FILES
) \
878 codec-cfg
$(EXESUF
) codecs2html
$(EXESUF
) codec-cfg-test
$(EXESUF
) \
879 cpuinfo
$(EXESUF
) TAGS
tags
885 rm -f
$@
; ( find
-name
'*.[chS]' -print ) | xargs etags
-a
888 rm -f
$@
; ( find
-name
'*.[chS]' -print ) | xargs ctags
-a
890 ALLHEADERS
= $(wildcard *.h
)
891 checkheaders
: $(ALLHEADERS
:.h
=.ho
)
893 # ./configure must be rerun if it changed
894 config.mak
: configure
895 @echo
"############################################################"
896 @echo
"####### Please run ./configure again - it's changed! #######"
897 @echo
"############################################################"
900 doxygen DOCS
/tech
/Doxyfile
903 -rm -rf DOCS
/tech
/doxygen
906 TOOLS
= TOOLS
/alaw-gen
$(EXESUF
) \
907 TOOLS
/asfinfo
$(EXESUF
) \
908 TOOLS
/avi-fix
$(EXESUF
) \
909 TOOLS
/avisubdump
$(EXESUF
) \
910 TOOLS
/compare
$(EXESUF
) \
911 TOOLS
/dump_mp4
$(EXESUF
) \
912 TOOLS
/movinfo
$(EXESUF
) \
913 TOOLS
/subrip
$(EXESUF
) \
916 TOOLS
+= TOOLS
/modify_reg
$(EXESUF
)
919 ALLTOOLS
= $(TOOLS
) \
920 TOOLS
/bmovl-test
$(EXESUF
) \
921 TOOLS
/vfw2menc
$(EXESUF
) \
922 TOOLS
/vivodump
$(EXESUF
) \
923 TOOLS
/netstream
$(EXESUF
) \
926 alltools
: $(ALLTOOLS
)
928 TOOLS_COMMON_LIBS
= mp_msg-mencoder.o mp_fifo.o osdep
/$(TIMER
) osdep
/$(GETCH
) \
931 TOOLS
/bmovl-test
$(EXESUF
): TOOLS
/bmovl-test.c
-lSDL_image
933 TOOLS
/subrip
$(EXESUF
): TOOLS
/subrip.c vobsub.o spudec.o unrar_exec.o \
934 libswscale
/libswscale.a libavutil
/libavutil.a
$(TOOLS_COMMON_LIBS
)
936 TOOLS
/vfw2menc
$(EXESUF
): TOOLS
/vfw2menc.c
-lwinmm
-lole32
938 #FIXME: Linking is broken, help welcome.
939 TOOLS
/vivodump
$(EXESUF
): TOOLS
/vivodump.c
$(TOOLS_COMMON_LIBS
)
941 fastmemcpybench
: TOOLS
/fastmemcpybench.c
942 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-mmx
$(EXESUF
) -DNAME
=\"mmx
\" -DHAVE_MMX
943 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-k6
$(EXESUF
) -DNAME
=\"k6\
\" -DHAVE_MMX
-DHAVE_3DNOW
944 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-k7
$(EXESUF
) -DNAME
=\"k7\
\" -DHAVE_MMX
-DHAVE_3DNOW
-DHAVE_MMX2
945 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-sse
$(EXESUF
) -DNAME
=\"sse
\" -DHAVE_MMX
-DHAVE_SSE
-DHAVE_MMX2
946 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-mmx
$(EXESUF
) -DNAME
=\"mga-mmx
\" -DHAVE_MGA
-DHAVE_MMX
947 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-k6
$(EXESUF
) -DNAME
=\"mga-k6\
\" -DHAVE_MGA
-DHAVE_MMX
-DHAVE_3DNOW
948 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-k7
$(EXESUF
) -DNAME
=\"mga-k7\
\" -DHAVE_MGA
-DHAVE_MMX
-DHAVE_3DNOW
-DHAVE_MMX2
949 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-sse
$(EXESUF
) -DNAME
=\"mga-sse
\" -DHAVE_MGA
-DHAVE_MMX
-DHAVE_SSE
-DHAVE_MMX2
951 REAL_SRCS
= $(wildcard TOOLS
/realcodecs
/*.c
)
952 REAL_TARGETS
= $(REAL_SRCS
:.c
=.so
.6.0)
954 realcodecs
: $(REAL_TARGETS
)
956 fastmemcpybench realcodecs
: CFLAGS
+= -g
959 ld -shared
-o
$@
$< -ldl
-lc
961 # FIXME: netstream linking is a mess that should be fixed properly some day.
962 # It does not work with either GUI, LIVE555, libavformat, cdparanoia enabled.
963 NETSTREAM_DEPS
= libavutil
/libavutil.a \
968 TOOLS
/netstream
$(EXESUF
): TOOLS
/netstream.o
$(NETSTREAM_DEPS
)
969 $(CC
) $(CFLAGS
) -o
$@
$^
972 rm -f
$(ALLTOOLS
) TOOLS
/fastmem
*-* TOOLS
/realcodecs
/*.so
.6.0
976 .PHONY
: all doxygen
*install* recurse
strip *tools
977 .PHONY
: checkheaders
*clean dep depend