2001-02-24 20:28:24 +00:00
|
|
|
# LINUX Makefile made by A'rpi / Astral
|
|
|
|
# Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
|
|
|
|
# * for loops instead of linear sequence of make directories
|
|
|
|
# * some minor problems with make clean and distclean were corrected
|
2001-04-17 22:04:44 +00:00
|
|
|
# * DVD support
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
2007-03-13 23:42:38 +00:00
|
|
|
COMMON_LDFLAGS += $(EXTRA_LIB)\
|
|
|
|
$(EXTRALIBS) \
|
|
|
|
|
|
|
|
LDFLAGS_MPLAYER = $(EXTRALIBS_MPLAYER) \
|
|
|
|
$(COMMON_LDFLAGS) \
|
|
|
|
|
|
|
|
LDFLAGS_MENCODER = $(EXTRALIBS_MENCODER) \
|
|
|
|
$(COMMON_LDFLAGS) \
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
SRCS_COMMON = asxparser.c \
|
|
|
|
codec-cfg.c \
|
|
|
|
cpudetect.c \
|
|
|
|
edl.c \
|
|
|
|
find_sub.c \
|
2007-08-28 11:20:24 +00:00
|
|
|
get_path.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
m_config.c \
|
|
|
|
m_option.c \
|
|
|
|
m_struct.c \
|
2007-02-17 21:04:46 +00:00
|
|
|
mpcommon.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
parser-cfg.c \
|
|
|
|
playtree.c \
|
|
|
|
playtreeparser.c \
|
|
|
|
spudec.c \
|
|
|
|
sub_cc.c \
|
2007-11-01 06:52:38 +00:00
|
|
|
subopt-helper.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
subreader.c \
|
|
|
|
vobsub.c \
|
2008-04-09 18:15:21 +00:00
|
|
|
libaf/af.c \
|
|
|
|
libaf/af_center.c \
|
|
|
|
libaf/af_channels.c \
|
|
|
|
libaf/af_comp.c \
|
|
|
|
libaf/af_delay.c \
|
|
|
|
libaf/af_dummy.c \
|
|
|
|
libaf/af_equalizer.c \
|
|
|
|
libaf/af_extrastereo.c \
|
|
|
|
libaf/af_format.c \
|
|
|
|
libaf/af_gate.c \
|
|
|
|
libaf/af_hrtf.c \
|
|
|
|
libaf/af_karaoke.c \
|
|
|
|
libaf/af_pan.c \
|
|
|
|
libaf/af_resample.c \
|
|
|
|
libaf/af_scaletempo.c \
|
|
|
|
libaf/af_sinesuppress.c \
|
|
|
|
libaf/af_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-08 18:25:30 +00:00
|
|
|
osdep/$(GETCH) \
|
|
|
|
osdep/$(TIMER) \
|
|
|
|
|
|
|
|
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += osdep/mmap_anon.c
|
2008-04-09 18:15:21 +00:00
|
|
|
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += libaf/af_export.c
|
|
|
|
SRCS_COMMON-$(LADSPA) += libaf/af_ladspa.c
|
2008-04-09 18:33:26 +00: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-09 18:15:21 +00:00
|
|
|
SRCS_COMMON-$(LIBAVCODEC) += libaf/af_lavcresample.c
|
|
|
|
SRCS_COMMON-$(LIBAVCODEC_A) += libaf/af_lavcac3enc.c
|
2008-04-08 18:25:30 +00:00
|
|
|
SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += osdep/macosx_finder_args.c
|
|
|
|
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
|
|
|
|
SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
|
2008-04-09 14:13:30 +00:00
|
|
|
SRCS_COMMON-$(NEED_MMAP) += osdep/mmap-os2.c
|
2008-04-08 18:25:30 +00:00
|
|
|
SRCS_COMMON-$(NEED_SETENV) += osdep/setenv.c
|
|
|
|
SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
|
|
|
|
SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
|
|
|
|
SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
|
|
|
|
SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
|
2008-04-09 12:54:07 +00:00
|
|
|
SRCS_COMMON-$(UNRAR_EXEC) += unrar_exec.c
|
2006-08-25 13:15:49 +00:00
|
|
|
|
2006-11-20 13:00:26 +00:00
|
|
|
SRCS_MPLAYER = mplayer.c \
|
|
|
|
m_property.c \
|
2007-03-29 17:16:11 +00:00
|
|
|
mp_fifo.c \
|
2006-11-20 13:00:26 +00:00
|
|
|
mp_msg.c \
|
|
|
|
mixer.c \
|
|
|
|
parser-mpcmd.c \
|
2007-02-21 00:49:24 +00:00
|
|
|
command.c \
|
2008-04-06 23:09:06 +00:00
|
|
|
input/input.c \
|
|
|
|
|
|
|
|
SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c
|
2008-04-11 17:45:02 +00:00
|
|
|
SRCS_MPLAYER-$(GUI_GTK) += gui/app.c \
|
|
|
|
gui/bitmap.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 \
|
|
|
|
|
|
|
|
SRCS_MPLAYER-$(GUI_WIN32) += gui/bitmap.c \
|
|
|
|
gui/win32/dialogs.c \
|
|
|
|
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-04-06 23:09:06 +00:00
|
|
|
SRCS_MPLAYER-$(JOYSTICK) += input/joystick.c
|
2008-04-11 08:18:28 +00:00
|
|
|
SRCS_MPLAYER-$(LIBMENU) += libmenu/menu.c \
|
|
|
|
libmenu/menu_chapsel.c \
|
|
|
|
libmenu/menu_cmdlist.c \
|
|
|
|
libmenu/menu_console.c \
|
|
|
|
libmenu/menu_filesel.c \
|
|
|
|
libmenu/menu_list.c \
|
|
|
|
libmenu/menu_param.c \
|
|
|
|
libmenu/menu_pt.c \
|
|
|
|
libmenu/menu_txt.c \
|
|
|
|
libmenu/vf_menu.c \
|
|
|
|
|
2008-04-13 10:44:21 +00:00
|
|
|
SRCS_MPLAYER-$(LIBMENU_DVBIN) += libmenu/menu_dvbin.c
|
2008-04-06 23:09:06 +00:00
|
|
|
SRCS_MPLAYER-$(LIRC) += input/lirc.c
|
|
|
|
|
2008-04-13 07:57:35 +00:00
|
|
|
OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o
|
2006-11-20 13:00:26 +00:00
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
SRCS_MENCODER = mencoder.c \
|
|
|
|
mp_msg-mencoder.c \
|
|
|
|
parser-mecmd.c \
|
|
|
|
xvid_vbr.c \
|
|
|
|
|
|
|
|
COMMON_LIBS = libmpcodecs/libmpcodecs.a \
|
|
|
|
libmpdemux/libmpdemux.a \
|
2006-07-31 17:39:17 +00:00
|
|
|
stream/stream.a \
|
2006-06-30 12:00:31 +00:00
|
|
|
libswscale/libswscale.a \
|
2006-11-21 11:49:47 +00:00
|
|
|
libvo/libosd.a \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2007-05-11 23:15:11 +00: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-04-22 21:51:41 +00:00
|
|
|
COMMON_LIBS-$(WIN32DLL) += loader/loader.a
|
|
|
|
COMMON_LIBS-$(MP3LIB) += mp3lib/mp3lib.a
|
2007-03-24 19:59:36 +00:00
|
|
|
COMMON_LIBS-$(LIBA52) += liba52/liba52.a
|
|
|
|
COMMON_LIBS-$(LIBMPEG2) += libmpeg2/libmpeg2.a
|
|
|
|
COMMON_LIBS-$(FAAD_INTERNAL) += libfaad2/libfaad2.a
|
2008-04-22 21:51:41 +00:00
|
|
|
COMMON_LIBS-$(TREMOR_INTERNAL) += tremor/tremor.a
|
|
|
|
COMMON_LIBS-$(DVDREAD_INTERNAL) += dvdread/dvdread.a
|
2007-03-24 19:59:36 +00:00
|
|
|
COMMON_LIBS-$(DVDCSS_INTERNAL) += libdvdcss/libdvdcss.a
|
|
|
|
|
2006-11-20 13:00:26 +00:00
|
|
|
LIBS_MPLAYER = libvo/libvo.a \
|
|
|
|
libao2/libao2.a \
|
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
LIBS_MPLAYER-$(VIDIX) += vidix/vidix.a
|
2007-03-24 19:59:36 +00:00
|
|
|
|
2006-11-20 13:00:26 +00:00
|
|
|
LIBS_MENCODER = libmpcodecs/libmpencoders.a \
|
2006-11-27 14:26:52 +00:00
|
|
|
libmpdemux/libmpmux.a \
|
2006-11-20 13:00:26 +00:00
|
|
|
|
2007-03-24 19:59:36 +00:00
|
|
|
ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
|
|
|
|
ALL_PRG-$(MENCODER) += mencoder$(EXESUF)
|
|
|
|
|
|
|
|
COMMON_LIBS += $(COMMON_LIBS-yes)
|
|
|
|
LIBS_MPLAYER += $(LIBS_MPLAYER-yes)
|
|
|
|
OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
|
|
|
|
ALL_PRG += $(ALL_PRG-yes)
|
|
|
|
|
|
|
|
MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(LIBS_MPLAYER) $(COMMON_LIBS)
|
|
|
|
MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(LIBS_MENCODER) $(COMMON_LIBS)
|
|
|
|
|
|
|
|
INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man
|
|
|
|
INSTALL_TARGETS-$(MENCODER) += install-mencoder install-mplayer-man
|
|
|
|
INSTALL_TARGETS-$(GUI) += install-gui
|
|
|
|
INSTALL_TARGETS += $(INSTALL_TARGETS-yes)
|
|
|
|
|
2007-04-22 21:48:20 +00:00
|
|
|
PARTS = dvdread \
|
2007-03-24 19:56:00 +00:00
|
|
|
liba52 \
|
2007-04-22 21:48:20 +00:00
|
|
|
libao2 \
|
2007-03-24 19:56:00 +00:00
|
|
|
libavcodec \
|
|
|
|
libavformat \
|
2007-04-22 21:48:20 +00:00
|
|
|
libavutil \
|
|
|
|
libdvdcss \
|
|
|
|
libfaad2 \
|
|
|
|
libmpcodecs \
|
|
|
|
libmpdemux \
|
|
|
|
libmpeg2 \
|
2007-03-24 19:56:00 +00:00
|
|
|
libpostproc \
|
2007-04-22 21:48:20 +00:00
|
|
|
libswscale \
|
|
|
|
libvo \
|
2007-03-24 19:56:00 +00:00
|
|
|
loader \
|
|
|
|
mp3lib \
|
2007-04-22 21:48:20 +00:00
|
|
|
stream \
|
2007-03-24 19:56:00 +00:00
|
|
|
tremor \
|
|
|
|
vidix \
|
2005-06-20 14:35:00 +00:00
|
|
|
|
2008-04-13 21:20:29 +00:00
|
|
|
DIRS = gui \
|
|
|
|
gui/mplayer \
|
|
|
|
gui/mplayer/gtk \
|
|
|
|
gui/skin \
|
|
|
|
gui/wm \
|
|
|
|
gui/win32 \
|
|
|
|
input \
|
2008-04-09 18:15:21 +00:00
|
|
|
libaf \
|
2008-04-08 22:25:59 +00:00
|
|
|
libass \
|
2008-04-07 08:28:54 +00:00
|
|
|
libmenu \
|
2008-04-08 18:25:30 +00:00
|
|
|
osdep \
|
2008-04-22 08:50:38 +00:00
|
|
|
TOOLS \
|
2002-09-22 13:04:19 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
all: recurse $(ALL_PRG)
|
|
|
|
|
|
|
|
recurse:
|
|
|
|
for part in $(PARTS); do $(MAKE) -C $$part; done
|
2002-09-22 13:04:19 +00:00
|
|
|
|
2008-04-18 22:49:17 +00:00
|
|
|
DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d)
|
|
|
|
$(DEPS): help_mp.h version.h codecs.conf.h
|
|
|
|
dep depend: $(DEPS)
|
|
|
|
for part in $(PARTS); do $(MAKE) -C $$part .depend; done
|
2007-05-01 19:15:29 +00:00
|
|
|
|
2007-05-01 19:16:35 +00:00
|
|
|
include mpcommon.mak
|
|
|
|
|
|
|
|
CFLAGS := $(subst -I..,-I.,$(CFLAGS))
|
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
dvdread/dvdread.a:
|
2006-11-18 00:33:01 +00:00
|
|
|
$(MAKE) -C dvdread
|
2002-08-29 01:49:15 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
liba52/liba52.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C liba52
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libao2/libao2.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libao2
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libavcodec/libavcodec.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libavcodec
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libavformat/libavformat.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libavformat
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libavutil/libavutil.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libavutil
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libdvdcss/libdvdcss.a:
|
2006-11-03 12:25:56 +00:00
|
|
|
$(MAKE) -C libdvdcss
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libfaad2/libfaad2.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libfaad2
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libmpcodecs/libmpcodecs.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libmpcodecs
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libmpcodecs/libmpencoders.a:
|
2008-04-19 09:44:48 +00:00
|
|
|
$(MAKE) -C libmpcodecs libmpencoders.a
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libmpdemux/libmpdemux.a:
|
2006-11-27 14:26:52 +00:00
|
|
|
$(MAKE) -C libmpdemux libmpdemux.a
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libmpdemux/libmpmux.a:
|
2006-11-27 14:26:52 +00:00
|
|
|
$(MAKE) -C libmpdemux libmpmux.a
|
2001-10-20 18:49:08 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libmpeg2/libmpeg2.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C libmpeg2
|
2001-07-06 03:22:14 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libpostproc/libpostproc.a:
|
2007-04-12 19:40:18 +00:00
|
|
|
$(MAKE) -C libpostproc
|
2006-02-12 08:03:58 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libswscale/libswscale.a:
|
2007-04-12 19:40:18 +00:00
|
|
|
$(MAKE) -C libswscale
|
2006-06-30 12:00:31 +00:00
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libvo/libvo.a:
|
2006-11-26 16:31:47 +00:00
|
|
|
$(MAKE) -C libvo libvo.a
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
libvo/libosd.a:
|
2006-11-26 16:31:47 +00:00
|
|
|
$(MAKE) -C libvo libosd.a
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
loader/loader.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C loader
|
2003-08-30 22:31:45 +00:00
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
mp3lib/mp3lib.a:
|
2001-02-24 20:28:24 +00:00
|
|
|
$(MAKE) -C mp3lib
|
|
|
|
|
2008-04-22 21:20:42 +00:00
|
|
|
stream/stream.a:
|
2008-04-19 09:43:53 +00:00
|
|
|
$(MAKE) -C stream
|
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
tremor/tremor.a:
|
2004-12-30 12:11:32 +00:00
|
|
|
$(MAKE) -C tremor
|
|
|
|
|
2008-04-22 21:51:41 +00:00
|
|
|
vidix/vidix.a:
|
2002-01-07 09:28:22 +00:00
|
|
|
$(MAKE) -C vidix
|
|
|
|
|
2006-11-20 13:38:21 +00:00
|
|
|
mplayer$(EXESUF): $(MPLAYER_DEPS)
|
2006-11-21 17:42:20 +00:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-11-20 13:38:21 +00:00
|
|
|
mencoder$(EXESUF): $(MENCODER_DEPS)
|
2006-11-21 17:42:20 +00:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS_MENCODER)
|
2001-10-31 23:30:26 +00:00
|
|
|
|
2006-11-08 00:13:33 +00:00
|
|
|
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
|
2008-02-24 13:04:29 +00:00
|
|
|
$(HOST_CC) -O -I. -DCODECS2HTML $< -o $@
|
2006-07-13 01:20:14 +00:00
|
|
|
|
2006-11-08 23:45:15 +00:00
|
|
|
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
|
2006-11-08 00:13:33 +00:00
|
|
|
./codec-cfg$(EXESUF) ./etc/codecs.conf > $@
|
2002-12-15 23:45:19 +00:00
|
|
|
|
|
|
|
codec-cfg.o: codecs.conf.h
|
|
|
|
|
2006-11-08 00:13:33 +00:00
|
|
|
codecs2html$(EXESUF): mp_msg.o
|
2007-01-20 21:39:21 +00:00
|
|
|
$(CC) -DCODECS2HTML codec-cfg.c $^ -o $@
|
2006-03-07 15:37:58 +00:00
|
|
|
|
2007-03-11 17:44:10 +00:00
|
|
|
codec-cfg-test$(EXESUF): codecs.conf.h codec-cfg.h mp_msg.o osdep/getch2.o
|
|
|
|
$(CC) -I. -DTESTING codec-cfg.c mp_msg.o osdep/getch2.o -ltermcap -o $@
|
|
|
|
|
2008-04-08 18:25:30 +00:00
|
|
|
osdep/mplayer-rc.o: osdep/mplayer.rc version.h
|
|
|
|
$(WINDRES) -o $@ $<
|
|
|
|
|
2007-01-30 11:00:54 +00:00
|
|
|
install: install-dirs $(INSTALL_TARGETS)
|
|
|
|
|
2007-01-30 11:02:19 +00:00
|
|
|
install-dirs:
|
|
|
|
$(INSTALL) -d $(BINDIR)
|
|
|
|
$(INSTALL) -d $(DATADIR)
|
|
|
|
$(INSTALL) -d $(MANDIR)/man1
|
|
|
|
$(INSTALL) -d $(CONFDIR)
|
|
|
|
if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi
|
2007-01-30 11:00:54 +00:00
|
|
|
|
|
|
|
install-mplayer: mplayer$(EXESUF)
|
2007-01-20 21:57:57 +00:00
|
|
|
$(INSTALL) -m 755 $(INSTALLSTRIP) mplayer$(EXESUF) $(BINDIR)
|
2007-01-30 11:00:54 +00:00
|
|
|
|
|
|
|
install-mplayer-man:
|
2008-04-08 22:11:17 +00:00
|
|
|
for lang in $(MAN_LANG); do \
|
|
|
|
if test "$$lang" = en ; then \
|
2007-01-20 21:57:57 +00:00
|
|
|
$(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/ ; \
|
2003-02-20 23:32:47 +00:00
|
|
|
else \
|
2008-04-18 07:16:22 +00:00
|
|
|
$(INSTALL) -d $(MANDIR)/$$lang/man1 ; \
|
|
|
|
$(INSTALL) -c -m 644 DOCS/man/$$lang/mplayer.1 $(MANDIR)/$$lang/man1/ ; \
|
2003-02-17 13:06:03 +00:00
|
|
|
fi ; \
|
2003-02-20 23:32:47 +00:00
|
|
|
done
|
2007-01-30 11:00:54 +00:00
|
|
|
|
|
|
|
install-mencoder: mencoder$(EXESUF)
|
2007-01-20 21:57:57 +00:00
|
|
|
$(INSTALL) -m 755 $(INSTALLSTRIP) mencoder$(EXESUF) $(BINDIR)
|
2008-04-08 22:11:17 +00:00
|
|
|
for lang in $(MAN_LANG); do \
|
|
|
|
if test "$$lang" = en ; then \
|
2006-10-01 17:00:20 +00:00
|
|
|
cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1 ; \
|
2003-02-20 23:32:47 +00:00
|
|
|
else \
|
2008-04-10 10:55:39 +00:00
|
|
|
cd $(MANDIR)/$$lang/man1 && ln -sf mplayer.1 mencoder.1 ; \
|
2003-02-17 13:06:03 +00:00
|
|
|
fi ; \
|
2003-02-20 23:32:47 +00:00
|
|
|
done
|
2007-01-30 11:00:54 +00:00
|
|
|
|
|
|
|
install-gui:
|
2007-01-20 21:39:21 +00:00
|
|
|
-ln -sf mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
|
2007-01-20 21:55:30 +00:00
|
|
|
$(INSTALL) -d $(DATADIR)/skins
|
2007-01-30 11:02:37 +00:00
|
|
|
@echo "*** Download skin(s) at http://www.mplayerhq.hu/design7/dload.html"
|
2006-03-27 11:39:27 +00:00
|
|
|
@echo "*** for GUI, and extract to $(DATADIR)/skins/"
|
2007-01-20 21:55:30 +00:00
|
|
|
$(INSTALL) -d $(prefix)/share/pixmaps
|
2007-01-20 21:57:57 +00:00
|
|
|
$(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/
|
2007-01-20 21:55:30 +00:00
|
|
|
$(INSTALL) -d $(prefix)/share/applications
|
2007-01-20 21:57:57 +00:00
|
|
|
$(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
|
2007-01-30 11:00:54 +00:00
|
|
|
|
2001-10-22 22:46:38 +00:00
|
|
|
uninstall:
|
2006-11-08 00:13:33 +00:00
|
|
|
-rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
|
|
|
|
-rm -f $(BINDIR)/mencoder$(EXESUF)
|
|
|
|
-rm -f $(MANDIR)/man1/mencoder.1 $(MANDIR)/man1/mplayer.1
|
2006-04-04 06:48:14 +00:00
|
|
|
-rm -f $(prefix)/share/pixmaps/mplayer.xpm
|
2004-10-18 09:19:05 +00:00
|
|
|
-rm -f $(prefix)/share/applications/mplayer.desktop
|
2008-04-08 22:11:17 +00:00
|
|
|
for lang in $(MAN_LANG); do \
|
|
|
|
if test "$$lang" != "en"; then \
|
2008-04-10 10:55:39 +00:00
|
|
|
rm -f $(MANDIR)/$$lang/man1/mplayer.1 \
|
|
|
|
$(MANDIR)/$$lang/man1/mencoder.1 \
|
|
|
|
$(MANDIR)/$$lang/man1/gmplayer.1 ; \
|
2005-11-16 10:38:23 +00:00
|
|
|
fi ; \
|
2004-10-20 14:20:07 +00:00
|
|
|
done
|
2001-10-22 22:46:38 +00:00
|
|
|
|
2008-04-22 08:50:38 +00:00
|
|
|
clean:: toolsclean
|
2007-03-11 16:16:21 +00:00
|
|
|
-rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \
|
2007-04-09 15:08:29 +00:00
|
|
|
codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \
|
2008-01-10 18:40:26 +00:00
|
|
|
codecs.conf.h help_mp.h version.h TAGS tags
|
2008-04-08 22:11:17 +00:00
|
|
|
for part in $(PARTS); do $(MAKE) -C $$part clean; done
|
2008-04-13 21:13:05 +00:00
|
|
|
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir))))
|
2006-08-03 17:31:30 +00:00
|
|
|
|
2007-05-01 19:16:35 +00:00
|
|
|
distclean:: doxygen_clean
|
2008-04-08 22:11:17 +00:00
|
|
|
for part in $(PARTS); do $(MAKE) -C $$part distclean; done
|
2007-05-01 19:16:35 +00:00
|
|
|
-rm -f configure.log config.mak config.h
|
2008-04-18 22:49:17 +00:00
|
|
|
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2002-08-07 21:51:10 +00:00
|
|
|
strip:
|
|
|
|
strip -s $(ALL_PRG)
|
|
|
|
|
2008-01-10 18:40:26 +00:00
|
|
|
TAGS:
|
2008-04-08 22:08:23 +00:00
|
|
|
rm -f $@; ( find -name '*.[chS]' -print ) | xargs etags -a
|
2008-01-10 18:40:26 +00:00
|
|
|
|
|
|
|
tags:
|
2008-04-08 22:08:23 +00:00
|
|
|
rm -f $@; ( find -name '*.[chS]' -print ) | xargs ctags -a
|
2008-01-10 18:40:26 +00:00
|
|
|
|
2006-06-22 13:50:26 +00:00
|
|
|
# ./configure must be rerun if it changed
|
2007-08-29 10:12:24 +00:00
|
|
|
config.mak: configure
|
2002-08-10 18:45:31 +00:00
|
|
|
@echo "############################################################"
|
|
|
|
@echo "####### Please run ./configure again - it's changed! #######"
|
|
|
|
@echo "############################################################"
|
|
|
|
|
2006-06-22 13:50:26 +00:00
|
|
|
# rebuild at every config.h/config.mak/Makefile change:
|
|
|
|
version.h: config.h config.mak Makefile
|
2002-05-20 23:27:01 +00:00
|
|
|
./version.sh `$(CC) -dumpversion`
|
2001-04-15 20:31:58 +00:00
|
|
|
|
2004-08-23 00:25:19 +00:00
|
|
|
doxygen:
|
|
|
|
doxygen DOCS/tech/Doxyfile
|
|
|
|
|
|
|
|
doxygen_clean:
|
|
|
|
-rm -rf DOCS/tech/doxygen
|
|
|
|
|
2004-10-20 14:23:33 +00:00
|
|
|
help_mp.h: help/help_mp-en.h $(HELP_FILE)
|
|
|
|
@echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
|
|
|
|
@echo '// See the help/ subdir for the editable files.' >> help_mp.h
|
2008-04-05 16:29:10 +00:00
|
|
|
@echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
|
|
|
|
@echo '#define MPLAYER_HELP_MP_H' >> help_mp.h
|
2005-02-26 13:38:17 +00:00
|
|
|
ifeq ($(CHARSET),)
|
2004-10-20 14:23:33 +00:00
|
|
|
@echo '#include "$(HELP_FILE)"' >> help_mp.h
|
2005-02-26 13:38:17 +00:00
|
|
|
else
|
2006-11-03 21:52:35 +00:00
|
|
|
iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
|
2005-02-26 13:38:17 +00:00
|
|
|
endif
|
2008-04-05 16:29:10 +00:00
|
|
|
@echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
|
2004-10-20 14:23:33 +00:00
|
|
|
|
|
|
|
ifneq ($(HELP_FILE),help/help_mp-en.h)
|
|
|
|
@echo "Adding untranslated messages to help_mp.h"
|
|
|
|
@echo '// untranslated messages from the English master file:' >> help_mp.h
|
|
|
|
@help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
|
|
|
|
endif
|
|
|
|
|
2008-04-22 08:50:38 +00: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) \
|
|
|
|
TOOLS/subrip$(EXESUF) \
|
|
|
|
|
|
|
|
ifdef ARCH_X86
|
|
|
|
TOOLS += TOOLS/modify_reg$(EXESUF)
|
|
|
|
endif
|
|
|
|
|
|
|
|
tools: $(TOOLS)
|
|
|
|
|
|
|
|
TOOLS_COMMON_LIBS = mp_msg.o mp_fifo.o osdep/$(TIMER) osdep/$(GETCH) \
|
|
|
|
-ltermcap -lm
|
|
|
|
|
|
|
|
TOOLS/bmovl-test$(EXESUF): TOOLS/bmovl-test.c -lSDL_image
|
|
|
|
|
|
|
|
TOOLS/subrip$(EXESUF): TOOLS/subrip.c vobsub.o spudec.o unrar_exec.o \
|
|
|
|
libswscale/libswscale.a libavutil/libavutil.a $(TOOLS_COMMON_LIBS)
|
|
|
|
|
|
|
|
TOOLS/vfw2menc$(EXESUF): TOOLS/vfw2menc.c -lwinmm -lole32
|
|
|
|
|
|
|
|
#FIXME: Linking is broken, help welcome.
|
|
|
|
TOOLS/vivodump$(EXESUF): TOOLS/vivodump.c libmpdemux/libmpdemux.a $(TOOLS_COMMON_LIBS)
|
|
|
|
|
|
|
|
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
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o TOOLS/fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# FIXME: netstream linking is a mess that should be fixed properly some day.
|
|
|
|
# It does not work with either GUI, LIVE555, libavformat, cdparanoia enabled.
|
|
|
|
NETSTREAM_DEPS = libmpdemux/libmpdemux.a \
|
|
|
|
stream/stream.a \
|
|
|
|
dvdread/libdvdread.a \
|
|
|
|
libdvdcss/libdvdcss.a \
|
|
|
|
libavutil/libavutil.a \
|
|
|
|
m_option.o \
|
|
|
|
m_struct.o \
|
|
|
|
$(TOOLS_COMMON_LIBS)
|
|
|
|
|
|
|
|
TOOLS/netstream$(EXESUF): TOOLS/netstream.o $(NETSTREAM_DEPS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
toolsclean:
|
|
|
|
rm -f $(TOOLS) TOOLS/fastmem*-* TOOLS/netstream$(EXESUF)
|
|
|
|
rm -f TOOLS/bmovl-test$(EXESUF) TOOLS/vfw2menc$(EXESUF) $(REAL_TARGETS)
|
|
|
|
|
2008-04-22 21:21:46 +00:00
|
|
|
.PHONY: all doxygen *install* recurse strip tools
|