]> git.sesse.net Git - vlc/blob - Makefile.opts.in
* ./FAQ: new entry for RTP
[vlc] / Makefile.opts.in
1 ###############################################################################
2 # vlc (VideoLAN Client) options Makefile
3 # (c)1998 VideoLAN
4 ###############################################################################
5
6 HAVE_MAKEFILE_OPTS = 1
7
8 ###############################################################################
9 # Configuration
10 ###############################################################################
11
12
13 # Build options
14
15 SYS = @SYS@
16 ALIASES =@ALIASES@
17 MOZILLA = @MOZILLA@
18 INSTALL = @INSTALL@
19 ARCH = @ARCH@
20
21 #
22 # Compilation options
23 #
24 DEBUG = @DEBUG@
25 CPROF = @CPROF@
26 GPROF = @GPROF@
27 OPTIMS = @OPTIMS@
28 TUNING = @TUNING@
29 RELEASE = @RELEASE@
30
31
32 # Build environment
33
34 CC = @CC@
35 CFLAGS = @CFLAGS@
36 SHELL = @SHELL@
37 RANLIB = @RANLIB@
38 STRIP = @STRIP@
39 MOC = @MOC@
40 WINDRES = @WINDRES@
41 BCBUILDER = @BCBUILDER@
42
43
44 # Installation environment
45
46 exec_prefix = @exec_prefix@
47 prefix = @prefix@
48 bindir = @bindir@
49 datadir = @datadir@
50 libdir = @libdir@
51 includedir = @includedir@
52
53 #
54 # CFLAGS for special cases
55 #
56 vlc_CFLAGS = @vlc_CFLAGS@
57 plugins_CFLAGS = @plugins_CFLAGS@
58 builtins_CFLAGS = @builtins_CFLAGS@
59 mozilla_CFLAGS = @mozilla_CFLAGS@
60
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 ffmpeg_CFLAGS = @ffmpeg_CFLAGS@
69 glide_CFLAGS = @glide_CFLAGS@
70 gnome_CFLAGS = @gnome_CFLAGS@
71 gtk_CFLAGS = @gtk_CFLAGS@
72 idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
73 kde_CFLAGS = @kde_CFLAGS@
74 mad_CFLAGS = @mad_CFLAGS@
75 memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
76 motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
77 mpeg_ts_dvbpsi_CFLAGS = @mpeg_ts_dvbpsi_CFLAGS@
78 qt_CFLAGS = @qt_CFLAGS@
79 sdl_CFLAGS = @sdl_CFLAGS@
80 x11_CFLAGS = @x11_CFLAGS@
81 xvideo_CFLAGS = @xvideo_CFLAGS@
82
83 #
84 # Libraries for special cases
85 #
86 vlc_LDFLAGS = @vlc_LDFLAGS@
87 plugins_LDFLAGS = @plugins_LDFLAGS@
88 builtins_LDFLAGS = @builtins_LDFLAGS@
89 mozilla_LDFLAGS = @mozilla_LDFLAGS@
90
91 a52_LDFLAGS = @a52_LDFLAGS@
92 aa_LDFLAGS = @aa_LDFLAGS@
93 alsa_LDFLAGS = @alsa_LDFLAGS@
94 arts_LDFLAGS = @arts_LDFLAGS@
95 beos_LDFLAGS = @beos_LDFLAGS@
96 chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@
97 directx_LDFLAGS = @directx_LDFLAGS@
98 dsp_LDFLAGS = @dsp_LDFLAGS@
99 dvd_LDFLAGS = @dvd_LDFLAGS@
100 dvdread_LDFLAGS = @dvdread_LDFLAGS@
101 esd_LDFLAGS = @esd_LDFLAGS@
102 filter_distort_LDFLAGS = @filter_distort_LDFLAGS@
103 ffmpeg_LDFLAGS = @ffmpeg_LDFLAGS@
104 ggi_LDFLAGS = @ggi_LDFLAGS@
105 glide_LDFLAGS = @glide_LDFLAGS@
106 gnome_LDFLAGS = @gnome_LDFLAGS@
107 gtk_LDFLAGS = @gtk_LDFLAGS@
108 http_LDFLAGS = @http_LDFLAGS@
109 idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@
110 imdct_LDFLAGS = @imdct_LDFLAGS@
111 imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@
112 imdctsse_LDFLAGS = @imdctsse_LDFLAGS@
113 ipv4_LDFLAGS = @ipv4_LDFLAGS@
114 ipv6_LDFLAGS = @ipv6_LDFLAGS@
115 kde_LDFLAGS = @kde_LDFLAGS@
116 lirc_LDFLAGS = @lirc_LDFLAGS@
117 macosx_LDFLAGS = @macosx_LDFLAGS@
118 mad_LDFLAGS = @mad_LDFLAGS@
119 memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@
120 motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@
121 mpeg_ts_dvbpsi_LDFLAGS = @mpeg_ts_dvbpsi_LDFLAGS@
122 ncurses_LDFLAGS = @ncurses_LDFLAGS@
123 qnx_LDFLAGS = @qnx_LDFLAGS@
124 qt_LDFLAGS = @qt_LDFLAGS@
125 rc_LDFLAGS = @rc_LDFLAGS@
126 sdl_LDFLAGS = @sdl_LDFLAGS@
127 vcd_LDFLAGS = @vcd_LDFLAGS@
128 vorbis_LDFLAGS = @vorbis_LDFLAGS@
129 waveout_LDFLAGS = @waveout_LDFLAGS@
130 x11_LDFLAGS = @x11_LDFLAGS@
131 xosd_LDFLAGS = @xosd_LDFLAGS@
132 xvideo_LDFLAGS = @xvideo_LDFLAGS@
133
134 #
135 # Other special cases
136 #
137 NEED_GETOPT = @NEED_GETOPT@
138
139 ###############################################################################
140 # Configuration pre-processing
141 ###############################################################################
142
143 # PROGRAM_OPTIONS is an identification string of the compilation options
144 PROGRAM_OPTIONS = $(SYS) $(ARCH)
145 ifeq ($(DEBUG),1)
146 PROGRAM_OPTIONS += DEBUG
147 CFLAGS += -DDEBUG
148 endif
149 ifeq ($(CPROF),1)
150 PROGRAM_OPTIONS += CPROF
151 CFLAGS += -DCPROF
152 endif
153 ifeq ($(GPROF),1)
154 PROGRAM_OPTIONS += GPROF
155 CFLAGS += -DGPROF
156 endif
157
158 # PROGRAM_BUILD is a complete identification of the build
159 # (we can't use fancy options with date since OSes like Solaris
160 # or FreeBSD have strange date implementations)
161 ifeq ($(SYS),beos)
162 # XXX: beos does not support hostname (how lame...)
163 PROGRAM_BUILD = `date` $(USER)
164 else
165 PROGRAM_BUILD = `date` $(USER)@`hostname`
166 endif
167
168 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
169 CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
170
171 # Gettext support
172 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
173
174 # Data and plugin location
175 CFLAGS += -DDATA_PATH=\"@prefix@/share/vlc\"
176 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
177
178 ###############################################################################
179 # Tuning and other variables - do not change anything except if you know
180 # exactly what you are doing
181 ###############################################################################
182
183 #
184 # C headers directories
185 #
186 CFLAGS += -Iinclude -Iextras
187
188 #
189 # C compiler flags: mainstream compilation
190 #
191 CFLAGS += -D_REENTRANT -D_THREAD_SAFE
192 CFLAGS += -D_GNU_SOURCE
193
194 ifeq ($(RELEASE),1)
195 CFLAGS += -DHAVE_RELEASE
196 endif
197
198 CFLAGS += -D__VLC__
199
200 # Optimizations : don't compile debug versions with them
201 ifeq ($(OPTIMS),1)
202 CFLAGS += @CFLAGS_OPTIM@
203 ifneq ($(DEBUG),1)
204 ifneq ($(GPROF),1)
205 ifneq ($(CPROF),1)
206 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
207 endif
208 endif
209 endif
210
211 ifneq (,$(findstring powerpc,$(ARCH)))
212 # Optimizations for PowerPC
213 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
214 ifneq (,$(TUNING))
215 CFLAGS += -mtune=$(TUNING)
216 endif
217 else
218 ifneq (,$(findstring sparc,$(ARCH)))
219 # Optimizations for Sparc
220 CFLAGS += -mhard-float
221 ifneq (,$(TUNING))
222 CFLAGS += -mcpu=$(TUNING)
223 endif
224 else
225 # Generic optimizations
226 ifneq (,$(TUNING))
227 CFLAGS += -mcpu=$(TUNING)
228 endif
229 endif
230 endif
231
232 #end of optimisations
233 endif
234
235 #
236 # C compiler flags: linking
237 #
238 LDFLAGS += @LDFLAGS@
239 LDFLAGS += -Wall
240 ifneq ($(DEBUG),1)
241 ifneq ($(GPROF),1)
242 ifneq ($(CPROF),1)
243 #LDFLAGS += -s
244 endif
245 endif
246 endif
247
248 #
249 # C compiler flags: plugins and builtins compilation
250 #
251 plugins_CFLAGS += -D__PLUGIN__ -I../../include -I../../extras
252 builtins_CFLAGS += -D__BUILTIN__ -I../../include -I../../extras
253
254 #
255 # Linker flags: plugins and builtins linking
256 #
257 builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
258
259 #
260 # Debugging and profiling support
261 #
262 ifeq ($(DEBUG),1)
263 CFLAGS += -g
264 endif
265
266 ifeq ($(CPROF),1)
267 CFLAGS += -finstrument-functions
268 endif
269
270 ifeq ($(GPROF),1)
271 CFLAGS += -pg
272 endif
273
274