3 # copyright (c) 2008 Diego Biurrun
4 # Rewritten entirely from a set of Makefiles written by Arpi and many others.
6 # This file is part of MPlayer.
8 # MPlayer is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # MPlayer is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License along
19 # with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 ###### variable declarations #######
27 COMMON_LDFLAGS
+= $(EXTRA_LIB
)\
30 LDFLAGS_MPLAYER
= $(EXTRALIBS_MPLAYER
) \
33 LDFLAGS_MENCODER
= $(EXTRALIBS_MENCODER
) \
36 SRCS_COMMON
= asxparser.c \
62 libaf
/af_equalizer.c \
63 libaf
/af_extrastereo.c \
70 libaf
/af_scaletempo.c \
71 libaf
/af_sinesuppress.c \
83 libmpcodecs
/ad_alaw.c \
84 libmpcodecs
/ad_dk3adpcm.c \
85 libmpcodecs
/ad_dvdpcm.c \
86 libmpcodecs
/ad_hwmpa.c \
87 libmpcodecs
/ad_imaadpcm.c \
88 libmpcodecs
/ad_msadpcm.c \
89 libmpcodecs
/ad_msgsm.c \
90 libmpcodecs
/ad_pcm.c \
91 libmpcodecs
/dec_audio.c \
92 libmpcodecs
/dec_video.c \
93 libmpcodecs
/img_format.c \
94 libmpcodecs
/mp_image.c \
95 libmpcodecs
/native
/nuppelvideo.c \
96 libmpcodecs
/native
/rtjpegn.c \
97 libmpcodecs
/native
/xa_gsm.c \
98 libmpcodecs
/pullup.c \
100 libmpcodecs
/vd_hmblck.c \
101 libmpcodecs
/vd_lzo.c \
102 libmpcodecs
/vd_mpegpes.c \
103 libmpcodecs
/vd_mtga.c \
104 libmpcodecs
/vd_null.c \
105 libmpcodecs
/vd_nuv.c \
106 libmpcodecs
/vd_raw.c \
107 libmpcodecs
/vd_sgi.c \
109 libmpcodecs
/vf_1bpp.c \
110 libmpcodecs
/vf_2xsai.c \
111 libmpcodecs
/vf_blackframe.c \
112 libmpcodecs
/vf_boxblur.c \
113 libmpcodecs
/vf_crop.c \
114 libmpcodecs
/vf_cropdetect.c \
115 libmpcodecs
/vf_decimate.c \
116 libmpcodecs
/vf_delogo.c \
117 libmpcodecs
/vf_denoise3d.c \
118 libmpcodecs
/vf_detc.c \
119 libmpcodecs
/vf_dint.c \
120 libmpcodecs
/vf_divtc.c \
121 libmpcodecs
/vf_down3dright.c \
122 libmpcodecs
/vf_dsize.c \
123 libmpcodecs
/vf_dvbscale.c \
124 libmpcodecs
/vf_eq.c \
125 libmpcodecs
/vf_eq2.c \
126 libmpcodecs
/vf_expand.c \
127 libmpcodecs
/vf_field.c \
128 libmpcodecs
/vf_fil.c \
129 libmpcodecs
/vf_filmdint.c \
130 libmpcodecs
/vf_flip.c \
131 libmpcodecs
/vf_format.c \
132 libmpcodecs
/vf_framestep.c \
133 libmpcodecs
/vf_halfpack.c \
134 libmpcodecs
/vf_harddup.c \
135 libmpcodecs
/vf_hqdn3d.c \
136 libmpcodecs
/vf_hue.c \
137 libmpcodecs
/vf_il.c \
138 libmpcodecs
/vf_ilpack.c \
139 libmpcodecs
/vf_ivtc.c \
140 libmpcodecs
/vf_kerndeint.c \
141 libmpcodecs
/vf_mirror.c \
142 libmpcodecs
/vf_noformat.c \
143 libmpcodecs
/vf_noise.c \
144 libmpcodecs
/vf_ow.c \
145 libmpcodecs
/vf_palette.c \
146 libmpcodecs
/vf_perspective.c \
147 libmpcodecs
/vf_phase.c \
148 libmpcodecs
/vf_pp7.c \
149 libmpcodecs
/vf_pullup.c \
150 libmpcodecs
/vf_rectangle.c \
151 libmpcodecs
/vf_remove_logo.c \
152 libmpcodecs
/vf_rgb2bgr.c \
153 libmpcodecs
/vf_rgbtest.c \
154 libmpcodecs
/vf_rotate.c \
155 libmpcodecs
/vf_sab.c \
156 libmpcodecs
/vf_scale.c \
157 libmpcodecs
/vf_smartblur.c \
158 libmpcodecs
/vf_softpulldown.c \
159 libmpcodecs
/vf_softskip.c \
160 libmpcodecs
/vf_swapuv.c \
161 libmpcodecs
/vf_telecine.c \
162 libmpcodecs
/vf_test.c \
163 libmpcodecs
/vf_tfields.c \
164 libmpcodecs
/vf_tile.c \
165 libmpcodecs
/vf_tinterlace.c \
166 libmpcodecs
/vf_unsharp.c \
167 libmpcodecs
/vf_vo.c \
168 libmpcodecs
/vf_yadif.c \
169 libmpcodecs
/vf_yuvcsp.c \
170 libmpcodecs
/vf_yuy2.c \
171 libmpcodecs
/vf_yvu9.c \
172 libmpdemux
/aac_hdr.c \
173 libmpdemux
/asfheader.c \
174 libmpdemux
/aviheader.c \
175 libmpdemux
/aviprint.c \
176 libmpdemux
/demuxer.c \
177 libmpdemux
/demux_aac.c \
178 libmpdemux
/demux_asf.c \
179 libmpdemux
/demux_audio.c \
180 libmpdemux
/demux_avi.c \
181 libmpdemux
/demux_demuxers.c \
182 libmpdemux
/demux_film.c \
183 libmpdemux
/demux_fli.c \
184 libmpdemux
/demux_lmlm4.c \
185 libmpdemux
/demux_mf.c \
186 libmpdemux
/demux_mkv.c \
187 libmpdemux
/demux_mov.c \
188 libmpdemux
/demux_mpg.c \
189 libmpdemux
/demux_nsv.c \
190 libmpdemux
/demux_nuv.c \
191 libmpdemux
/demux_pva.c \
192 libmpdemux
/demux_rawaudio.c \
193 libmpdemux
/demux_rawvideo.c \
194 libmpdemux
/demux_realaud.c \
195 libmpdemux
/demux_real.c \
196 libmpdemux
/demux_roq.c \
197 libmpdemux
/demux_smjpeg.c \
198 libmpdemux
/demux_ts.c \
199 libmpdemux
/demux_ty.c \
200 libmpdemux
/demux_ty_osd.c \
201 libmpdemux
/demux_viv.c \
202 libmpdemux
/demux_vqf.c \
203 libmpdemux
/demux_y4m.c \
205 libmpdemux
/extension.c \
207 libmpdemux
/mp3_hdr.c \
208 libmpdemux
/mp_taglists.c \
209 libmpdemux
/mpeg_hdr.c \
210 libmpdemux
/mpeg_packetizer.c \
211 libmpdemux
/parse_es.c \
212 libmpdemux
/parse_mp4.c \
214 libmpdemux
/yuv4mpeg.c \
215 libmpdemux
/yuv4mpeg_ratio.c \
223 stream
/stream_cue.c \
224 stream
/stream_file.c \
226 stream
/stream_null.c \
229 SRCS_COMMON-
$(AUDIO_INPUT
)-$(ALSA1X
) += stream
/ai_alsa1x.c
230 SRCS_COMMON-
$(AUDIO_INPUT
)-$(ALSA9
) += stream
/ai_alsa.c
231 SRCS_COMMON-
$(AUDIO_INPUT
)-$(OSS
) += stream
/ai_oss.c
232 SRCS_COMMON-
$(BITMAP_FONT
) += libvo
/font_load.c
233 SRCS_COMMON-
$(CDDA
) += stream
/stream_cdda.c \
235 SRCS_COMMON-
$(CDDB
) += stream
/stream_cddb.c
236 SRCS_COMMON-
$(DVBIN
) += stream
/dvb_tune.c \
238 SRCS_COMMON-
$(DVDNAV
) += stream
/stream_dvdnav.c
239 SRCS_COMMON-
$(DVDREAD
) += stream
/stream_dvd.c \
240 stream
/stream_dvd_common.c
241 SRCS_COMMON-
$(DVDREAD_INTERNAL
) += dvdread
/cmd_print.c \
242 dvdread
/dvd_input.c \
243 dvdread
/dvd_reader.c \
245 dvdread
/ifo_print.c \
248 dvdread
/nav_print.c \
251 SRCS_COMMON-
$(FAAD
) += libmpcodecs
/ad_faad.c
252 SRCS_COMMON-
$(FREETYPE
) += libvo
/font_load_ft.c
253 SRCS_COMMON-
$(FTP
) += stream
/stream_ftp.c
254 SRCS_COMMON-
$(GIF
) += libmpdemux
/demux_gif.c
255 SRCS_COMMON-
$(HAVE_POSIX_SELECT
) += libmpcodecs
/vf_bmovl.c
256 SRCS_COMMON-
$(HAVE_SYS_MMAN_H
) += osdep
/mmap_anon.c
257 SRCS_COMMON-
$(HAVE_SYS_MMAN_H
) += libaf
/af_export.c
258 SRCS_COMMON-
$(JPEG
) += libmpcodecs
/vd_ijpg.c
259 SRCS_COMMON-
$(LADSPA
) += libaf
/af_ladspa.c
260 SRCS_COMMON-
$(LIBA52
) += libmpcodecs
/ad_hwac3.c \
261 libmpcodecs
/ad_liba52.c \
264 liba52
/bit_allocate.c \
270 SRCS_COMMON-
$(LIBASS
) += libass
/ass.c \
271 libass
/ass_bitmap.c \
274 libass
/ass_fontconfig.c \
275 libass
/ass_library.c \
277 libass
/ass_render.c \
279 libmpcodecs
/vf_ass.c \
281 SRCS_COMMON-
$(LIBAVCODEC
) += av_opts.c \
282 libaf
/af_lavcresample.c \
283 libmpcodecs
/ad_ffmpeg.c \
284 libmpcodecs
/vd_ffmpeg.c \
285 libmpcodecs
/vf_lavc.c \
286 libmpcodecs
/vf_lavcdeint.c \
287 libmpcodecs
/vf_screenshot.c \
289 # These filters use private headers and do not work with shared libavcodec.
290 SRCS_COMMON-
$(LIBAVCODEC_A
) += libaf
/af_lavcac3enc.c \
291 libmpcodecs
/vf_fspp.c \
292 libmpcodecs
/vf_geq.c \
293 libmpcodecs
/vf_mcdeint.c \
294 libmpcodecs
/vf_qp.c \
295 libmpcodecs
/vf_spp.c \
296 libmpcodecs
/vf_uspp.c \
298 SRCS_COMMON-
$(LIBAVFORMAT
) += libmpdemux
/demux_lavf.c
299 SRCS_COMMON-
$(LIBDCA
) += libmpcodecs
/ad_libdca.c
300 SRCS_COMMON-
$(LIBDV
) += libmpcodecs
/ad_libdv.c \
301 libmpcodecs
/vd_libdv.c \
302 libmpdemux
/demux_rawdv.c
303 SRCS_COMMON-
$(LIBDVDCSS_INTERNAL
) += libdvdcss
/css.c \
307 libdvdcss
/libdvdcss.c \
309 SRCS_COMMON-
$(FAAD_INTERNAL
) += libfaad2
/bits.c \
316 libfaad2
/filtbank.c \
319 libfaad2
/ic_predict.c \
321 libfaad2
/lt_predict.c \
328 libfaad2
/ps_syntax.c \
333 libfaad2
/sbr_e_nf.c \
335 libfaad2
/sbr_hfadj.c \
336 libfaad2
/sbr_hfgen.c \
337 libfaad2
/sbr_huff.c \
339 libfaad2
/sbr_syntax.c \
340 libfaad2
/sbr_tf_grid.c \
344 libfaad2
/ssr_ipqf.c \
348 SRCS_COMMON-
$(LIBMAD
) += libmpcodecs
/ad_libmad.c
349 SRCS_COMMON-
$(LIBMPEG2
) += libmpcodecs
/vd_libmpeg2.c \
351 libmpeg2
/cpu_accel.c\
352 libmpeg2
/cpu_state.c \
356 libmpeg2
/motion_comp.c \
358 SRCS_COMMON-
$(LIBMPEG2
)-$(ARCH_ALPHA
) += libmpeg2
/idct_alpha.c \
359 libmpeg2
/motion_comp_alpha.c
360 SRCS_COMMON-
$(LIBMPEG2
)-$(ARCH_ARMV4L
) += libmpeg2
/motion_comp_arm.c \
361 libmpeg2
/motion_comp_arm_s.S \
362 libmpeg2
/motion_comp_iwmmxt.c
363 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_ALTIVEC
) += libmpeg2
/idct_altivec.c \
364 libmpeg2
/motion_comp_altivec.c
365 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_MMX
) += libmpeg2
/idct_mmx.c \
366 libmpeg2
/motion_comp_mmx.c
367 SRCS_COMMON-
$(LIBMPEG2
)-$(HAVE_VIS
) += libmpeg2
/motion_comp_vis.c
368 SRCS_COMMON-
$(LIBNEMESI
) += libmpdemux
/demux_nemesi.c \
369 stream
/stream_nemesi.c
370 SRCS_COMMON-
$(LIBNUT
) += libmpdemux
/demux_nut.c
371 SRCS_COMMON-
$(LIBPOSTPROC
) += libmpcodecs
/vf_pp.c
372 SRCS_COMMON-
$(LIBSMBCLIENT
) += stream
/stream_smb.c
373 SRCS_COMMON-
$(LIBTHEORA
) += libmpcodecs
/vd_theora.c
374 SRCS_COMMON-
$(LIBVORBIS
) += libmpcodecs
/ad_libvorbis.c \
375 libmpdemux
/demux_ogg.c
376 SRCS_COMMON-
$(MACOSX_FINDER_SUPPORT
) += osdep
/macosx_finder_args.c
377 SRCS_COMMON-
$(MP3LIB
) += libmpcodecs
/ad_mp3lib.c mp3lib
/sr1.c
378 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
) += mp3lib
/decode_i586.c
379 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_3DNOW
) += mp3lib
/dct36_3dnow.c \
381 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_3DNOWEX
) += mp3lib
/dct36_k7.c \
383 SRCS_COMMON-
$(MP3LIB
)-$(ARCH_X86_32
)-$(HAVE_MMX
) += mp3lib
/dct64_mmx.c
384 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_ALTIVEC
) += mp3lib
/dct64_altivec.c
385 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_MMX
) += mp3lib
/decode_mmx.c
386 SRCS_COMMON-
$(MP3LIB
)-$(HAVE_SSE
) += mp3lib
/dct64_sse.c
387 SRCS_COMMON-
$(MPLAYER_NETWORK
) += stream
/stream_netstream.c \
388 stream
/asf_mmst_streaming.c \
389 stream
/asf_streaming.c \
397 stream
/stream_rtp.c \
398 stream
/stream_udp.c \
399 stream
/librtsp
/rtsp.c \
400 stream
/realrtsp
/asmrp.c \
401 stream
/realrtsp
/real.c \
402 stream
/realrtsp
/rmff.c \
403 stream
/realrtsp
/sdpplin.c \
404 stream
/realrtsp
/xbuffer.c \
406 SRCS_COMMON-
$(MUSEPACK
) += libmpcodecs
/ad_mpc.c \
407 libmpdemux
/demux_mpc.c
408 SRCS_COMMON-
$(NATIVE_RTSP
) += stream
/stream_rtsp.c \
409 stream
/freesdp
/common.c \
410 stream
/freesdp
/errorlist.c \
411 stream
/freesdp
/parser.c \
412 stream
/librtsp
/rtsp.c \
413 stream
/librtsp
/rtsp_rtp.c \
414 stream
/librtsp
/rtsp_session.c \
416 SRCS_COMMON-
$(NEED_GETTIMEOFDAY
) += osdep
/gettimeofday.c
417 SRCS_COMMON-
$(NEED_GLOB
) += osdep
/glob-win.c
418 SRCS_COMMON-
$(NEED_MMAP
) += osdep
/mmap-os2.c
419 SRCS_COMMON-
$(NEED_SETENV
) += osdep
/setenv.c
420 SRCS_COMMON-
$(NEED_SHMEM
) += osdep
/shmem.c
421 SRCS_COMMON-
$(NEED_STRSEP
) += osdep
/strsep.c
422 SRCS_COMMON-
$(NEED_SWAB
) += osdep
/swab.c
423 SRCS_COMMON-
$(NEED_VSSCANF
) += osdep
/vsscanf.c
424 SRCS_COMMON-
$(PNG
) += libmpcodecs
/vd_mpng.c
425 SRCS_COMMON-
$(PVR
) += stream
/stream_pvr.c
426 SRCS_COMMON-
$(QTX_CODECS
) += libmpcodecs
/ad_qtaudio.c \
427 libmpcodecs
/vd_qtvideo.c
428 SRCS_COMMON-
$(QTX_EMULATION
) += loader
/wrapper.S
429 SRCS_COMMON-
$(RADIO
) += stream
/stream_radio.c
430 SRCS_COMMON-
$(RADIO_CAPTURE
) += stream
/audio_in.c
431 SRCS_COMMON-
$(REAL_CODECS
) += libmpcodecs
/ad_realaud.c \
432 libmpcodecs
/vd_realvid.c
433 SRCS_COMMON-
$(SPEEX
) += libmpcodecs
/ad_speex.c
434 SRCS_COMMON-
$(STREAM_CACHE
) += stream
/cache2.c
435 SRCS_COMMON-
$(STREAMING_LIVE555
) += libmpdemux
/demux_rtp.
cpp \
436 libmpdemux
/demux_rtp_codec.
cpp \
437 stream
/stream_live555.c \
439 SRCS_COMMON-
$(TREMOR_INTERNAL
) += tremor
/bitwise.c \
450 tremor
/sharedbook.c \
454 SRCS_COMMON-
$(TV
) += stream
/stream_tv.c stream
/tv.c \
455 stream
/frequencies.c stream
/tvi_dummy.c
456 SRCS_COMMON-
$(TV_BSDBT848
) += stream
/tvi_bsdbt848.c
457 SRCS_COMMON-
$(TV_DSHOW
) += stream
/tvi_dshow.c
458 SRCS_COMMON-
$(TV_TELETEXT
) += stream
/tvi_vbi.c
459 SRCS_COMMON-
$(TV_V4L1
) += stream
/tvi_v4l.c stream
/audio_in.c
460 SRCS_COMMON-
$(TV_V4L2
) += stream
/tvi_v4l2.c stream
/audio_in.c
461 SRCS_COMMON-
$(UNRAR_EXEC
) += unrar_exec.c
462 SRCS_COMMON-
$(VCD
) += stream
/stream_vcd.c
463 SRCS_COMMON-
$(VSTREAM
) += stream
/stream_vstream.c
464 SRCS_COMMON-
$(WIN32_EMULATION
) += loader
/elfdll.c \
466 loader
/ldt_keeper.c \
469 loader
/pe_resource.c \
474 SRCS_COMMON-
$(WIN32DLL
) += libmpcodecs
/ad_acm.c \
475 libmpcodecs
/ad_dmo.c \
476 libmpcodecs
/ad_dshow.c \
477 libmpcodecs
/ad_twin.c \
478 libmpcodecs
/vd_dmo.c \
479 libmpcodecs
/vd_dshow.c \
480 libmpcodecs
/vd_vfw.c \
481 libmpcodecs
/vd_vfwex.c \
482 libmpdemux
/demux_avs.c \
486 loader
/dshow
/DS_AudioDecoder.c \
487 loader
/dshow
/DS_Filter.c \
488 loader
/dshow
/DS_VideoDecoder.c \
489 loader
/dshow
/allocator.c \
490 loader
/dshow
/cmediasample.c \
491 loader
/dshow
/guids.c \
492 loader
/dshow
/inputpin.c \
493 loader
/dshow
/mediatype.c \
494 loader
/dshow
/outputpin.c \
495 loader
/dmo
/DMO_AudioDecoder.c \
496 loader
/dmo
/DMO_VideoDecoder.c \
497 loader
/dmo
/buffer.c \
499 loader
/dmo
/dmo_guids.c \
501 SRCS_COMMON-
$(XANIM_CODECS
) += libmpcodecs
/vd_xanim.c
502 SRCS_COMMON-
$(XMMS_PLUGINS
) += libmpdemux
/demux_xmms.c
503 SRCS_COMMON-
$(XVID4
) += libmpcodecs
/vd_xvid4.c
504 SRCS_COMMON-
$(ZORAN
) += libmpcodecs
/vd_zrmjpeg.c \
505 libmpcodecs
/vf_zrmjpeg.c
507 SRCS_MPLAYER
= mplayer.c \
516 libao2
/ao_mpegpes.c \
519 $(addprefix libao2
/,$(AO_SRCS
)) \
522 libvo
/old_vo_wrapper.c \
527 $(addprefix libvo
/,$(VO_SRCS
)) \
529 SRCS_MPLAYER-
$(APPLE_IR
) += input
/appleir.c
530 SRCS_MPLAYER-
$(APPLE_REMOTE
) += input
/ar.c
531 SRCS_MPLAYER-
$(GUI
) += gui
/bitmap.c
532 SRCS_MPLAYER-
$(GUI_GTK
) += gui
/app.c \
535 gui
/mplayer
/gui_common.c \
541 gui
/mplayer
/widgets.c \
542 gui
/mplayer
/gtk
/about.c \
543 gui
/mplayer
/gtk
/eq.c \
544 gui
/mplayer
/gtk
/fs.c \
545 gui
/mplayer
/gtk
/gtk_common.c \
546 gui
/mplayer
/gtk
/gtk_url.c \
547 gui
/mplayer
/gtk
/mb.c \
548 gui
/mplayer
/gtk
/menu.c \
549 gui
/mplayer
/gtk
/opts.c \
550 gui
/mplayer
/gtk
/pl.c \
551 gui
/mplayer
/gtk
/sb.c \
558 SRCS_MPLAYER-
$(GUI_WIN32
) += gui
/win32
/dialogs.c \
560 gui
/win32
/interface.c \
561 gui
/win32
/playlist.c \
562 gui
/win32
/preferences.c \
563 gui
/win32
/skinload.c \
564 gui
/win32
/widgetrender.c \
567 SRCS_MPLAYER-
$(JOYSTICK
) += input
/joystick.c
568 SRCS_MPLAYER-
$(LIBMENU
) += libmenu
/menu.c \
569 libmenu
/menu_chapsel.c \
570 libmenu
/menu_cmdlist.c \
571 libmenu
/menu_console.c \
572 libmenu
/menu_filesel.c \
573 libmenu
/menu_list.c \
574 libmenu
/menu_param.c \
579 SRCS_MPLAYER-
$(LIBMENU_DVBIN
) += libmenu
/menu_dvbin.c
580 SRCS_MPLAYER-
$(LIRC
) += input
/lirc.c
582 SRCS_MPLAYER-
$(VIDIX
) += libvo
/vosub_vidix.c \
591 SRCS_MPLAYER-
$(VIDIX_CYBERBLADE
) += vidix
/cyberblade_vid.c
592 SRCS_MPLAYER-
$(VIDIX_IVTV
) += vidix
/ivtv_vid.c
593 SRCS_MPLAYER-
$(VIDIX_MACH64
) += vidix
/mach64_vid.c
594 SRCS_MPLAYER-
$(VIDIX_MGA
) += vidix
/mga_vid.c
595 SRCS_MPLAYER-
$(VIDIX_MGA_CRTC2
) += vidix
/mga_crtc2_vid.c
596 SRCS_MPLAYER-
$(VIDIX_NVIDIA
) += vidix
/nvidia_vid.c
597 SRCS_MPLAYER-
$(VIDIX_PM2
) += vidix
/pm2_vid.c
598 SRCS_MPLAYER-
$(VIDIX_PM3
) += vidix
/pm3_vid.c
599 SRCS_MPLAYER-
$(VIDIX_RADEON
) += vidix
/radeon_vid.c
600 SRCS_MPLAYER-
$(VIDIX_RAGE128
) += vidix
/rage128_vid.c
601 SRCS_MPLAYER-
$(VIDIX_S3
) += vidix
/s3_vid.c
602 SRCS_MPLAYER-
$(VIDIX_SIS
) += vidix
/sis_vid.c vidix
/sis_bridge.c
603 SRCS_MPLAYER-
$(VIDIX_UNICHROME
) += vidix
/unichrome_vid.c
605 SRCS_MENCODER
= mencoder.c \
610 libmpcodecs
/ae_pcm.c \
612 libmpcodecs
/ve_raw.c \
614 libmpdemux
/muxer_avi.c \
615 libmpdemux
/muxer_mpeg.c \
616 libmpdemux
/muxer_rawaudio.c \
617 libmpdemux
/muxer_rawvideo.c \
619 SRCS_MENCODER-
$(FAAC
) += libmpcodecs
/ae_faac.c
620 SRCS_MENCODER-
$(LIBAVCODEC
) += libmpcodecs
/ae_lavc.c libmpcodecs
/ve_lavc.c
621 SRCS_MENCODER-
$(LIBAVFORMAT
) += libmpdemux
/muxer_lavf.c
622 SRCS_MENCODER-
$(LIBDV
) += libmpcodecs
/ve_libdv.c
623 SRCS_MENCODER-
$(LIBLZO
) += libmpcodecs
/ve_nuv.c
624 SRCS_MENCODER-
$(MP3LAME
) += libmpcodecs
/ae_lame.c
625 SRCS_MENCODER-
$(QTX_CODECS_WIN32
) += libmpcodecs
/ve_qtvideo.c
626 SRCS_MENCODER-
$(TOOLAME
) += libmpcodecs
/ae_toolame.c
627 SRCS_MENCODER-
$(TWOLAME
) += libmpcodecs
/ae_twolame.c
628 SRCS_MENCODER-
$(WIN32DLL
) += libmpcodecs
/ve_vfw.c
629 SRCS_MENCODER-
$(X264
) += libmpcodecs
/ve_x264.c
630 SRCS_MENCODER-
$(XVID4
) += libmpcodecs
/ve_xvid4.c
632 SRCS_COMMON
+= $(SRCS_COMMON-yes
) $(SRCS_COMMON-yes-yes
) $(SRCS_COMMON-yes-yes-yes
)
633 SRCS_MENCODER
+= $(SRCS_MENCODER-yes
)
634 SRCS_MPLAYER
+= $(SRCS_MPLAYER-yes
)
636 COMMON_LIBS-
$(LIBAVFORMAT_A
) += ffmpeg
/libavformat
/libavformat.a
637 COMMON_LIBS-
$(LIBAVCODEC_A
) += ffmpeg
/libavcodec
/libavcodec.a
638 COMMON_LIBS-
$(LIBAVUTIL_A
) += ffmpeg
/libavutil
/libavutil.a
639 COMMON_LIBS-
$(LIBPOSTPROC_A
) += ffmpeg
/libpostproc
/libpostproc.a
640 COMMON_LIBS
= libswscale
/libswscale.a
641 COMMON_LIBS
+= $(COMMON_LIBS-yes
)
643 OBJS_COMMON
+= $(addsuffix .o
, $(basename $(SRCS_COMMON
)))
644 OBJS_MENCODER
+= $(addsuffix .o
, $(basename $(SRCS_MENCODER
)))
645 OBJS_MPLAYER
+= $(addsuffix .o
, $(basename $(SRCS_MPLAYER
)))
646 OBJS_MPLAYER-
$(PE_EXECUTABLE
) += osdep
/mplayer-rc.o
647 OBJS_MPLAYER
+= $(OBJS_MPLAYER-yes
)
649 MPLAYER_DEPS
= $(OBJS_MPLAYER
) $(OBJS_COMMON
) $(COMMON_LIBS
)
650 MENCODER_DEPS
= $(OBJS_MENCODER
) $(OBJS_COMMON
) $(COMMON_LIBS
)
651 DEPS
= $(filter-out %.S
,$(patsubst %.
cpp,%.d
,$(patsubst %.c
,%.d
,$(SRCS_COMMON
) $(SRCS_MPLAYER
:.m
=.d
) $(SRCS_MENCODER
))))
653 ALL_PRG-
$(MPLAYER
) += mplayer
$(EXESUF
)
654 ALL_PRG-
$(MENCODER
) += mencoder
$(EXESUF
)
656 INSTALL_TARGETS-
$(MPLAYER
) += install-mplayer install-mplayer-man
657 INSTALL_TARGETS-
$(MENCODER
) += install-mencoder install-mencoder-man
658 INSTALL_TARGETS-
$(GUI
) += install-gui
674 ffmpeg
/libavcodec
/alpha \
675 ffmpeg
/libavcodec
/armv4l \
676 ffmpeg
/libavcodec
/bfin \
677 ffmpeg
/libavcodec
/i386 \
678 ffmpeg
/libavcodec
/mlib \
679 ffmpeg
/libavcodec
/ppc \
680 ffmpeg
/libavcodec
/sh4 \
681 ffmpeg
/libavcodec
/sparc \
707 ALLHEADERS
= $(foreach dir,$(DIRS
),$(wildcard $(dir)/*.h
))
709 PARTS
= ffmpeg
/libavcodec \
715 FFMPEGLIBS
= $(foreach part
, $(PARTS
), $(part
)/$(notdir $(part
)).a
)
716 FFMPEGFILES
= $(foreach part
, $(PARTS
), $(part
)/*.
[chS
] ffmpeg
/libavcodec
/*/*.
[chS
])
720 ###### generic rules #######
728 $(MPDEPEND_CMD_CXX
) > $@
734 $(CC
) $(CFLAGS
) -c
-o
$@
$<
737 $(CC
) $(CFLAGS
) -Wno-unused
-c
-o
$@
-x c
$<
742 checkheaders
: $(ALLHEADERS
:.h
=.ho
)
745 for part in
$(PARTS
); do
$(MAKE
) -C
$$part depend
; done
747 $(FFMPEGLIBS
): $(FFMPEGFILES
) libvo
/fastmemcpy.h config.h
751 mplayer
$(EXESUF
): $(MPLAYER_DEPS
)
752 $(CC
) -o
$@
$^
$(LDFLAGS_MPLAYER
)
754 mencoder
$(EXESUF
): $(MENCODER_DEPS
)
755 $(CC
) -o
$@
$^
$(LDFLAGS_MENCODER
)
757 codec-cfg
$(EXESUF
): codec-cfg.c codec-cfg.h help_mp.h
758 $(HOST_CC
) -O
-I.
-Iffmpeg
-DCODECS2HTML
-o
$@
$<
760 codecs.conf.h
: codec-cfg
$(EXESUF
) etc
/codecs.conf
763 # ./configure must be rerun if it changed
764 config.mak
: configure
765 @echo
"############################################################"
766 @echo
"####### Please run ./configure again - it's changed! #######"
767 @echo
"############################################################"
769 help_mp.h
: help
/help_mp-en.h
$(HELP_FILE
)
770 help
/help_create.sh
$(HELP_FILE
) $(CHARSET
)
772 # rebuild version.h each time the working copy is updated
773 ifeq ($(wildcard .svn
/entries
),.svn
/entries
)
774 version.h
: .svn
/entries
777 .
/version.sh
`$(CC) -dumpversion`
783 ###### dependency declarations / specific CFLAGS ######
785 codec-cfg.d
: codecs.conf.h
786 mencoder.d mplayer.d vobsub.d gui
/win32
/gui.d libmpdemux
/muxer_avi.d stream
/network.d stream
/stream_cddb.d osdep
/mplayer-rc.o
: version.h
789 dvdread
/%.o dvdread
/%.d
: CFLAGS
+= -D__USE_UNIX98
-D_GNU_SOURCE
-DHAVE_CONFIG_H
$(LIBDVDCSS_DVDREAD_FLAGS
)
790 libdvdcss
/%.o libdvdcss
/%.d
: CFLAGS
+= -D__USE_UNIX98
-D_GNU_SOURCE
-DVERSION
=\"1.2.9\"
791 libfaad2
/%.o libfaad2
/%.d
: CFLAGS
+= -Ilibfaad2
-D_GNU_SOURCE
-DHAVE_CONFIG_H
793 loader
/% loader
/%: CFLAGS
+= -Iloader
-fno-omit-frame-pointer
$(CFLAG_NO_OMIT_LEAF_FRAME_POINTER
)
794 #loader/%.o loader/%.d: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
795 loader
/win32.o loader
/win32.d
: CFLAGS
+= $(CFLAG_STACKREALIGN
)
797 mp3lib
/decode_i586.o
: CFLAGS
+= -fomit-frame-pointer
799 vidix
/%: CFLAGS
+= $(CFLAG_DHAHELPER
) $(CFLAG_SVGALIB_HELPER
)
801 VIDIX_PCI_FILES
= vidix
/pci_dev_ids.c vidix
/pci_ids.h vidix
/pci_names.c \
802 vidix
/pci_names.h vidix
/pci_vendors.h
804 $(VIDIX_PCI_FILES
): vidix
/pci.db vidix
/pci_db2c.awk
805 awk
-f vidix
/pci_db2c.awk
$< $(VIDIX_PCIDB
)
807 VIDIX_DEPS
= $(filter vidix
/%,$(SRCS_MPLAYER
:.c
=.d
))
808 VIDIX_OBJS
= $(filter vidix
/%,$(SRCS_MPLAYER
:.c
=.o
))
810 $(VIDIX_DEPS
) $(VIDIX_OBJS
): $(VIDIX_PCI_FILES
)
814 ###### installation / clean / generic rules #######
816 install: $(INSTALL_TARGETS-yes
)
819 $(INSTALL
) -d
$(BINDIR
) $(CONFDIR
)
821 install-
%: %$(EXESUF
) install-dirs
822 $(INSTALL
) -m
755 $(INSTALLSTRIP
) $< $(BINDIR
)
824 install-mplayer-man
: $(foreach lang
,$(MAN_LANGS
),install-mplayer-man-
$(lang
))
825 install-mencoder-man
: $(foreach lang
,$(MAN_LANGS
),install-mencoder-man-
$(lang
))
827 install-mplayer-man-en
:
828 $(INSTALL
) -d
$(MANDIR
)/man1
829 $(INSTALL
) -c
-m
644 DOCS
/man
/en
/mplayer
.1 $(MANDIR
)/man1
/
831 install-mencoder-man-en
: install-mplayer-man-en
832 cd
$(MANDIR
)/man1
&& ln
-sf mplayer
.1 mencoder
.1
834 define MPLAYER_MAN_RULE
835 install-mplayer-man-
$(lang
):
836 $(INSTALL
) -d
$(MANDIR
)/$(lang
)/man1
837 $(INSTALL
) -c
-m
644 DOCS
/man
/$(lang
)/mplayer
.1 $(MANDIR
)/$(lang
)/man1
/
840 define MENCODER_MAN_RULE
841 install-mencoder-man-
$(lang
): install-mplayer-man-
$(lang
)
842 cd
$(MANDIR
)/$(lang
)/man1
&& ln
-sf mplayer
.1 mencoder
.1
845 $(foreach lang
,$(filter-out en
,$(MAN_LANG_ALL
)),$(eval
$(MPLAYER_MAN_RULE
)))
846 $(foreach lang
,$(filter-out en
,$(MAN_LANG_ALL
)),$(eval
$(MENCODER_MAN_RULE
)))
848 install-gui
: install-mplayer
849 -ln
-sf mplayer
$(EXESUF
) $(BINDIR
)/gmplayer
$(EXESUF
)
850 $(INSTALL
) -d
$(DATADIR
)/skins
$(prefix)/share
/pixmaps
$(prefix)/share
/applications
851 $(INSTALL
) -m
644 etc
/mplayer.xpm
$(prefix)/share
/pixmaps
/
852 $(INSTALL
) -m
644 etc
/mplayer.desktop
$(prefix)/share
/applications
/
855 rm -f
$(BINDIR
)/mplayer
$(EXESUF
) $(BINDIR
)/gmplayer
$(EXESUF
)
856 rm -f
$(BINDIR
)/mencoder
$(EXESUF
)
857 rm -f
$(MANDIR
)/man1
/mencoder
.1 $(MANDIR
)/man1
/mplayer
.1
858 rm -f
$(prefix)/share
/pixmaps
/mplayer.xpm
859 rm -f
$(prefix)/share
/applications
/mplayer.desktop
860 rm -f
$(MANDIR
)/man1
/mplayer
.1 $(MANDIR
)/man1
/mencoder
.1
861 rm -f
$(foreach lang
,$(MAN_LANGS
),$(foreach man
,mplayer
.1 mencoder
.1,$(MANDIR
)/$(lang
)/man1
/$(man
)))
864 rm -f
$(foreach dir,$(DIRS
),$(foreach suffix,/*.o
/*.a
/*.ho
/*~
, $(addsuffix $(suffix),$(dir))))
865 rm -f mplayer
$(EXESUF
) mencoder
$(EXESUF
)
867 distclean: clean testsclean toolsclean driversclean dhahelperclean dhahelperwinclean
868 rm -rf DOCS
/tech
/doxygen
869 rm -f
$(foreach dir,$(DIRS
),$(foreach suffix,/*.d
, $(addsuffix $(suffix),$(dir))))
870 rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \
871 version.h
$(VIDIX_PCI_FILES
) \
872 codec-cfg
$(EXESUF
) cpuinfo
$(EXESUF
) TAGS
tags
875 doxygen DOCS
/tech
/Doxyfile
878 rm -f
$@
; ( find
-name
'*.[chS]' -print ) | xargs etags
-a
881 rm -f
$@
; ( find
-name
'*.[chS]' -print ) | xargs ctags
-a
885 ###### tests / tools #######
887 TEST_OBJS
= mp_msg-mencoder.o mp_fifo.o osdep
/$(GETCH
) osdep
/$(TIMER
) -ltermcap
-lm
889 codecs2html
$(EXESUF
): codec-cfg.c
$(TEST_OBJS
)
890 $(CC
) -I.
-DCODECS2HTML
-o
$@
$^
892 codec-cfg-test
$(EXESUF
): codec-cfg.c codecs.conf.h codec-cfg.h
$(TEST_OBJS
)
893 $(CC
) -I.
-DTESTING
-o
$@
$^
895 liba52
/test$(EXESUF
): cpudetect.o
$(filter liba52
/%,$(SRCS_COMMON
:.c
=.o
)) -lm
897 libvo
/aspecttest
$(EXESUF
): libvo
/aspect.o libvo
/geometry.o
$(TEST_OBJS
)
899 LOADER_TEST_OBJS
= $(filter loader
/%,$(SRCS_COMMON
:.c
=.o
)) libmpdemux
/aviprint.o osdep
/mmap_anon.o cpudetect.o
$(TEST_OBJS
)
901 loader
/qtx
/list
$(EXESUF
) loader
/qtx
/qtxload
$(EXESUF
): CFLAGS
+= -g
902 loader
/qtx
/list
$(EXESUF
) loader
/qtx
/qtxload
$(EXESUF
): $(LOADER_TEST_OBJS
)
904 mp3lib
/test$(EXESUF
) mp3lib
/test2
$(EXESUF
): $(filter mp3lib
/%,$(SRCS_COMMON
:.c
=.o
)) libvo
/aclib.o cpudetect.o
$(TEST_OBJS
)
906 TESTS
= codecs2html
$(EXESUF
) codec-cfg-test
$(EXESUF
) \
907 liba52
/test$(EXESUF
) libvo
/aspecttest
$(EXESUF
) \
908 mp3lib
/test$(EXESUF
) mp3lib
/test2
$(EXESUF
)
911 TESTS
+= loader
/qtx
/list
$(EXESUF
) loader
/qtx
/qtxload
$(EXESUF
)
919 TOOLS
= TOOLS
/alaw-gen
$(EXESUF
) \
920 TOOLS
/asfinfo
$(EXESUF
) \
921 TOOLS
/avi-fix
$(EXESUF
) \
922 TOOLS
/avisubdump
$(EXESUF
) \
923 TOOLS
/compare
$(EXESUF
) \
924 TOOLS
/dump_mp4
$(EXESUF
) \
925 TOOLS
/movinfo
$(EXESUF
) \
926 TOOLS
/netstream
$(EXESUF
) \
927 TOOLS
/subrip
$(EXESUF
) \
928 TOOLS
/vivodump
$(EXESUF
) \
931 TOOLS
+= TOOLS
/modify_reg
$(EXESUF
)
934 ALLTOOLS
= $(TOOLS
) \
935 TOOLS
/bmovl-test
$(EXESUF
) \
936 TOOLS
/vfw2menc
$(EXESUF
) \
939 alltools
: $(ALLTOOLS
)
942 rm -f
$(ALLTOOLS
) TOOLS
/fastmem
*-* TOOLS
/realcodecs
/*.so
.6.0
944 TOOLS
/bmovl-test
$(EXESUF
): -lSDL_image
946 TOOLS
/subrip
$(EXESUF
): vobsub.o spudec.o unrar_exec.o libvo
/aclib.o \
947 libswscale
/libswscale.a libavutil
/libavutil.a
$(TEST_OBJS
)
949 TOOLS
/vfw2menc
$(EXESUF
): -lwinmm
-lole32
951 mplayer-nomain.o
: mplayer.c
952 $(CC
) $(CFLAGS
) -DDISABLE_MAIN
-c
-o
$@
$<
954 TOOLS
/netstream
$(EXESUF
): TOOLS
/netstream.c
955 TOOLS
/vivodump
$(EXESUF
): TOOLS
/vivodump.c
956 TOOLS
/netstream
$(EXESUF
) TOOLS
/vivodump
$(EXESUF
): $(subst mplayer.o
,mplayer-nomain.o
,$(OBJS_MPLAYER
)) $(filter-out %mencoder.o
,$(OBJS_MENCODER
)) $(OBJS_COMMON
) $(COMMON_LIBS
)
957 $(CC
) $(CFLAGS
) -o
$@
$^
$(EXTRALIBS_MPLAYER
) $(EXTRALIBS_MENCODER
) $(COMMON_LDFLAGS
)
959 fastmemcpybench
: TOOLS
/fastmemcpybench.c
960 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-mmx
$(EXESUF
) -DNAME
=\"mmx
\" -DHAVE_MMX
961 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-k6
$(EXESUF
) -DNAME
=\"k6\
\" -DHAVE_MMX
-DHAVE_3DNOW
962 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-k7
$(EXESUF
) -DNAME
=\"k7\
\" -DHAVE_MMX
-DHAVE_3DNOW
-DHAVE_MMX2
963 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem-sse
$(EXESUF
) -DNAME
=\"sse
\" -DHAVE_MMX
-DHAVE_SSE
-DHAVE_MMX2
964 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-mmx
$(EXESUF
) -DNAME
=\"mga-mmx
\" -DCONFIG_MGA
-DHAVE_MMX
965 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-k6
$(EXESUF
) -DNAME
=\"mga-k6\
\" -DCONFIG_MGA
-DHAVE_MMX
-DHAVE_3DNOW
966 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-k7
$(EXESUF
) -DNAME
=\"mga-k7\
\" -DCONFIG_MGA
-DHAVE_MMX
-DHAVE_3DNOW
-DHAVE_MMX2
967 $(CC
) $(CFLAGS
) $< -o TOOLS
/fastmem2-sse
$(EXESUF
) -DNAME
=\"mga-sse
\" -DCONFIG_MGA
-DHAVE_MMX
-DHAVE_SSE
-DHAVE_MMX2
969 REAL_SRCS
= $(wildcard TOOLS
/realcodecs
/*.c
)
970 REAL_TARGETS
= $(REAL_SRCS
:.c
=.so
.6.0)
972 realcodecs
: $(REAL_TARGETS
)
974 fastmemcpybench realcodecs
: CFLAGS
+= -g
977 ld -shared
-o
$@
$< -ldl
-lc
981 ###### drivers #######
983 KERNEL_INC
= /lib
/modules
/`uname -r`/build
/include
984 KERNEL_VERSION
= $(shell grep RELEASE
$(KERNEL_INC
)/linux
/version.h | cut
-d
'"' -f2
)
985 KERNEL_CFLAGS
= -O2
-D__KERNEL__
-DMODULE
-Wall
-I
$(KERNEL_INC
) -include $(KERNEL_INC
)/linux
/modversions.h
986 KERNEL_OBJS
= $(addprefix drivers
/, mga_vid.o tdfx_vid.o radeon_vid.o rage128_vid.o
)
987 MODULES_DIR
= /lib
/modules
/$(KERNEL_VERSION
)/misc
988 DRIVER_OBJS
= $(KERNEL_OBJS
) drivers
/mga_vid_test drivers
/tdfx_vid_test
990 drivers
: $(DRIVER_OBJS
)
992 $(DRIVER_OBJS
): CFLAGS
= $(KERNEL_CFLAGS
)
993 drivers
/mga_vid.o
: drivers
/mga_vid.c drivers
/mga_vid.h
994 drivers
/tdfx_vid.o
: drivers
/tdfx_vid.c drivers
/3dfx.h
995 drivers
/radeon_vid.o drivers
/rage128_vid.o
: CFLAGS
+= -fomit-frame-pointer
-fno-strict-aliasing
-fno-common
-ffast-math
996 drivers
/radeon_vid.o
: drivers
/radeon_vid.c drivers
/radeon.h drivers
/radeon_vid.h
997 drivers
/rage128_vid.o
: drivers
/radeon_vid.c drivers
/radeon.h drivers
/radeon_vid.h
998 $(CC
) $(CFLAGS
) -DRAGE128
-c
$< -o
$@
1000 install-drivers
: $(DRIVER_OBJS
)
1001 -mkdir
-p
$(MODULES_DIR
)
1002 install -m
644 $(KERNEL_OBJS
) $(MODULES_DIR
)
1004 -mknod
/dev
/mga_vid c
178 0
1005 -mknod
/dev
/tdfx_vid c
178 0
1006 -mknod
/dev
/radeon_vid c
178 0
1007 -ln
-s
/dev
/radeon_vid
/dev
/rage128_vid
1010 rm -f
$(DRIVER_OBJS
) drivers
/*~
1012 dhahelper
: vidix
/dhahelper
/dhahelper.o vidix
/dhahelper
/test
1014 vidix
/dhahelper
/dhahelper.o vidix
/dhahelper
/test: CFLAGS
= $(KERNEL_CFLAGS
)
1015 vidix
/dhahelper
/dhahelper.o
: vidix
/dhahelper
/dhahelper.c vidix
/dhahelper
/dhahelper.h
1017 install-dhahelper
: vidix
/dhahelper
/dhahelper.o
1018 -mkdir
-p
$(MODULES_DIR
)
1019 install -m
644 $< $(MODULES_DIR
)
1021 -mknod
/dev
/dhahelper c
180 0
1024 rm -f vidix
/dhahelper
/*.o vidix
/dhahelper
/*~ vidix
/dhahelper
/test
1026 dhahelperwin
: vidix
/dhahelperwin
/dhasetup.exe vidix
/dhahelperwin
/dhahelper.sys
1028 vidix
/dhahelperwin
/dhasetup.exe
: vidix
/dhahelperwin
/dhasetup.c
1031 vidix
/dhahelperwin
/dhahelper.o
: vidix
/dhahelperwin
/dhahelper.c vidix
/dhahelperwin
/dhahelper.h
1032 $(CC
) -Wall
-Os
-c
$< -o
$@
1034 vidix
/dhahelperwin
/dhahelper-rc.o
: vidix
/dhahelperwin
/common.ver vidix
/dhahelperwin
/ntverp.h
1036 vidix
/dhahelperwin
/base.tmp
: vidix
/dhahelperwin
/dhahelper.o vidix
/dhahelperwin
/dhahelper-rc.o
1037 $(CC
) -Wl
,--base-file
,$@
-Wl
,--entry
,_DriverEntry@
8 -nostartfiles \
1038 -nostdlib
-o vidix
/dhahelperwin
/junk.tmp
$^
-lntoskrnl
1039 -rm -f vidix
/dhahelperwin
/junk.tmp
1041 vidix
/dhahelperwin
/temp.exp
: vidix
/dhahelperwin
/base.tmp
1042 dlltool
--dllname vidix
/dhahelperwin
/dhahelper.sys
--base-file
$< --output-exp
$@
1044 vidix
/dhahelperwin
/dhahelper.sys
: vidix
/dhahelperwin
/temp.exp vidix
/dhahelperwin
/dhahelper.o vidix
/dhahelperwin
/dhahelper-rc.o
1045 $(CC
) -Wl
,--subsystem
,native
-Wl
,--image-base
,0x10000 \
1046 -Wl
,--file-alignment
,0x1000 -Wl
,--section-alignment
,0x1000 \
1047 -Wl
,--entry
,_DriverEntry@
8 -Wl
,$< -mdll
-nostartfiles
-nostdlib \
1048 -o
$@ vidix
/dhahelperwin
/dhahelper.o \
1049 vidix
/dhahelperwin
/dhahelper-rc.o
-lntoskrnl
1052 install-dhahelperwin
:
1053 vidix
/dhahelperwin
/dhasetup.exe
install
1056 rm -f
$(addprefix vidix
/dhahelperwin
/,*.o
*~ dhahelper.sys dhasetup.exe base.tmp temp.exp
)
1062 .PHONY
: all doxygen
*install* *tools drivers dhahelper
*
1063 .PHONY
: checkheaders
*clean dep depend tests