@ -9,75 +9,24 @@
# Configuration
################################################################################
# Audio output settings
AOUT += dsp
#AOUT += esd
# Not yet supported
#AOUT += alsa
# Fallback method that should always work
AOUT += dummy
# Video output settings
VOUT += x11
#VOUT += fb
#VOUT += ggi
#VOUT += glide
#VOUT += gnome
# Not yet supported
#VOUT += mga
#VOUT += beos
#VOUT += dga
# Fallback method that should always work
VOUT += dummy
# Interface settings
INTF += x11
#INTF += fb
#INTF += ggi
#INTF += glide
#INTF += gnome
# Not yet supported
#INTF += mga
#INTF += beos
#INTF += dga
# Fallback method that should always work
INTF += dummy
# Target architecture
ARCH = X86
#ARCH=PPC
#ARCH=SPARC
# Target operating system
SYS = LINUX
#SYS=GNU
#SYS=BSD
#SYS=BEOS
# For x86 architecture, choose MMX support
ARCH += MMX
# For x86 architecture, optimize for Pentium Pro
# (choose NO if you get `Invalid instruction' errors)
ARCH += PPRO
# Decoder choice - ?? old decoder will be removed soon
#DECODER=old
DECODER = new
# Debugging mode on or off (set to 1 to activate)
DEBUG = 0
#----------------- do not change anything below this line ----------------------
prefix = @prefix@
SYS = @SYS@
ARCH = @ARCH@
AOUT = @AOUT@
VOUT = @VOUT@
INTF = @VOUT@
SNAPSHOTDIR = vlc-@VLC_VERSION@
INSTALL = @INSTALL@
prefix = @prefix@
#----------------- do not change anything below this line ----------------------
################################################################################
# Configuration pre-processing
################################################################################
SNAPSHOTDIR = vlc-@VLC_VERSION@
# PROGRAM_OPTIONS is an identification string of the compilation options
PROGRAM_OPTIONS = $( SYS) $( ARCH)
i f e q ( $( DEBUG ) , 1 )
@ -92,9 +41,8 @@ PROGRAM_BUILD = `date` $(USER)
#PROGRAM_BUILD = `date` $(USER)@`hostname`
# DEFINE will contain some of the constants definitions decided in Makefile,
# including ARCH_xx and SYS_xx. It will be passed to C compiler.
DEFINE += -DARCH_$( shell echo $( ARCH) | cut -f1 -d' ' )
DEFINE += -DSYS_$( SYS)
# including SYS_xx. It will be passed to C compiler.
DEFINE += -DSYS_` echo $( SYS) | sed 's/-.*//' | tr a-z A-Z`
DEFINE += -DPLUGIN_PATH= " \" $( prefix) /lib/videolan/vlc\" "
DEFINE += -DDATA_PATH= " \" $( prefix) /share/videolan/vlc\" "
#DEFINE += -DPROGRAM_OPTIONS="\"$(shell echo $(PROGRAM_OPTIONS) | tr 'A-Z' 'a-z')\""
@ -117,20 +65,20 @@ INCLUDE += -Iinclude -I/usr/local/include -I/usr/X11R6/include
# Libraries
#
i f e q ( $( SYS ) , G N U )
i f e q ( $( SYS ) , g n u )
LIB += -lthreads -ldl
e n d i f
i f e q ( $( SYS ) , B S D )
i f n e q ( , $( findstring bsd ,$ ( SYS ) ) )
LIB += -pthread -lgnugetopt
LIB += -L/usr/local/lib
e n d i f
i f e q ( $( SYS ) , L I N U X )
i f n e q ( , $( findstring linux ,$ ( SYS ) ) )
LIB += -lpthread -ldl
e n d i f
i f e q ( $( SYS ) , B E O S )
i f e q ( $( SYS ) , b e o s )
LIB += -lbe -lroot -lgame
e l s e
LIB += -lm
@ -153,28 +101,28 @@ CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-global
CCFLAGS += -fomit-frame-pointer
# Optimizations for x86 familiy
i f n e q ( , $( findstring X 86,$ ( ARCH ) ) )
i f n e q ( , $( findstring 86,$ ( ARCH ) ) )
CCFLAGS += -malign-double
#CCFLAGS += -march=pentium
# Eventual Pentium Pro optimizations
i f n e q ( , $( findstring PPRO ,$ ( ARCH ) ) )
i f n e q ( , $( findstring pentiumpro ,$ ( ARCH ) ) )
i f n e q ( $( SYS ) , B S D )
CCFLAGS += -march= pentiumpro
e n d i f
e n d i f
# Eventual MMX optimizations for x86
i f n e q ( , $( findstring MMX ,$ ( ARCH ) ) )
i f n e q ( , $( findstring mmx ,$ ( ARCH ) ) )
CFLAGS += -DHAVE_MMX
e n d i f
e n d i f
# Optimizations for PowerPC
i f n e q ( , $( findstring PPC ,$ ( ARCH ) ) )
i f n e q ( , $( findstring ppc ,$ ( ARCH ) ) )
CCFLAGS += -mcpu= 604e -mmultiple -mhard-float -mstring
e n d i f
# Optimizations for Sparc
i f n e q ( , $( findstring SPARC ,$ ( ARCH ) ) )
i f n e q ( , $( findstring sparc ,$ ( ARCH ) ) )
CCFLAGS += -mhard-float
e n d i f
@ -253,20 +201,6 @@ spu_decoder_obj = spu_decoder/spu_decoder.o
#??generic_decoder_obj = generic_decoder/generic_decoder.o
# remeber to add it to OBJ
i f e q ( $( DECODER ) , o l d )
CFLAGS += -DOLD_DECODER
video_decoder_obj = video_decoder_ref/video_decoder.o \
video_decoder_ref/display.o \
video_decoder_ref/getblk.o \
video_decoder_ref/gethdr.o \
video_decoder_ref/getpic.o \
video_decoder_ref/getvlc.o \
video_decoder_ref/idct.o \
video_decoder_ref/motion.o \
video_decoder_ref/mpeg2dec.o \
video_decoder_ref/recon.o \
video_decoder_ref/spatscal.o
e l s e
video_parser_obj = video_parser/video_parser.o \
video_parser/vpar_headers.o \
video_parser/vpar_blocks.o \
@ -277,7 +211,6 @@ video_decoder_obj = video_decoder/video_decoder.o \
video_decoder/vdec_motion.o \
video_decoder/vdec_motion_inner.o \
video_decoder/vdec_idct.o
e n d i f
misc_obj = misc/mtime.o \
misc/rsc_files.o \
@ -300,22 +233,17 @@ C_OBJ = $(interface_obj) \
$( vlan_obj) \
$( misc_obj)
i f e q ( $( SYS ) , B E O S )
i f e q ( $( SYS ) , b e o s )
CPP_OBJ = misc/beos_specific.o
e n d i f
#
# Assembler Objects
#
i f n e q ( , $( findstring X 86,$ ( ARCH ) ) )
i f n e q ( , $( findstring MMX ,$ ( ARCH ) ) )
i f e q ( $( DECODER ) , n e w )
i f n e q ( , $( findstring 86,$ ( ARCH ) ) )
i f n e q ( , $( findstring mmx ,$ ( ARCH ) ) )
ASM_OBJ = video_decoder/vdec_idctmmx.o \
video_output/video_yuv_mmx.o
e l s e
ASM_OBJ = video_decoder_ref/vdec_idctmmx.o \
video_output/video_yuv_mmx.o
e n d i f
e n d i f
e n d i f
@ -393,7 +321,7 @@ FORCE:
# Real targets
#
vlc : $( C_OBJ ) $( CPP_OBJ ) $( ASM_OBJ )
i f e q ( $( SYS ) , B E O S )
i f e q ( $( SYS ) , b e o s )
$( CC) $( CCFLAGS) $( LCFLAGS) $( CFLAGS) -Xlinker -soname= _APP_ -o $@ $( C_OBJ) $( CPP_OBJ) $( ASM_OBJ)
# ln -s ../vlc ./plugins/_APP_
e l s e
@ -429,7 +357,7 @@ $(ASM_OBJ): %.o: %.S
# audio plugins
plugins/aout/aout_dummy.so plugins/aout/aout_dsp.so : %.so : %.c
@echo " compiling $* .so from $* .c "
i f e q ( $( SYS ) , B E O S )
i f e q ( $( SYS ) , b e o s )
@$( CC) $( CCFLAGS) $( CFLAGS) -nostart -Xlinker -soname= $@ -o $@ $< plugins/_APP_
e l s e
@$( CC) $( CCFLAGS) $( CFLAGS) -shared -o $@ $<
@ -437,7 +365,7 @@ endif
plugins/aout/aout_esd.so : %.so : %.c
@echo " compiling $* .so from $* .c "
i f e q ( $( SYS ) , B S D )
i f n e q ( , $( findstring bsd ,$ ( SYS ) ) )
@$( CC) $( CCFLAGS) $( CFLAGS) -lesd -shared -o $@ $<
e l s e
@$( CC) $( CCFLAGS) $( CFLAGS) -laudiofile -lesd -shared -o $@ $<
@ -447,7 +375,7 @@ endif
p l u g i n s / i n t f / i n t f _ d u m m y . s o p l u g i n s / v o u t / v o u t _ d u m m y . s o \
plugins/intf/intf_fb.so plugins/vout/vout_fb.so: %.so: %.c
@echo " compiling $* .so from $* .c "
i f e q ( $( SYS ) , B E O S )
i f e q ( $( SYS ) , b e o s )
@$( CC) $( CCFLAGS) $( CFLAGS) -nostart -Xlinker -soname= $@ -o $@ $< plugins/_APP_
e l s e
@$( CC) $( CCFLAGS) $( CFLAGS) -shared -o $@ $<