X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile.opts.in;h=8500d1a60014bc3d650ccae488da6b8ff8289f20;hb=4b6d903ac0960d0f35f986a6682a4cb76b97905a;hp=9739af0fe73eec67460d62319b0332c8b63a521f;hpb=d8e44fce7502d3015ce36162fe66c22e4e0c828b;p=vlc diff --git a/Makefile.opts.in b/Makefile.opts.in index 9739af0fe7..8500d1a600 100644 --- a/Makefile.opts.in +++ b/Makefile.opts.in @@ -10,21 +10,7 @@ HAVE_MAKEFILE_OPTS = 1 ############################################################################### # -# Plugins to build -# WARNING: if you do not have a dynamic loader on your platform, remove -# the plugins in this line and put them as built-ins, otherwise your -# application won't be able to load them. -# -PLUGINS :=@PLUGINS@ - -# -# Built-in modules to build -# WARNING: do NOT put gtk and gnome together in this rule. -# -BUILTINS :=@BUILTINS@ - -# -# Additional build options +# Build options # SYS = @SYS@ ALIASES =@ALIASES@ @@ -35,7 +21,6 @@ ARCH = @ARCH@ # Compilation options # DEBUG = @DEBUG@ -TRACE = @TRACE@ CPROF = @CPROF@ GPROF = @GPROF@ OPTIMS = @OPTIMS@ @@ -49,8 +34,10 @@ CC = @CC@ CFLAGS = @CFLAGS@ SHELL = @SHELL@ RANLIB = @RANLIB@ -WINDRES = @WINDRES@ +STRIP = @STRIP@ MOC = @MOC@ +WINDRES = @WINDRES@ +BCBUILDER = @BCBUILDER@ # # Installation environment @@ -62,68 +49,93 @@ datadir = @datadir@ libdir = @libdir@ includedir = @includedir@ -# -# Libraries for special cases -# -LIB_ALSA = @LIB_ALSA@ -LIB_ALTIVEC = @LIB_ALTIVEC@ -LIB_ARTS = @LIB_ARTS@ -LIB_BEOS = @LIB_BEOS@ -LIB_DARWIN = @LIB_DARWIN@ -LIB_DIRECTX = @LIB_DIRECTX@ -LIB_DVD = @LIB_DVD@ -LIB_DVD_PLUGIN = @LIB_DVD_PLUGIN@ -LIB_DVDREAD = @LIB_DVDREAD@ -LIB_DVDREAD_PLUGIN = @LIB_DVDREAD_PLUGIN@ -LIB_ESD = @LIB_ESD@ -LIB_GGI = @LIB_GGI@ -LIB_GLIDE = @LIB_GLIDE@ -LIB_GNOME = @LIB_GNOME@ -LIB_GTK = @LIB_GTK@ -LIB_IMDCT = @LIB_IMDCT@ -LIB_IMDCT3DN = @LIB_IMDCT3DN@ -LIB_IMDCTSSE = @LIB_IMDCTSSE@ -LIB_KDE = @LIB_KDE@ -LIB_LIBDVDCSS = @LIB_LIBDVDCSS@ -LIB_MACOSX = @LIB_MACOSX@ -LIB_MAD = @LIB_MAD@ -LIB_MPEG_TS = @LIB_MPEG_TS@ -LIB_NCURSES = @LIB_NCURSES@ -LIB_QNX = @LIB_QNX@ -LIB_QT = @LIB_QT@ -LIB_RC = @LIB_RC@ -LIB_SDL = @LIB_SDL@ -LIB_X11 = @LIB_X11@ -LIB_XVIDEO = @LIB_XVIDEO@ -LIB_YUV = @LIB_YUV@ - # # CFLAGS for special cases # -CFLAGS_ALTIVEC = @CFLAGS_ALTIVEC@ -CFLAGS_DVD = @CFLAGS_DVD@ -CFLAGS_DVDREAD = @CFLAGS_DVDREAD@ -CFLAGS_ARTS = @CFLAGS_ARTS@ -CFLAGS_ESD = @CFLAGS_ESD@ -CFLAGS_LIBDVDCSS = @CFLAGS_LIBDVDCSS@ -CFLAGS_ESD = @CFLAGS_ESD@ -CFLAGS_GTK = @CFLAGS_GTK@ -CFLAGS_MAD = @CFLAGS_MAD@ -CFLAGS_SDL = @CFLAGS_SDL@ -CFLAGS_X11 = @CFLAGS_X11@ -CFLAGS_XVIDEO = @CFLAGS_XVIDEO@ +vlc_CFLAGS = @vlc_CFLAGS@ +plugins_CFLAGS := @plugins_CFLAGS@ +builtins_CFLAGS := @builtins_CFLAGS@ + +a52_CFLAGS = @a52_CFLAGS@ +arts_CFLAGS = @arts_CFLAGS@ +dvd_CFLAGS = @dvd_CFLAGS@ +dvdread_CFLAGS = @dvdread_CFLAGS@ +mpeg_ts_dvbpsi_CFLAGS = @mpeg_ts_dvbpsi_CFLAGS@ +directx_CFLAGS = @directx_CFLAGS@ +esd_CFLAGS = @esd_CFLAGS@ +familiar_CFLAGS = @familiar_CFLAGS@ +ffmpeg_CFLAGS = @ffmpeg_CFLAGS@ +glide_CFLAGS = @glide_CFLAGS@ +gnome_CFLAGS = @gnome_CFLAGS@ +gtk_CFLAGS = @gtk_CFLAGS@ +kde_CFLAGS = @kde_CFLAGS@ +idctaltivec_CFLAGS = @idctaltivec_CFLAGS@ +mad_CFLAGS = @mad_CFLAGS@ +memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@ +motionaltivec_CFLAGS = @motionaltivec_CFLAGS@ +opie_CFLAGS = @opie_CFLAGS@ +qt_CFLAGS = @qt_CFLAGS@ +qte_CFLAGS = @qte_CFLAGS@ +sdl_CFLAGS = @sdl_CFLAGS@ +x11_CFLAGS = @x11_CFLAGS@ +xvideo_CFLAGS = @xvideo_CFLAGS@ # -# Additional objects +# Libraries for special cases # -OBJ_DVD = @OBJ_DVD@ -OBJ_LIBDVDCSS = @OBJ_LIBDVDCSS@ +vlc_LDFLAGS = @vlc_LDFLAGS@ +plugins_LDFLAGS += @plugins_LDFLAGS@ +builtins_LDFLAGS += @builtins_LDFLAGS@ + +a52_LDFLAGS = @a52_LDFLAGS@ +aa_LDFLAGS = @aa_LDFLAGS@ +alsa_LDFLAGS = @alsa_LDFLAGS@ +arts_LDFLAGS = @arts_LDFLAGS@ +beos_LDFLAGS = @beos_LDFLAGS@ +chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@ +directx_LDFLAGS = @directx_LDFLAGS@ +dsp_LDFLAGS = @dsp_LDFLAGS@ +dvd_LDFLAGS = @dvd_LDFLAGS@ +dvdread_LDFLAGS = @dvdread_LDFLAGS@ +mpeg_ts_dvbpsi_LDFLAGS = @mpeg_ts_dvbpsi_LDFLAGS@ +esd_LDFLAGS = @esd_LDFLAGS@ +familiar_LDFLAGS = @familiar_LDFLAGS@ +filter_distort_LDFLAGS = @filter_distort_LDFLAGS@ +ffmpeg_LDFLAGS = @ffmpeg_LDFLAGS@ +ggi_LDFLAGS = @ggi_LDFLAGS@ +glide_LDFLAGS = @glide_LDFLAGS@ +gnome_LDFLAGS = @gnome_LDFLAGS@ +gtk_LDFLAGS = @gtk_LDFLAGS@ +http_LDFLAGS = @http_LDFLAGS@ +idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@ +imdct_LDFLAGS = @imdct_LDFLAGS@ +imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@ +imdctsse_LDFLAGS = @imdctsse_LDFLAGS@ +ipv4_LDFLAGS = @ipv4_LDFLAGS@ +ipv6_LDFLAGS = @ipv6_LDFLAGS@ +kde_LDFLAGS = @kde_LDFLAGS@ +lirc_LDFLAGS = @lirc_LDFLAGS@ +macosx_LDFLAGS = @macosx_LDFLAGS@ +mad_LDFLAGS = @mad_LDFLAGS@ +memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@ +motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@ +ncurses_LDFLAGS = @ncurses_LDFLAGS@ +opie_LDFLAGS = @opie_LDFLAGS@ +qnx_LDFLAGS = @qnx_LDFLAGS@ +qt_LDFLAGS = @qt_LDFLAGS@ +qte_LDFLAGS = @qte_LDFLAGS@ +rc_LDFLAGS = @rc_LDFLAGS@ +sdl_LDFLAGS = @sdl_LDFLAGS@ +vcd_LDFLAGS = @vcd_LDFLAGS@ +vorbis_LDFLAGS = @vorbis_LDFLAGS@ +waveout_LDFLAGS = @waveout_LDFLAGS@ +x11_LDFLAGS = @x11_LDFLAGS@ +xvideo_LDFLAGS = @xvideo_LDFLAGS@ # # Other special cases # NEED_GETOPT = @NEED_GETOPT@ -NEED_LIBDVDCSS = @NEED_LIBDVDCSS@ ############################################################################### # Configuration pre-processing @@ -133,19 +145,15 @@ NEED_LIBDVDCSS = @NEED_LIBDVDCSS@ PROGRAM_OPTIONS = $(SYS) $(ARCH) ifeq ($(DEBUG),1) PROGRAM_OPTIONS += DEBUG -DEFINE += -DDEBUG -endif -ifeq ($(TRACE),1) -PROGRAM_OPTIONS += TRACE -DEFINE += -DTRACE +CFLAGS += -DDEBUG endif ifeq ($(CPROF),1) PROGRAM_OPTIONS += CPROF -DEFINE += -DCPROF +CFLAGS += -DCPROF endif ifeq ($(GPROF),1) PROGRAM_OPTIONS += GPROF -DEFINE += -DGPROF +CFLAGS += -DGPROF endif # PROGRAM_BUILD is a complete identification of the build @@ -158,20 +166,15 @@ else PROGRAM_BUILD = `date` $(USER)@`hostname` endif -# PROGRAM_VERSION is the current vlc version -PROGRAM_VERSION=@VLC_VERSION@ -LIBDVDCSS_VERSION=@LIBDVDCSS_VERSION@ - -# DEFINE will contain some of the constants definitions decided in Makefile, -# including SYS_xx. It will be passed to C compiler. -DEFINE_CONSTANTS := -DSYS_$(shell echo $(SYS) | sed -e 's/-.*//' | tr '[a-z].' '[A-Z]_') -DEFINE += $(DEFINE_CONSTANTS) - # On Linux and Solaris, activate 64-bit off_t (by default under BSD) -DEFINE += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 +CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE # Gettext support -DEFINE += -DLOCALEDIR=\"$(datadir)/locale\" +CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\" + +# Data and plugin location +CFLAGS += -DDATA_PATH=\"@prefix@/share/videolan\" +CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\" ############################################################################### # Tuning and other variables - do not change anything except if you know @@ -181,68 +184,25 @@ DEFINE += -DLOCALEDIR=\"$(datadir)/locale\" # # C headers directories # -INCLUDE += @INCLUDE@ -INCLUDE += -Iinclude -Iextras - -# -# Libraries needed by built-in modules -# -# Let's go for a crude hack ! -LIB_MOTIONALTIVEC := $(LIB_ALTIVEC) -LIB_IDCTALTIVEC := $(LIB_ALTIVEC) -ifneq (,$(BUILTINS)) -LIB_BUILTINS := $(shell for i in ${BUILTINS} ; do echo $$i | tr '[a-z]' '[A-Z]' | sed -e 's/.*/$$LIB_&/' ; done) -LIB += $(LIB_BUILTINS) -endif - -# -# Libraries -# -ifneq (,$(findstring mingw32,$(SYS))) -LIB += -lws2_32 -lnetapi32 -endif - -LIB += @LIB@ +CFLAGS += -Iinclude -Iextras # # C compiler flags: mainstream compilation # -DEFINE += @DEFINE@ -CFLAGS += $(DEFINE) $(INCLUDE) -CFLAGS += -Wall -Winline -CFLAGS += -pipe CFLAGS += -D_REENTRANT CFLAGS += -D_GNU_SOURCE ifeq ($(RELEASE),1) -CFLAGS += -DRELEASE -endif - -# flags needed for clean beos compilation -ifeq ($(SYS),beos) -CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual -endif - -ifneq (,$(findstring darwin,$(SYS))) -CFLAGS += -no-cpp-precomp -endif - -ifneq (,$(findstring mingw32,$(SYS))) -CFLAGS += -fnative-struct -D_OFF_T_ -D_off_t=long -endif - -ifneq (,$(findstring bsd,$(SYS))) -CFLAGS += -pthread +CFLAGS += -DHAVE_RELEASE endif # Optimizations : don't compile debug versions with them ifeq ($(OPTIMS),1) -CFLAGS += -O3 -CFLAGS += -ffast-math -funroll-loops +CFLAGS += @CFLAGS_OPTIM@ ifneq ($(DEBUG),1) ifneq ($(GPROF),1) ifneq ($(CPROF),1) -CFLAGS += -fomit-frame-pointer +CFLAGS += @CFLAGS_OPTIM_NODEBUG@ endif endif endif @@ -271,46 +231,30 @@ endif #end of optimisations endif -# -# C compiler flags: dependancies -# -DCFLAGS += $(INCLUDE) -DCFLAGS += -MM - # # C compiler flags: linking # -LCFLAGS += @LCFLAGS@ $(LIB) -LCFLAGS += -Wall +LDFLAGS += @LDFLAGS@ +LDFLAGS += -Wall ifneq ($(DEBUG),1) ifneq ($(GPROF),1) ifneq ($(CPROF),1) -#LCFLAGS += -s -endif +#LDFLAGS += -s endif endif -ifneq (,$(findstring mingw32,$(SYS))) -LCFLAGS += -mwindows -Xlinker --force-exe-suffix endif # -# C compiler and linker flags: setting soname +# C compiler flags: plugins and builtins compilation # -SOFLAGS = @SOFLAGS@ - -# -# C compiler flags: plugin compilation -# -ifneq (,$(findstring mingw32,$(SYS))) -PCFLAGS += -fnative-struct -else -PCFLAGS += -fPIC -endif +vlc_CFLAGS += -D__VLC__ +plugins_CFLAGS += -D__VLC__ -D__PLUGIN__ -I../../include -I../../extras +builtins_CFLAGS += -D__VLC__ -D__BUILTIN__ -I../../include -I../../extras # -# C compiler flags: plugin linking +# Linker flags: plugins and builtins linking # -PLCFLAGS += @PLCFLAGS@ +builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS)) # # Debugging and profiling support