1 ###############################################################################
2 # vlc (VideoLAN Client) options Makefile
4 ###############################################################################
8 ###############################################################################
10 ###############################################################################
41 BCBUILDER = @BCBUILDER@
44 # Installation environment
46 exec_prefix = @exec_prefix@
51 includedir = @includedir@
54 # CFLAGS for special cases
56 vlc_CFLAGS = @vlc_CFLAGS@
57 plugins_CFLAGS = @plugins_CFLAGS@
58 builtins_CFLAGS = @builtins_CFLAGS@
59 mozilla_CFLAGS = @mozilla_CFLAGS@
61 a52_CFLAGS = @a52_CFLAGS@
62 arts_CFLAGS = @arts_CFLAGS@
63 chroma_i420_yuy2_mmx_CFLAGS = @chroma_i420_yuy2_mmx_CFLAGS@
64 directx_CFLAGS = @directx_CFLAGS@
65 dvd_CFLAGS = @dvd_CFLAGS@
66 dvdread_CFLAGS = @dvdread_CFLAGS@
67 esd_CFLAGS = @esd_CFLAGS@
68 familiar_CFLAGS = @familiar_CFLAGS@
69 ffmpeg_CFLAGS = @ffmpeg_CFLAGS@
70 glide_CFLAGS = @glide_CFLAGS@
71 gnome_CFLAGS = @gnome_CFLAGS@
72 gtk_CFLAGS = @gtk_CFLAGS@
73 idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
74 kde_CFLAGS = @kde_CFLAGS@
75 mad_CFLAGS = @mad_CFLAGS@
76 memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
77 motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
78 mpeg_ts_dvbpsi_CFLAGS = @mpeg_ts_dvbpsi_CFLAGS@
79 qt_CFLAGS = @qt_CFLAGS@
80 sdl_CFLAGS = @sdl_CFLAGS@
81 x11_CFLAGS = @x11_CFLAGS@
82 xvideo_CFLAGS = @xvideo_CFLAGS@
85 # Libraries for special cases
87 vlc_LDFLAGS = @vlc_LDFLAGS@
88 plugins_LDFLAGS = @plugins_LDFLAGS@
89 builtins_LDFLAGS = @builtins_LDFLAGS@
90 mozilla_LDFLAGS = @mozilla_LDFLAGS@
92 a52_LDFLAGS = @a52_LDFLAGS@
93 aa_LDFLAGS = @aa_LDFLAGS@
94 alsa_LDFLAGS = @alsa_LDFLAGS@
95 arts_LDFLAGS = @arts_LDFLAGS@
96 beos_LDFLAGS = @beos_LDFLAGS@
97 chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@
98 directx_LDFLAGS = @directx_LDFLAGS@
99 dsp_LDFLAGS = @dsp_LDFLAGS@
100 dvd_LDFLAGS = @dvd_LDFLAGS@
101 dvdread_LDFLAGS = @dvdread_LDFLAGS@
102 esd_LDFLAGS = @esd_LDFLAGS@
103 familiar_LDFLAGS = @familiar_LDFLAGS@
104 filter_distort_LDFLAGS = @filter_distort_LDFLAGS@
105 ffmpeg_LDFLAGS = @ffmpeg_LDFLAGS@
106 mp4_LDFLAGS = @mp4_LDFLAGS@
107 ggi_LDFLAGS = @ggi_LDFLAGS@
108 glide_LDFLAGS = @glide_LDFLAGS@
109 gnome_LDFLAGS = @gnome_LDFLAGS@
110 gtk_LDFLAGS = @gtk_LDFLAGS@
111 http_LDFLAGS = @http_LDFLAGS@
112 idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@
113 imdct_LDFLAGS = @imdct_LDFLAGS@
114 imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@
115 imdctsse_LDFLAGS = @imdctsse_LDFLAGS@
116 ipv4_LDFLAGS = @ipv4_LDFLAGS@
117 ipv6_LDFLAGS = @ipv6_LDFLAGS@
118 kde_LDFLAGS = @kde_LDFLAGS@
119 lirc_LDFLAGS = @lirc_LDFLAGS@
120 macosx_LDFLAGS = @macosx_LDFLAGS@
121 mad_LDFLAGS = @mad_LDFLAGS@
122 memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@
123 motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@
124 mpeg_ts_dvbpsi_LDFLAGS = @mpeg_ts_dvbpsi_LDFLAGS@
125 ncurses_LDFLAGS = @ncurses_LDFLAGS@
126 qnx_LDFLAGS = @qnx_LDFLAGS@
127 qt_LDFLAGS = @qt_LDFLAGS@
128 rc_LDFLAGS = @rc_LDFLAGS@
129 sdl_LDFLAGS = @sdl_LDFLAGS@
130 vcd_LDFLAGS = @vcd_LDFLAGS@
131 vorbis_LDFLAGS = @vorbis_LDFLAGS@
132 waveout_LDFLAGS = @waveout_LDFLAGS@
133 x11_LDFLAGS = @x11_LDFLAGS@
134 xosd_LDFLAGS = @xosd_LDFLAGS@
135 xvideo_LDFLAGS = @xvideo_LDFLAGS@
138 # Other special cases
140 NEED_GETOPT = @NEED_GETOPT@
142 ###############################################################################
143 # Configuration pre-processing
144 ###############################################################################
146 # PROGRAM_OPTIONS is an identification string of the compilation options
147 PROGRAM_OPTIONS = $(SYS) $(ARCH)
149 PROGRAM_OPTIONS += DEBUG
153 PROGRAM_OPTIONS += CPROF
157 PROGRAM_OPTIONS += GPROF
161 # PROGRAM_BUILD is a complete identification of the build
162 # (we can't use fancy options with date since OSes like Solaris
163 # or FreeBSD have strange date implementations)
165 # XXX: beos does not support hostname (how lame...)
166 PROGRAM_BUILD = `date` $(USER)
168 PROGRAM_BUILD = `date` $(USER)@`hostname`
171 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
172 CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
175 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
177 # Data and plugin location
178 CFLAGS += -DDATA_PATH=\"@prefix@/share/vlc\"
179 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
181 ###############################################################################
182 # Tuning and other variables - do not change anything except if you know
183 # exactly what you are doing
184 ###############################################################################
187 # C headers directories
189 CFLAGS += -Iinclude -Iextras
192 # C compiler flags: mainstream compilation
194 CFLAGS += -D_REENTRANT -D_THREAD_SAFE
195 CFLAGS += -D_GNU_SOURCE
198 CFLAGS += -DHAVE_RELEASE
203 # Optimizations : don't compile debug versions with them
205 CFLAGS += @CFLAGS_OPTIM@
209 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
214 ifneq (,$(findstring powerpc,$(ARCH)))
215 # Optimizations for PowerPC
216 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
218 CFLAGS += -mtune=$(TUNING)
221 ifneq (,$(findstring sparc,$(ARCH)))
222 # Optimizations for Sparc
223 CFLAGS += -mhard-float
225 CFLAGS += -mcpu=$(TUNING)
228 # Generic optimizations
230 CFLAGS += -mcpu=$(TUNING)
235 #end of optimisations
239 # C compiler flags: linking
252 # C compiler flags: plugins and builtins compilation
254 plugins_CFLAGS += -D__PLUGIN__ -I../../include -I../../extras
255 builtins_CFLAGS += -D__BUILTIN__ -I../../include -I../../extras
258 # Linker flags: plugins and builtins linking
260 builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
263 # Debugging and profiling support
270 CFLAGS += -finstrument-functions