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