⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.in

📁 vlc stand 0.1.99 ist sehr einfach
💻 IN
字号:
################################################################################# vlc (VideoLAN Client) main makefile# (c)1998 VideoLAN################################################################################# This makefile is the main makefile for the VideoLAN client.################################################################################################################################################################# Configuration################################################################################# Debugging mode on or off (set to 1 to activate)DEBUG=0SYS=@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################################################################################# PROGRAM_OPTIONS is an identification string of the compilation optionsPROGRAM_OPTIONS = $(SYS) $(ARCH)ifeq ($(DEBUG),1)PROGRAM_OPTIONS += DEBUGendif# PROGRAM_BUILD is a complete identification of the build# ( we can't use fancy options with date since OSes like Solaris# or FreeBSD have strange date implementations )PROGRAM_BUILD = `date` $(USER)# XXX: beos does not support hostname#PROGRAM_BUILD = `date` $(USER)@`hostname`# DEFINE will contain some of the constants definitions decided in Makefile, # including SYS_xx. It will be passed to C compiler.DEFINE += -DSYS_$(shell 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')\""#DEFINE += -DPROGRAM_BUILD="\"$(PROGRAM_BUILD)\""ifeq ($(DEBUG),1)DEFINE += -DDEBUGendif################################################################################# Tuning and other variables - do not change anything except if you know# exactly what you are doing################################################################################## C headers directories#INCLUDE += -Iinclude -I/usr/local/include -I/usr/X11R6/include## Libraries#ifeq ($(SYS),gnu)LIB += -lthreads -ldlendififneq (,$(findstring bsd,$(SYS)))LIB += -pthread -lgnugetoptLIB += -L/usr/local/libendififneq (,$(findstring linux,$(SYS)))LIB += -lpthread -ldlendififeq ($(SYS),beos)LIB += -lbe -lroot -lgameelseLIB += -lmendif## C compiler flags: compilation#CCFLAGS += $(DEFINE) $(INCLUDE)CCFLAGS += -WallCCFLAGS += -D_REENTRANTCCFLAGS += -D_GNU_SOURCE# flags needed for clean beos compilationCCFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual# Optimizations : don't compile debug versions with themCCFLAGS += -O6CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-globalCCFLAGS += -fomit-frame-pointer# Optimizations for x86 familiyifneq (,$(findstring 86,$(ARCH)))CCFLAGS += -malign-double#CCFLAGS += -march=pentium# Eventual Pentium Pro optimizationsifneq (,$(findstring pentiumpro,$(ARCH)))ifneq ($(SYS), BSD)CCFLAGS += -march=pentiumproendifendif# Eventual MMX optimizations for x86ifneq (,$(findstring mmx,$(ARCH)))CFLAGS += -DHAVE_MMXendifendif# Optimizations for PowerPCifneq (,$(findstring ppc,$(ARCH)))CCFLAGS += -mcpu=604e -mmultiple -mhard-float -mstringendif# Optimizations for Sparcifneq (,$(findstring sparc,$(ARCH)))CCFLAGS += -mhard-floatendif## C compiler flags: dependancies#DCFLAGS += $(INCLUDE)DCFLAGS += -MM## C compiler flags: linking#LCFLAGS += $(LIB)LCFLAGS += -Wall#LCFLAGS += -s## Additionnal debugging flags## Debugging supportifeq ($(DEBUG),1)CFLAGS += -gCFLAGS += -pgendif################################################################################## Objects and files################################################################################### C Objects# interface_obj =  		interface/main.o \						interface/interface.o \						interface/intf_msg.o \						interface/intf_cmd.o \						interface/intf_ctrl.o \						interface/intf_console.oinput_obj =         		input/input_vlan.o \						input/input_file.o \						input/input_netlist.o \						input/input_network.o \						input/input_ctrl.o \						input/input_pcr.o \						input/input_psi.o \						input/input.oaudio_output_obj = 		audio_output/audio_output.ovideo_output_obj = 		video_output/video_output.o \						video_output/video_text.o \						video_output/video_spu.o \						video_output/video_yuv.oac3_decoder_obj =		ac3_decoder/ac3_decoder_thread.o \						ac3_decoder/ac3_decoder.o \						ac3_decoder/ac3_parse.o \						ac3_decoder/ac3_exponent.o \						ac3_decoder/ac3_bit_allocate.o \						ac3_decoder/ac3_mantissa.o \						ac3_decoder/ac3_rematrix.o \						ac3_decoder/ac3_imdct.o \						ac3_decoder/ac3_downmix.o						lpcm_decoder_obj =		lpcm_decoder/lpcm_decoder_thread.o \						lpcm_decoder/lpcm_decoder.oaudio_decoder_obj =		audio_decoder/audio_decoder_thread.o \						audio_decoder/audio_decoder.o \						audio_decoder/audio_math.ospu_decoder_obj =		spu_decoder/spu_decoder.o#??generic_decoder_obj =		generic_decoder/generic_decoder.o# remeber to add it to OBJ video_parser_obj = 		video_parser/video_parser.o \						video_parser/vpar_headers.o \						video_parser/vpar_blocks.o \						video_parser/vpar_synchro.o \						video_parser/video_fifo.ovideo_decoder_obj =		video_decoder/video_decoder.o \						video_decoder/vdec_motion.o \						video_decoder/vdec_motion_inner.o \			                        video_decoder/vdec_idct.omisc_obj =			misc/mtime.o \						misc/rsc_files.o \						misc/netutils.o \						misc/plugins.o \						misc/decoder_fifo.oC_OBJ = $(interface_obj) \		$(input_obj) \		$(audio_output_obj) \		$(video_output_obj) \		$(ac3_decoder_obj) \		$(lpcm_decoder_obj) \		$(audio_decoder_obj) \		$(spu_decoder_obj) \		$(generic_decoder_obj) \		$(video_parser_obj) \		$(video_decoder_obj) \		$(vlan_obj) \		$(misc_obj)ifeq ($(SYS),beos)CPP_OBJ =			misc/beos_specific.oendif## Assembler Objects# ifneq (,$(findstring 86,$(ARCH)))ifneq (,$(findstring mmx,$(ARCH)))ASM_OBJ = 			video_decoder/vdec_idctmmx.o \						video_output/video_yuv_mmx.oendifendif## Plugins#intf_plugin =           $(INTF:%=plugins/intf/intf_%.so)aout_plugin =           $(AOUT:%=plugins/aout/aout_%.so)vout_plugin =           $(VOUT:%=plugins/vout/vout_%.so)PLUGIN_OBJ = $(intf_plugin) $(aout_plugin) $(vout_plugin)## Other lists of files#C_OBJ := $(C_OBJ:%.o=src/%.o)CPP_OBJ := $(CPP_OBJ:%.o=src/%.o)ASM_OBJ := $(ASM_OBJ:%.o=src/%.o)sources_c := $(C_OBJ:%.o=%.c)dependancies := $(sources_c:%.c=.dep/%.d)# All symbols must be exportedexport################################################################################# Targets################################################################################## Virtual targets#all: vlc pluginsclean:	rm -f $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(PLUGIN_OBJ)distclean: clean	rm -f */*/*.o plugins/*/*.so **/*~ *.log	rm -f Makefile include/defs.h include/config.h	rm -f config.status config.cache config.log	rm -f vlc gmon.out core	rm -rf .depinstall:	$(INSTALL) vlc $(prefix)/bin	mkdir -p $(prefix)/lib/videolan/vlc	mkdir -p $(prefix)/share/videolan/vlc	$(INSTALL) $(PLUGIN_OBJ) $(prefix)/lib/videolan/vlc	$(INSTALL) share/*.psf $(prefix)/share/videolan/vlc	$(INSTALL) share/*.png $(prefix)/share/videolan/vlcshow:	@echo "Command line for C objects:"	@echo $(CC) $(CCFLAGS) $(CFLAGS) -c -o "<dest.o>" "<src.c>"	@echo	@echo "Command line for assembler objects:"	@echo $(CC) $(CFLAGS) -c -o "<dest.o>" "<src.S>"# ugliest of all, but I have no time to do it -- samsnapshot:	rm -rf /tmp/${SNAPSHOTDIR}	mkdir /tmp/${SNAPSHOTDIR}	cp -a * /tmp/${SNAPSHOTDIR}		(cd /tmp/${SNAPSHOTDIR} ; \		make distclean ; \		find . -type d -name CVS | xargs rm -rf ; \		find . -type f -name '.*.swp' | xargs rm -f ; \		cd .. ; \		tar czvf ${SNAPSHOTDIR}.tar.gz ${SNAPSHOTDIR} )	rm -rf /tmp/${SNAPSHOTDIR}	mv /tmp/${SNAPSHOTDIR}.tar.gz ..	@echo "Sources are in ../${SNAPSHOTDIR}.tar.gz"FORCE:## Real targets#vlc: $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)ifeq ($(SYS),beos)	$(CC) $(CCFLAGS) $(LCFLAGS) $(CFLAGS) -Xlinker -soname=_APP_ -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)#	ln -s ../vlc ./plugins/_APP_else	$(CC) $(CCFLAGS) $(LCFLAGS) $(CFLAGS) --export-dynamic -rdynamic -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)	endifplugins: $(PLUGIN_OBJ)## Generic rules (see below)#$(dependancies): %.d: FORCE	@$(MAKE) -s --no-print-directory -f Makefile.dep $@$(C_OBJ): %.o: Makefile.dep$(C_OBJ): %.o: .dep/%.d$(C_OBJ): %.o: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<$(CPP_OBJ): %.o: %.cpp	$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<$(ASM_OBJ): %.o: Makefile.dep$(ASM_OBJ): %.o: %.S	$(CC) $(CFLAGS) -c -o $@ $<#$(PLUGIN_OBJ): %.so: Makefile.dep#$(PLUGIN_OBJ): %.so: .dep/%.d# audio pluginsplugins/aout/aout_dummy.so plugins/aout/aout_dsp.so: %.so: %.cifeq ($(SYS),beos)	$(CC) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $< plugins/_APP_else	$(CC) $(CCFLAGS) $(CFLAGS) -shared -o $@ $<endifplugins/aout/aout_esd.so: %.so: %.cifneq (,$(findstring bsd,$(SYS)))	$(CC) $(CCFLAGS) $(CFLAGS) -lesd -shared -o $@ $<else	$(CC) $(CCFLAGS) $(CFLAGS) -laudiofile -lesd -shared -o $@ $<endif# video pluginsplugins/intf/intf_dummy.so plugins/vout/vout_dummy.so \	plugins/intf/intf_fb.so plugins/vout/vout_fb.so: %.so: %.cifeq ($(SYS),beos)	$(CC) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $< plugins/_APP_else	$(CC) $(CCFLAGS) $(CFLAGS) -shared -o $@ $<endifplugins/intf/intf_x11.so plugins/vout/vout_x11.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXext -shared -o $@ $<plugins/intf/intf_mga.so plugins/vout/vout_mga.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXext -shared -o $@ $<plugins/intf/intf_gnome.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) $(LCFLAGS) `gnome-config --libs --cflags gnomeui` -shared -o $@ $< plugins/intf/intf_gnome_callbacks.c plugins/intf/intf_gnome_interface.c plugins/intf/intf_gnome_support.cplugins/vout/vout_gnome.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXext -shared -o $@ $<plugins/intf/intf_glide.so plugins/vout/vout_glide.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/include/glide -lglide2x -shared -o $@ $<plugins/intf/intf_ggi.so plugins/vout/vout_ggi.so: %.so: %.c	$(CC) $(CCFLAGS) $(CFLAGS) -lggi -shared -o $@ $<plugins/intf/intf_beos.so: %.so: %.cpp	$(CC) $(LCFLAGS) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $< plugins/_APP_plugins/vout/vout_beos.so: %.so: %.cpp	$(CC) $(LCFLAGS) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $< plugins/_APP_		################################################################################# Note on generic rules and dependancies################################################################################# Note on dependancies: each .c file is associated with a .d file, which# depends of it. The .o file associated with a .c file depends of the .d, of the# .c itself, and of Makefile. The .d files are stored in a separate .dep/# directory.# The dep directory should be ignored by CVS.# Note on inclusions: depending of the target, the dependancies files must# or must not be included. The problem is that if we ask make to include a file,# and this file does not exist, it is made before it can be included. In a# general way, a .d file should be included if and only if the corresponding .o# needs to be re-made.# Two makefiles are used: the main one (this one) has regular generic rules,# except for .o files, for which it calls the object Makefile. Dependancies# are not included in this file.# The object Makefile known how to make a .o from a .c, and includes# dependancies for the target, but only those required.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -