[MPlayer-users] Unrecognized option while compiling mplayer1.0-pre3
Mats Rojestal
mats.rojestal at bredband.net
Wed Feb 18 17:14:10 CET 2004
Hi,
This is configure that adds the -rdynamic flag it thinks you are on a
bsd system
feel free to fix configure so that it does a good job.
Another way is to edit config.mak and remove -rdynamic flag.
Regards,
Mats Röjestål
adila at telaga.cs.ui.ac.id wrote:
>Dear all,
>
>I encountered error while compiling mplayer1.0-pre3 like this:
> "cc: unrecognized option '-rdynamic'"
>
>Is there anyone who knows why this is happened?
>
>I am using cygwin and gcc compiler version 3.3.1.
>For your reference, I attach the files: "config.mak", "config.h",
>and "Makefile" generated after executing configure.
>
>Thanks a lot in advance.
>
>Regards,
>--adila
>
>------------------------------------------------------------------------
>
># -------- Generated by configure -----------
>
>LANG = C
>LANGUAGES = en
>TARGET_OS = CYGWIN
>DESTDIR =
>prefix = $(DESTDIR)/usr/local
>BINDIR = $(DESTDIR)/usr/local/bin
>DATADIR = $(DESTDIR)/usr/local/share/mplayer
>MANDIR = $(DESTDIR)/usr/local/man
>CONFDIR = $(DESTDIR)/usr/local/etc/mplayer
>LIBDIR = $(DESTDIR)/usr/local/lib
>#AR = ar
>CC = cc
>AWK =
>RANLIB = ranlib
>INSTALL = install
># OPTFLAGS = -O4 -march=pentium3 -mcpu=pentium3 -pipe -fomit-frame-pointer -ffast-math
>EXTRA_INC =
>OPTFLAGS = -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ $(EXTRA_INC)
>STRIPBINARIES = yes
>
>
>
>MPLAYER_NETWORK = yes
>STREAMING_LIVE_DOT_COM = no
>MPLAYER_NETWORK_LIB =
>DVBIN = no
>VIDIX = no
>SHARED_PP = no
>CONFIG_PP = yes
>CONFIG_RISKY = yes
>CONFIG_MP3LAME = no
>LIBMENU = no
>I18NLIBS =
>MATROSKA = no
>MATROSKA_LIB =
>
>OPENDIVX = no
>
>UNRARLIB = yes
>HAVE_FFPOSTPROCESS = yes
>PNG = yes
>JPEG = yes
>GIF = yes
>
>EXTRA_LIB =
>Z_LIB = -lz
>HAVE_MLIB = no
>WIN32_LIB = -lgdi32 -lwinmm -ladvapi32 -lole32
>STATIC_LIB =
>
>X11_INC =
>X11DIR =
>
>HAVE_XVMC_ACCEL = no
>
># for libavcodec:
>SRC_PATH=.
>LIBPREF=lib
>LIBSUF=.a
>SLIBPREF=lib
>SLIBSUF=.so
>
># video output
>X_LIB = -lopengl32 -lgdi32
>GGI_LIB =
>MLIB_LIB =
>MLIB_INC =
>DXR2_INC =
>DVB_INC =
>PNG_LIB = -lpng -lz
>JPEG_LIB = -ljpeg
>GIF_LIB = -lungif
>SDL_LIB =
>SVGA_LIB =
>AA_LIB =
>
># audio output
>ALSA_LIB =
>NAS_LIB =
>ARTS_LIB =
>ARTS_INC =
>ESD_LIB =
>ESD_INC =
>SGIAUDIO_LIB =
>
># input/demuxer/codecs
>TERMCAP_LIB = -ltermcap
>LIRC_LIB =
>LIRCC_LIB =
>DVDREAD_LIB = -Llibmpdvdkit2 -lmpdvdkit
>DVDKIT = no
>DVDKIT2 = yes
>DVDKIT_SHARED = no
>SDL_INC =
>W32_DEP = loader/driver.o loader/vfl.o loader/afl.o
>W32_LIB = loader/driver.o loader/vfl.o loader/afl.o
>DS_DEP = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
>DS_LIB = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
>AV_DEP = libavcodec/libavcodec.a
>AV_LIB = libavcodec/libavcodec.a
>FAME = no
>FAME_LIB =
>MP1E_DEP =
>MP1E_LIB =
>ARCH_LIB = -rdynamic
>XVID = no
>XVID_INC =
>XVID_LIB =
>DECORE_LIB =
>MENCODER = yes
>ENCORE_LIB =
>DIRECTFB_INC =
>DIRECTFB_LIB =
>CDPARANOIA_INC =
>CDPARANOIA_LIB =
>FREETYPE_INC =
>FREETYPE_LIB =
>FONTCONFIG_INC =
>FONTCONFIG_LIB =
>FRIBIDI_INC =
>FRIBIDI_LIB =
>LIBLZO_LIB=
>MAD_LIB =
>VORBIS_LIB =
>THEORA_LIB =
>FAAD_LIB =
>INTERNAL_FAAD = yes
>SMBSUPPORT_LIB =
>XMMS_PLUGINS = no
>XMMS_LIB =
>MACOSX = no
>MACOSX_FRAMEWORKS =
>FLAC_LIB = -Llibmpflac -lmpflac
>MPFLAC = full
>
># --- Some stuff for autoconfigure ----
>TARGET_ARCH_X86 = yes
>TARGET_CYGWIN = yes
>TARGET_MINGW32 = no
>TARGET_CPU=686
>TARGET_MMX = yes
>TARGET_MMX2 = yes
>TARGET_3DNOW = no
>TARGET_3DNOWEX = no
>TARGET_SSE = yes
>TARGET_ALTIVEC =
>
># --- GUI stuff ---
>GTKLIB =
>GLIBLIB =
>GTK_LIBS =
>GUI = no
>DEBUG = -DDEBUG
>
>
>
>------------------------------------------------------------------------
>
>/* -------- This file has been automatically generated by configure ---------
> Note: Any changes in it will be lost when you run configure again. */
>
>/* Protect against multiple inclusion */
>#ifndef MPLAYER_CONFIG_H
>#define MPLAYER_CONFIG_H 1
>
>/* use GNU internationalization */
>#undef USE_I18N
>
>/* missing mmap function on libc5 systems */
>#ifndef MAP_FAILED
># define MAP_FAILED ((void *) -1)
>#endif
>
>/* use setlocale() function */
>#define USE_SETLOCALE 1
>
>/* Runtime CPU detection */
>#undef RUNTIME_CPUDETECT
>
>/* Dynamic a/v plugins */
>#undef DYNAMIC_PLUGINS
>
>/* "restrict" keyword */
>#define restrict __restrict
>
>#define PREFIX "/usr/local"
>
>/* define this to use simple idct with patched libavcodec */
>#define SIMPLE_IDCT 1
>
>#define USE_OSD 1
>#define USE_SUB 1
>
>/* enable/disable SIGHANDLER */
>#define ENABLE_SIGHANDLER 1
>
>/* Toggles debugging informations */
>#undef MP_DEBUG
>
>/* Indicates that Ogle's libdvdread is available for DVD playback */
>#define USE_DVDREAD 1
>
>/* Indicates that dvdread is from libmpdvdkit */
>#define USE_MPDVDKIT 2
>
>/* Additional options for libmpdvdkit*/
>#undef DVD_STRUCT_IN_DVD_H
>#undef DVD_STRUCT_IN_LINUX_CDROM_H
>#undef DVD_STRUCT_IN_SYS_CDIO_H
>#undef DVD_STRUCT_IN_SYS_DVDIO_H
>#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H
>#undef HAVE_BSD_DVD_STRUCT
>#undef HAVE_LINUX_DVD_STRUCT
>#undef HAVE_OPENBSD_DVD_STRUCT
>#undef DARWIN_DVD_IOCTL
>#undef SOLARIS_USCSI
>#undef HPUX_SCTL_IO
>#define HAVE_STDDEF_H 1
>
>/* Common data directory (for fonts, etc) */
>#define MPLAYER_DATADIR "/usr/local/share/mplayer"
>#define MPLAYER_CONFDIR "/usr/local/etc/mplayer"
>#define MPLAYER_LIBDIR "/usr/local/lib"
>
>/* Define this to compile stream-caching support, it can be enabled via
> -cache <kilobytes> */
>#define USE_STREAM_CACHE 1
>
>/* Define to include support for XviD/Divx4Linux/OpenDivx */
>#undef USE_DIVX
>
>/* Define to use the new XviD/DivX4Linux library instead of open source OpenDivX */
>/* You have to change DECORE_LIBS in config.mak, too! */
>#undef NEW_DECORE
>
>/* Define if you are using DivX5Linux Decore library */
>#undef DECORE_DIVX5
>
>/* Define if you are using XviD library */
>#undef HAVE_XVID3
>#undef HAVE_XVID4
>#undef DECORE_XVID
>#undef ENCORE_XVID
>
>/* Define to include support for libdv-0.9.5 */
>#undef HAVE_LIBDV095
>
>/* If build mencoder */
>#define HAVE_MENCODER
>
>/* Indicates if XviD/Divx4linux encore is available
> Note: for mencoder */
>#undef HAVE_DIVX4ENCORE
>
>/* Indicates if libmp3lame is available
> Note: for mencoder */
>#undef HAVE_MP3LAME
>#undef CONFIG_MP3LAME
>
>/* Define libmp1e for realtime mpeg encoding (for DXR3 and DVB cards) */
>#undef USE_MP1E
>
>/* Define this to enable avg. byte/sec-based AVI sync method by default:
> (use -bps or -nobps commandline option for run-time method selection)
> -bps gives better sync for vbr mp3 audio, it is now default */
>#define AVI_SYNC_BPS 1
>
>/* Undefine this if you do not want to select mono audio (left or right)
> with a stereo MPEG layer 2/3 audio stream. The command line option
> -stereo has three possible values (0 for stereo, 1 for left-only, 2 for
> right-only), with 0 being the default.
> */
>#define USE_FAKE_MONO 1
>
>/* Undefine this if your sound card driver has no working select().
> If you have kernel Oops, player hangups, or just no audio, you should
> try to recompile MPlayer with this option disabled! */
>#define HAVE_AUDIO_SELECT 1
>
>/* define this to use iconv(3) function to codepage conversions */
>#undef USE_ICONV
>
>/* define this to use RTC (/dev/rtc) for video timers (LINUX only) */
>#undef HAVE_RTC
>
>/* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */
>#define MAX_OUTBURST 65536
>
>/* set up audio OUTBURST. Do not change this! */
>#define OUTBURST 512
>
>/* Define this if your system has the header file for the OSS sound interface */
>#define HAVE_SYS_SOUNDCARD_H 1
>
>/* Define this if your system has the header file for the OSS sound interface
> * in /usr/include */
>#undef HAVE_SOUNDCARD_H
>
>/* Define this if your system has the sysinfo header */
>#undef HAVE_SYS_SYSINFO_H
>
>/* Define this if your system uses ftello() for off_t seeking */
>
>#define HAVE_FTELLO 1
>#ifndef HAVE_FTELLO
># define ftello(a) ftell(a)
>#endif
>
>/* Define this if your system has the "malloc.h" header file */
>#define HAVE_MALLOC_H 1
>
>/* memalign is mapped to malloc if unsupported */
>#define HAVE_MEMALIGN 1
>#ifndef HAVE_MEMALIGN
># define memalign(a,b) malloc(b)
>#endif
>
>/* Define this if your system has the "alloca.h" header file */
>#define HAVE_ALLOCA_H 1
>
>/* Define this if your system has the "sys/mman.h" header file */
>#define HAVE_SYS_MMAN_H 1
>
>/* Define this if you have the elf dynamic linker -ldl library */
>#define HAVE_LIBDL 1
>
>/* Define this if you have the kstat kernel statistics library */
>#undef HAVE_LIBKSTAT
>
>/* Define this if you have zlib */
>#define HAVE_ZLIB 1
>
>/* Define this if you have shm support */
>#define HAVE_SHM 1
>
>/* Define this if your system has scandir & alphasort */
>#define HAVE_SCANDIR 1
>
>/* Define this if your system has strsep */
>#define HAVE_STRSEP 1
>
>/* Define this if your system has vsscanf */
>#define HAVE_VSSCANF 1
>
>/* Define this if your system has no posix select */
>#undef HAVE_NO_POSIX_SELECT
>
>/* Define this if your system has gettimeofday */
>#define HAVE_GETTIMEOFDAY 1
>
>/* Define this if your system has glob */
>#define HAVE_GLOB 1
>
>/* LIRC (remote control, see www.lirc.org) support: */
>#undef HAVE_LIRC
>
>/*
> * LIRCCD (LIRC client daemon)
> * See http://www.dolda2000.cjb.net/~fredrik/lirccd/
> */
>#undef HAVE_LIRCC
>
>/*
> * FLAC decoding
> */
>#define HAVE_FLAC 1
>#define USE_MPFLAC_DECODER 1
>
>/* DVD navigation support using libdvdnav */
>
>
>
>/* Define this to enable MPEG 1/2 image postprocessing (requires a FAST CPU!) */
>#define MPEG12_POSTPROC 1
>
>/* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
>#define FF_POSTPROCESS 1
>
>/* Define to include support for OpenDivx postprocessing */
>#undef HAVE_ODIVX_POSTPROCESS
>
>/* Win32 DLL support */
>#define USE_WIN32DLL 1
>#define WIN32_PATH "/home/Administrator/extralite"
>
>/* DirectShow support */
>#define USE_DIRECTSHOW 1
>
>/* Mac OS X specific features */
>#undef MACOSX
>
>/* Build our Win32-loader */
>#undef WIN32_LOADER
>
>/* ffmpeg's libavcodec support (requires libavcodec source) */
>#define USE_LIBAVCODEC 1
>#undef USE_LIBAVCODEC_SO
>
>/* risky codecs */
>#define CONFIG_RISKY 1
>
>/* Use libavcodec's decoders */
>#define CONFIG_DECODERS 1
>/* Use libavcodec's encoders */
>#define CONFIG_ENCODERS 1
>
>/* Use codec libs included in mplayer CVS / source dist: */
>#define USE_MP3LIB
>#define USE_LIBA52
>#define USE_LIBMPEG2
>
>/* Use the SVQ1 decoder in libmpcodecs - we don't want/need it with libavcodec */
>#ifndef USE_LIBAVCODEC
>#define USE_SVQ1
>#endif
>
>/* Use libfame encoder filter */
>#undef USE_LIBFAME
>
>/* XAnim DLL support */
>#define USE_XANIM 1
>/* Default search path */
>#define XACODEC_PATH "/home/Administrator/extralite"
>
>/* RealPlayer DLL support */
>#define USE_REALCODECS 1
>/* Default search path */
>#define REALCODEC_PATH "/home/Administrator/extralite"
>
>/* LIVE.COM Streaming Media library support */
>#undef STREAMING_LIVE_DOT_COM
>
>/* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
>#define USE_FASTMEMCPY 1
>
>/* Use unrarlib for Vobsubs */
>#define USE_UNRARLIB 1
>
>/* gui support, please do not edit this option */
>#undef HAVE_NEW_GUI
>
>/* Audio output drivers */
>#define USE_OSS_AUDIO 1
>#define PATH_DEV_DSP "/dev/dsp"
>#define PATH_DEV_MIXER "/dev/mixer"
>#undef HAVE_ALSA5
>#undef HAVE_ALSA9
>
>#undef USE_ESD
>#undef HAVE_ESD_LATENCY
>#undef HAVE_SYS_ASOUNDLIB_H
>#undef HAVE_ALSA_ASOUNDLIB_H
>#undef USE_SUN_AUDIO
>#undef USE_SGI_AUDIO
>#define HAVE_WIN32WAVEOUT 1
>#undef HAVE_NAS
>
>/* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */
>#undef FAST_OSD
>#undef FAST_OSD_TABLE
>
>/* Enable TV Interface support */
>#define USE_TV 1
>
>/* Enable EDL support */
>#define USE_EDL
>
>/* Enable Video 4 Linux TV interface support */
>#undef HAVE_TV_V4L
>
>/* Enable Video 4 Linux 2 TV interface support */
>#undef HAVE_TV_V4L2
>
>/* Enable *BSD BrookTree TV interface support */
>#undef HAVE_TV_BSDBT848
>
>/* Define if your processor stores words with the most significant
> byte first (like Motorola and SPARC, unlike Intel and VAX). */
>#undef WORDS_BIGENDIAN
>
>#define ARCH_X86 1
>
>/* libmpeg2 wants ARCH_PPC and the rest of mplayer use ARCH_POWERPC,
> * define ARCH_PPC if ARCH_POWERPC is set to cope with that.
> */
>#ifdef ARCH_POWERPC
>#define ARCH_PPC 1
>#endif
>
>/* the same issue as with ARCH_POWERPC but with ffmpeg/libavcodec */
>#ifdef ARCH_ARMV4L
>#define ARCH_ARM 1
>#endif
>
>/* only gcc3 can compile mvi instructions */
>
>
>/* Define this for Cygwin build for win32 */
>#define WIN32
>
>/* Define this to any prefered value from 386 up to infinity with step 100 */
>#define __CPU__ 686
>
>#define MP_WORDSIZE 32
>
>#undef TARGET_LINUX
>
>#undef HAVE_VCD
>
>#ifdef sun
>#define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
>#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
>#elif defined(HPUX)
>#define DEFAULT_CDROM_DEVICE "/dev/cdrom"
>#define DEFAULT_DVD_DEVICE "/dev/dvd"
>#elif defined(WIN32)
>#define DEFAULT_CDROM_DEVICE "D:"
>#define DEFAULT_DVD_DEVICE "D:"
>#elif defined(SYS_DARWIN)
>#define DEFAULT_CDROM_DEVICE "/dev/rdiskN"
>#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
>#else
>#define DEFAULT_CDROM_DEVICE "/dev/cdrom"
>#define DEFAULT_DVD_DEVICE "/dev/dvd"
>#endif
>
>
>/*----------------------------------------------------------------------------
>**
>** NOTE: Instead of modifying these definitions here, use the
>** --enable/--disable options of the ./configure script!
>** See ./configure --help for details.
>**
>*---------------------------------------------------------------------------*/
>
>/* C99 lrintf function available */
>#define HAVE_LRINTF 1
>
>/* int_fastXY_t emulation */
>
>
>/* nanosleep support */
>#define HAVE_NANOSLEEP 1
>
>/* SMB support */
>#undef LIBSMBCLIENT
>
>/* termcap flag for getch2.c */
>#define USE_TERMCAP 1
>
>/* termios flag for getch2.c */
>#define HAVE_TERMIOS 1
>#undef HAVE_TERMIOS_H
>#define HAVE_SYS_TERMIOS_H 1
>
>/* enable PNG support */
>#define HAVE_PNG 1
>
>/* enable JPEG support */
>#define HAVE_JPEG 1
>
>/* enable GIF support */
>#define HAVE_GIF 1
>#undef HAVE_GIF_4
>#undef HAVE_GIF_TVT_HACK
>
>/* enable FreeType support */
>#undef HAVE_FREETYPE
>
>/* enable Fontconfig support */
>#undef HAVE_FONTCONFIG
>
>/* enable FriBiDi usage */
>#undef USE_FRIBIDI
>
>/* liblzo support */
>#undef USE_LIBLZO
>
>/* libmad support */
>#undef USE_LIBMAD
>
>/* enable OggVorbis support */
>#undef HAVE_OGGVORBIS
>
>/* enable Tremor as vorbis decoder */
>#undef TREMOR
>
>/* enable OggTheora support */
>#undef HAVE_OGGTHEORA
>
>/* enable Matroska support */
>#undef HAVE_MATROSKA
>
>/* enable FAAD (AAC) support */
>#define HAVE_FAAD 1
>#define USE_INTERNAL_FAAD 1
>#define FAADVERSION 20
>
>/* enable network */
>#define MPLAYER_NETWORK 1
>
>/* enable ftp support */
>#define HAVE_FTP 1
>
>/* enable winsock2 instead of Unix functions*/
>#undef HAVE_WINSOCK2
>
>/* define this to use inet_aton() instead of inet_pton() */
>#define USE_ATON 1
>
>/* enables / disables cdparanoia support */
>#undef HAVE_CDDA
>
>/* enables / disables VIDIX usage */
>#undef CONFIG_VIDIX
>
>/* enables / disables new input joystick support */
>#undef HAVE_JOYSTICK
>
>/* enables / disables QTX codecs */
>#define USE_QTX_CODECS 1
>
>/* enables / disables osd menu */
>#undef HAVE_MENU
>
>/* enables / disables subtitles sorting */
>#define USE_SORTSUB 1
>
>/* XMMS input plugin support */
>#undef HAVE_XMMS
>#define XMMS_INPUT_PLUGIN_DIR ""
>
>/* enables inet6 support */
>#undef HAVE_AF_INET6
>
>/* do we have gethostbyname2? */
>#undef HAVE_GETHOSTBYNAME2
>
>/* Extension defines */
>#undef HAVE_3DNOW // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)
>#undef HAVE_3DNOWEX // only define if you have 3DNOWEX (AMD Athlon, etc.)
>#define HAVE_MMX 1 // only define if you have MMX (newer x86 chips, not P54C/PPro)
>#define HAVE_MMX2 1 // only define if you have MMX2 (Athlon/PIII/4/CelII)
>#define HAVE_SSE 1 // only define if you have SSE (Intel Pentium III/4 or Celeron II)
>#undef HAVE_SSE2 // only define if you have SSE2 (Intel Pentium 4)
> // only define if you have Altivec (G4)
>
>#ifdef HAVE_MMX
>#define USE_MMX_IDCT 1
>#endif
>
> // enables usage of altivec.h
>
>
>#undef HAVE_MLIB // Sun mediaLib, available only on solaris
>
>/* libmpeg2 uses a different feature test macro for mediaLib */
>#ifdef HAVE_MLIB
>#define LIBMPEG2_MLIB 1
>#endif
>
>/* libvo options */
>#define SCREEN_SIZE_X 1
>#define SCREEN_SIZE_Y 1
>#undef HAVE_X11
>#undef HAVE_XV
>#undef HAVE_XVMC
>#undef HAVE_XF86VM
>#undef HAVE_XINERAMA
>#define HAVE_GL 1
>#define GL_WIN32 1
>#undef HAVE_DGA
>#undef HAVE_DGA2
>#undef HAVE_SDL
>/* defined for SDLlib with keyrepeat bugs (before 1.2.1) */
>
>#define HAVE_DIRECTX 1
>#undef HAVE_GGI
>#undef HAVE_3DFX
>#undef HAVE_TDFXFB
>#undef HAVE_TDFX_VID
>#undef HAVE_DIRECTFB
>
>#undef HAVE_ZR
>#undef HAVE_BL
>#undef HAVE_MGA
>#undef HAVE_XMGA
>
>#undef HAVE_FBDEV
>#undef HAVE_DXR2
>#undef HAVE_DXR3
>#undef HAVE_DVB
>#undef HAS_DVBIN_SUPPORT
>#undef HAVE_SVGALIB
>#undef HAVE_VESA
>#undef HAVE_XDPMS
>#undef HAVE_AA
>#define HAVE_TGA 1
>
>/* used by GUI: */
>
>
>#if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV)
>#define X11_FULLSCREEN 1
>#endif
>
>#endif /* MPLAYER_CONFIG_H */
>
>
>------------------------------------------------------------------------
>
># 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
># * DVD support
>
>include config.mak
>
>PRG = mplayer
>PRG_CFG = codec-cfg
>PRG_MENCODER = mencoder
>
># Do not strip the binaries at installation
>ifeq ($(STRIPBINARIES),yes)
>INSTALLSTRIP = -s
>endif
>
># These subdirectories require installation due to binaries within them.
>ifeq ($(VIDIX),yes)
>SUBDIRS += libdha vidix
>DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
>endif
>
>SRCS_COMMON = cpudetect.c codec-cfg.c spudec.c playtree.c playtreeparser.c asxparser.c vobsub.c subreader.c sub_cc.c find_sub.c m_config.c m_option.c parser-cfg.c m_struct.c
>SRCS_MENCODER = mencoder.c mp_msg-mencoder.c $(SRCS_COMMON) libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/osd.c libvo/sub.c libvo/font_load.c libvo/font_load_ft.c xvid_vbr.c parser-mecmd.c
>SRCS_MPLAYER = mplayer.c mp_msg.c $(SRCS_COMMON) mixer.c parser-mpcmd.c
>
>ifeq ($(UNRARLIB),yes)
>SRCS_COMMON += unrarlib.c
>endif
>
>OBJS_MENCODER = $(SRCS_MENCODER:.c=.o)
>OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o)
>
>VO_LIBS = $(AA_LIB) $(X_LIB) $(SDL_LIB) $(GGI_LIB) $(MP1E_LIB) $(MLIB_LIB) $(SVGA_LIB) $(DIRECTFB_LIB)
>AO_LIBS = $(ARTS_LIB) $(ESD_LIB) $(NAS_LIB) $(SGIAUDIO_LIB)
>CODEC_LIBS = $(AV_LIB) $(FAME_LIB) $(MAD_LIB) $(VORBIS_LIB) $(THEORA_LIB) $(FAAD_LIB) $(LIBLZO_LIB) $(DECORE_LIB) $(XVID_LIB) $(PNG_LIB) $(Z_LIB) $(JPEG_LIB) $(ALSA_LIB) $(XMMS_LIB) $(MATROSKA_LIB)
>COMMON_LIBS = libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(DVDREAD_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) $(FLAC_LIB) $(FONTCONFIG_LIB)
>
>CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) $(XVID_INC) $(FONTCONFIG_INC) # -Wall
>
>PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers osdep postproc input libvo libaf
>ifeq ($(INTERNAL_FAAD),yes)
>COMMON_LIBS += libfaad2/libfaad2.a
>PARTS += libfaad2
>endif
>ifeq ($(VIDIX),yes)
>PARTS += libdha vidix
>endif
>ifeq ($(FAME),yes)
>PARTS += libfame
>endif
>ifeq ($(DVDKIT2),yes)
>PARTS += libmpdvdkit2
>else
>ifeq ($(DVDKIT),yes)
>PARTS += libmpdvdkit
>endif
>endif
>ifeq ($(GUI),yes)
>PARTS += Gui
>endif
>ifneq ($(W32_LIB),)
>PARTS += loader loader/dshow loader/dmo
>endif
>ifeq ($(LIBMENU),yes)
>PARTS += libmenu
>endif
>ifneq ($(MPFLAC),none)
>PARTS += libmpflac
>endif
>
>ALL_PRG = $(PRG)
>ifeq ($(MENCODER),yes)
>ALL_PRG += $(PRG_MENCODER)
>endif
>
>COMMON_DEPS = $(W32_DEP) $(DS_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a
>
>ifeq ($(INTERNAL_FAAD),yes)
>COMMON_DEPS += libfaad2/libfaad2.a
>endif
>ifeq ($(VIDIX),yes)
>COMMON_DEPS += libdha/libdha.so vidix/libvidix.a
>endif
>ifeq ($(FAME),yes)
>COMMON_DEPS += libfame/libfame.a
>endif
>ifeq ($(DVDKIT2),yes)
>ifeq ($(DVDKIT_SHARED),yes)
>COMMON_DEPS += libmpdvdkit2/libmpdvdkit.so
>else
>COMMON_DEPS += libmpdvdkit2/libmpdvdkit.a
>endif
>endif
>
>ifeq ($(SHARED_PP),yes)
>COMMON_DEPS += libavcodec/libpostproc/libpostproc.so
>COMMON_LIBS += libavcodec/libpostproc/libpostproc.so
>endif
>
>ifeq ($(GUI),yes)
>COMMON_DEPS += Gui/libgui.a
>GUI_LIBS = Gui/libgui.a
>endif
>
>ifneq ($(MPFLAC),none)
>COMMON_DEPS += libmpflac/libmpflac.a
>endif
>
>.SUFFIXES: .cc .c .o
>
># .PHONY: $(COMMON_DEPS)
>
>all: version.h $(ALL_PRG)
>
>.c.o:
> $(CC) -c $(CFLAGS) -o $@ $<
>
>libaf/libaf.a:
> $(MAKE) -C libaf
>
>libmpdvdkit2/libmpdvdkit.a:
> $(MAKE) -C libmpdvdkit2
>
>libmpdvdkit2/libmpdvdkit.so:
> $(MAKE) -C libmpdvdkit2 libmpdvdkit.so
>
>loader/libloader.a:
> $(MAKE) -C loader
>
>libfame/libfame.a:
> $(MAKE) -C libfame
>
>libmpdemux/libmpdemux.a:
> $(MAKE) -C libmpdemux
>
>libmpcodecs/libmpcodecs.a:
> $(MAKE) -C libmpcodecs
>
>loader/dshow/libDS_Filter.a:
> $(MAKE) -C loader/dshow
>
>loader/dmo/libDMO_Filter.a:
> $(MAKE) -C loader/dmo
>
>libavcodec/libavcodec.a:
> $(MAKE) -C libavcodec LIBPREF=lib LIBSUF=.a
>
>libmpeg2/libmpeg2.a:
> $(MAKE) -C libmpeg2
>
>libvo/libvo.a:
> $(MAKE) -C libvo
>
>libao2/libao2.a:
> $(MAKE) -C libao2
>
>liba52/liba52.a:
> $(MAKE) -C liba52
>
>libfaad2/libfaad2.a:
> $(MAKE) -C libfaad2
>
>mp3lib/libMP3.a:
> $(MAKE) -C mp3lib
>
>libdha/libdha.so:
> $(MAKE) -C libdha
>
>vidix/libvidix.a:
> $(MAKE) -C vidix
>
>Gui/libgui.a:
> $(MAKE) -C Gui
>
>osdep/libosdep.a:
> $(MAKE) -C osdep
>
>postproc/libswscale.a:
> $(MAKE) -C postproc
>
>input/libinput.a:
> $(MAKE) -C input
>
>libmenu/libmenu.a:
> $(MAKE) -C libmenu
>
>libavcodec/libpostproc/libpostproc.so:
> $(MAKE) -C libavcodec/libpostproc
>
>libmpflac/libmpflac.a:
> $(MAKE) -C libmpflac
>
>MPLAYER_DEP = $(OBJS_MPLAYER) $(COMMON_DEPS)
>
>ifeq ($(LIBMENU),yes)
>MPLAYER_DEP += libmenu/libmenu.a
>MENU_LIBS = libmenu/libmenu.a
>PARTS += libmenu
>else
>MENU_LIBS =
>endif
>
>MENCODER_DEP = $(OBJS_MENCODER) $(COMMON_DEPS)
>
>ifeq ($(VIDIX),yes)
>VIDIX_LIBS = vidix/libvidix.a
>else
>VIDIX_LIBS =
>endif
>
>$(PRG): $(MPLAYER_DEP)
> ./darwinfixlib.sh $(MPLAYER_DEP)
> $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) $(I18NLIBS) -lm
>
>mplayer.exe.spec.c: libmpcodecs/libmpcodecs.a
> winebuild -fPIC -o mplayer.exe.spec.c -exe mplayer.exe -mcui \
> libmpcodecs/ad_qtaudio.o libmpcodecs/vd_qtvideo.o \
> -L/usr/local/lib/wine -lkernel32
>
>mplayer.exe.so: $(MPLAYER_DEP) mplayer.exe.spec.c
> $(CC) $(CFLAGS) -Wall -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o mplayer.exe.so $(OBJS_MPLAYER) mplayer.exe.spec.c libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lwine -lm
>
>mplayer_wine.so: $(MPLAYER_DEP)
> ./darwinfixlib.sh $(MPLAYER_DEP)
> $(CC) $(CFLAGS) -shared -Wl,-Bsymbolic -o mplayer_wine.so mplayer_wine.spec.c $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) -lwine $(ARCH_LIB) -lm
>
>ifeq ($(MENCODER),yes)
>$(PRG_MENCODER): $(MENCODER_DEP)
> ./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a
> $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(ENCORE_LIB) $(COMMON_LIBS) $(EXTRA_LIB) $(MLIB_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(ARCH_LIB) $(I18NLIBS) -lm
>endif
>
>codecs.conf.h: $(PRG_CFG)
> ./$(PRG_CFG) ./etc/codecs.conf > $@
>
>codec-cfg.o: codecs.conf.h
>
># Every mplayer dependency depends on version.h, to force building version.h
># first (in serial mode) before any other of the dependencies for a parallel make
># run. This is necessary, because the make rule for version.h removes objects
># in a recursive "make distclean" and we must wait for this "make distclean" to
># finish before we can start building new object files.
>$(MPLAYER_DEP): version.h
>$(MENCODER_DEP): version.h
>
>$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
> $(CC) $(CFLAGS) -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
>
>install: $(ALL_PRG)
>ifeq ($(VIDIX),yes)
> $(DO_MAKE)
>endif
> if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
> $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG)
>ifeq ($(GUI),yes)
> -ln -sf $(PRG) $(BINDIR)/gmplayer
>endif
> if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
> for i in $(LANGUAGES); do \
> if test "$$i" = en ; then \
> $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \
> else \
> mkdir -p $(MANDIR)/$$i/man1 ; \
> $(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \
> fi ; \
> done
>ifeq ($(MENCODER),yes)
> $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
> for i in $(LANGUAGES); do \
> if test "$$i" = en ; then \
> ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1 ; \
> else \
> ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \
> fi ; \
> done
>endif
> @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
> @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi
> @if test ! -f $(DATADIR)/font/font.desc ; then \
> echo "*** Download font at http://www.mplayerhq.hu/homepage/dload.html" ; \
> echo "*** for OSD/Subtitles support and extract to $(DATADIR)/font/" ; \
> fi
>ifeq ($(GUI),yes)
> @if test ! -d $(DATADIR)/Skin ; then mkdir -p $(DATADIR)/Skin ; fi
> @echo "*** Download skin(s) at http://www.mplayerhq.hu/homepage/dload.html"
> @echo "*** for GUI, and extract to $(DATADIR)/Skin/"
>endif
> @if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi
> @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi
>ifeq ($(DVDKIT_SHARED),yes)
>ifeq ($(DVDKIT2),yes)
> if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi
> $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit2/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so
>else
>ifeq ($(DVDKIT),yes)
> if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi
> $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so
>endif
>endif
>endif
>
>uninstall:
> -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1
> -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1
> @echo "Uninstall completed"
>
>clean:
> -rm -f *.o *~ $(OBJS) codecs.conf.h
>
>distclean:
> -rm -f *~ $(PRG) $(PRG_MENCODER) $(PRG_CFG) $(OBJS)
> -rm -f *.o *.a .depend configure.log codecs.conf.h
> @for a in $(PARTS); do $(MAKE) -C $$a distclean; done
> -$(MAKE) -C libavcodec distclean LIBPREF=lib LIBSUF=.a
>
>strip:
> strip -s $(ALL_PRG)
>
>dep: depend
>
>depend:
> ./version.sh `$(CC) -dumpversion`
> $(CC) -MM $(CFLAGS) -DCODECS2HTML mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
> @for a in $(PARTS); do $(MAKE) -C $$a dep; done
>
># ./configure must be run if it changed in CVS
>config.h: configure
> @echo "############################################################"
> @echo "####### Please run ./configure again - it's changed! #######"
> @echo "############################################################"
>ifeq ($(wildcard .developer),)
> @exit 1
>endif
>
># do not rebuild after cvs commits if .developer file is present!
>
># rebuild at every config.h/config.mak change:
>version.h:
> ./version.sh `$(CC) -dumpversion`
>ifeq ($(wildcard .developer),)
> $(MAKE) distclean
>endif
> $(MAKE) depend
>
># rebuild at every CVS update or config/makefile change:
>ifeq ($(wildcard .developer),)
>ifneq ($(wildcard CVS/Entries),)
>version.h: CVS/Entries
>endif
>version.h: config.h config.mak Makefile
>endif
>
>#
># include dependencies to get make to recurse into lib dirs,
># if the user desires such behavior
>#
>ifneq ($(wildcard .libdeps),)
>include .libdeps
>endif
>
>#
># include dependency files if they exist
>#
>ifneq ($(wildcard .depend),)
>include .depend
>endif
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>MPlayer-users mailing list
>MPlayer-users at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
More information about the MPlayer-users
mailing list