diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-26 23:15:58 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-26 23:15:58 +0000 |
commit | 69cfcfe30160551757be7d46e574e3549ba8494a (patch) | |
tree | 49c3584d0813ca6f1fc9c35b394937c0a7f9e0cb | |
parent | e3547e7c188359c584b8721e85b408e86fc79ba1 (diff) | |
download | mpv-69cfcfe30160551757be7d46e574e3549ba8494a.tar.bz2 mpv-69cfcfe30160551757be7d46e574e3549ba8494a.tar.xz |
OPTFLAGS vs. INCLUDES cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1235 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 19 | ||||
-rw-r--r-- | help_avp.h | 32 | ||||
-rw-r--r-- | libao2/Makefile | 3 | ||||
-rw-r--r-- | libmpeg2/Makefile | 2 | ||||
-rw-r--r-- | libvo/Makefile | 2 | ||||
-rw-r--r-- | loader/dshow/Makefile | 4 | ||||
-rw-r--r-- | mp3lib/Makefile | 2 |
8 files changed, 19 insertions, 47 deletions
@@ -18,7 +18,7 @@ BINDIR = ${prefix}/bin # BINDIR = /usr/local/bin SRCS = find_sub.c aviprint.c dll_init.c dec_audio.c aviwrite.c aviheader.c asfheader.c demux_avi.c demux_asf.c demux_mpg.c demuxer.c stream.c codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c dvdauth.c spudec.c $(STREAM_SRCS) OBJS = $(SRCS:.c=.o) -CFLAGS = -Iloader -Ilibvo $(OPTFLAGS) $(CSS_INC) # -Wall +CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo $(CSS_INC) $(EXTRA_INC) # -Wall A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) VO_LIBS = -Llibvo -lvo $(X_LIBS) @@ -1095,6 +1095,7 @@ echo "Checking for sse support ... $_sse" echo "Checking for mtrr support ... $_mtrr" echo "Screen size ... ${_x}x${_y}" echo "Checking for X11 libs ... $_x11libdir" +echo "Checking for X11 headers ... $_x11incdir" echo "Checking mga_vid device ... $_mga" echo "Checking for xmga ... $_xmga" echo "Checking for SDL ... $_sdl" @@ -1115,6 +1116,8 @@ echo "Checking for DeCSS support ... $_css" echo "Checking for PNG support ... $_png" echo "Checking for DirectShow ... $_dshow" echo "Checking for fastmemcpy ... $_fastmemcpy" +echo "Extra libs : $_extralibdir" +echo "Extra headers : $_extraincdir" # write conf files. _streamingdef='#undef STREAMING' @@ -1287,26 +1290,28 @@ cat > $MCONF << EOF # -------- Generated by ./configure ----------- +prefix = $_prefix AR=ar CC=$_cc -X11DIR=$_x11libdir # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math -OPTFLAGS=$CFLAGS $_x11incdir $_extraincdir -# LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_ggilib $_dgalib $_x11lib $_xvlib -X_LIBS=$_x11libdir $_extralibdir $_gllib $_sdllib $_ggilib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib +OPTFLAGS=$CFLAGS +EXTRA_INC=$_extraincdir +WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" + +X11_INC=$_x11incdir +X11DIR=$_x11libdir +X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib + TERMCAP_LIB=$_libtermcap XMM_LIBS = $_xmmplibs LIRC_LIBS = $_lirclibs CSS_LIB = $_csslib CSS_INC = $_cssinc -SDL_LIB = $_sdllib SDL_INC = $_sdlcflags -WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" DS_DEP = $_dshowdep DS_LIB = $_dshowlib ALSA_LIB = $_alsalib ESD_LIB = $_esdlib -prefix = $_prefix ARCH_LIBS = $_archlibs STREAM_SRCS = $_streamingsrcs diff --git a/help_avp.h b/help_avp.h deleted file mode 100644 index 6fc1a76521..0000000000 --- a/help_avp.h +++ /dev/null @@ -1,32 +0,0 @@ -static char* banner_text= -"\n\n" -"MPlayer v0.10 [AVI parser] (C) 2000. Arpad Gereoffy <arpi@esp-team.scene.hu>\n" -"\n"; - -static char* help_text= -"Usage: aviparse [options] [path/]name\n" -"\n" -" Options:\n" -//" -o <driver> select output driver (see '-o help' for driver list)\n" -//" -vcd <track> play video cd track from device instead of plain file\n" -//" -bg play in background (X11 only!)\n" -//" -sb <bytepos> seek to byte position\n" -//" -ss <timepos> seek to second position (with timestamp)\n" -//" -nosound don't play sound\n" -//" -abs <bytes> audio buffer size (in bytes, default: measuring)\n" -//" -delay <secs> audio delay in seconds (may be +/- float value)\n" -//" -alsa enable timing code (works better with ALSA)\n" -" -aid <1-99> select audio channel\n" -" -afile <name> dump raw audio data to file\n" -" -vfile <name> dump raw video data to file\n" -//" -vid <0-15> select video channel\n" -//" -fps <value> force frame rate (if value is wrong in mpeg header)\n" -//" -mc <s/5f> maximum sync correction per 5 frames (in seconds)\n" -//" -afm <1-3> force audio format 1:MPEG 2:PCM 3:AC3 4:Win32\n" -//"\n" -//" Keys:\n" -//" <- or -> seek backward/forward 10 seconds\n" -//" up or down seek backward/forward 1 minute\n" -//" p or SPACE pause movie (press any key to continue)\n" -//" q or ^C stop playing and quit program\n" -"\n"; diff --git a/libao2/Makefile b/libao2/Makefile index ead357c881..07196ddbef 100644 --- a/libao2/Makefile +++ b/libao2/Makefile @@ -7,8 +7,7 @@ LIBNAME = libao2.a SRCS=audio_out.c ao_null.c ao_pcm.c $(OPTIONAL_SRCS) OBJS=$(SRCS:.c=.o) -CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) -# -I/usr/X11R6/include/ +CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(EXTRA_INC) .SUFFIXES: .c .o diff --git a/libmpeg2/Makefile b/libmpeg2/Makefile index 8a6ecbd1a3..d3b9630b05 100644 --- a/libmpeg2/Makefile +++ b/libmpeg2/Makefile @@ -5,7 +5,7 @@ include ../config.mak SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c OBJS = $(SRCS:.c=.o) -INCLUDE = -I. -I../libvo -I.. +INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY .SUFFIXES: .c .o diff --git a/libvo/Makefile b/libvo/Makefile index 55861d43ca..50bac61881 100644 --- a/libvo/Makefile +++ b/libvo/Makefile @@ -6,7 +6,7 @@ LIBNAME = libvo.a SRCS=aclib.c osd.c font_load.c rgb15to16mmx.c yuv2rgb_mmx.c yuv2rgb.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_odivx.c x11_common.c $(OPTIONAL_SRCS) OBJS=$(SRCS:.c=.o) -CFLAGS = $(OPTFLAGS) -I. -I.. -DMPG12PLAY $(SDL_INC) +CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) -DMPG12PLAY # -I/usr/X11R6/include/ .SUFFIXES: .c .o diff --git a/loader/dshow/Makefile b/loader/dshow/Makefile index 1ca699f140..a2e787ff8f 100644 --- a/loader/dshow/Makefile +++ b/loader/dshow/Makefile @@ -8,8 +8,8 @@ OBJS = $(SRCS:.cpp=.o) # OBJS = DS_AudioDec.o DS_VideoDec.o DS_Filter.o allocator.o cmediasample.o guids.o inputpin.o outputpin.o -INCLUDE = -I. -I.. -I../wine -CFLAGS = $(INCLUDE) $(OPTFLAGS) -fexceptions +INCLUDE = -I. -I.. -I../wine $(EXTRA_INC) +CFLAGS = $(OPTFLAGS) $(INCLUDE) -fexceptions .SUFFIXES: .cpp .o diff --git a/mp3lib/Makefile b/mp3lib/Makefile index 57797da46b..b82aa6215f 100644 --- a/mp3lib/Makefile +++ b/mp3lib/Makefile @@ -4,7 +4,7 @@ include config.mak SRCS = sr1.c d_cpu.s decode_i586.s $(OPTIONAL_SRCS) OBJS = sr1.o d_cpu.o decode_i586.o $(OPTIONAL_OBJS) # OBJS = $(SRCS:.c,.s=.o) -CFLAGS = $(OPTFLAGS) +CFLAGS = $(OPTFLAGS) $(EXTRA_INC) .SUFFIXES: .c .o |