]> git.sesse.net Git - vlc/blob - Makefile.opts.in
Fixed the color_space problem. Overlays now work.
[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 # Plugins to build
14 # WARNING: if you do not have a dynamic loader on your platform, remove
15 # the plugins in this line and put them as built-ins, otherwise your
16 # application won't be able to load them.
17
18 PLUGINS :=@PLUGINS@
19
20
21 # Built-in modules to build
22 # WARNING: do NOT put gtk and gnome together in this rule.
23
24 BUILTINS :=@BUILTINS@
25
26
27 # Additional build options
28
29 SYS = @SYS@
30 ALIASES =@ALIASES@
31 INSTALL = @INSTALL@
32 ARCH = @ARCH@
33
34 #
35 # Compilation options
36 #
37 DEBUG = @DEBUG@
38 CPROF = @CPROF@
39 GPROF = @GPROF@
40 OPTIMS = @OPTIMS@
41 TUNING = @TUNING@
42 RELEASE = @RELEASE@
43
44
45 # Build environment
46
47 CC = @CC@
48 CFLAGS = @CFLAGS@
49 SHELL = @SHELL@
50 RANLIB = @RANLIB@
51 WINDRES = @WINDRES@
52 MOC = @MOC@
53 DLL_PATH = @DLL_PATH@
54
55
56 # Installation environment
57
58 exec_prefix = @exec_prefix@
59 prefix = @prefix@
60 bindir = @bindir@
61 datadir = @datadir@
62 libdir = @libdir@
63 includedir = @includedir@
64
65 #
66 # Libraries for special cases
67 #
68 LIB_COMMON = @LIB_COMMON@
69 LIB_VLC = @LIB_VLC@
70
71 LIB_A52 = @LIB_A52@
72 LIB_AA = @LIB_AA@
73 LIB_ALSA = @LIB_ALSA@
74 LIB_ARTS = @LIB_ARTS@
75 LIB_BEOS = @LIB_BEOS@
76 LIB_DARWIN = @LIB_DARWIN@
77 LIB_DIRECTX = @LIB_DIRECTX@
78 LIB_DSP = @LIB_DSP@
79 LIB_DVD = @LIB_DVD@
80 LIB_DVDREAD = @LIB_DVDREAD@
81 LIB_ESD = @LIB_ESD@
82 LIB_FILTER_DISTORT = @LIB_FILTER_DISTORT@
83 LIB_GGI = @LIB_GGI@
84 LIB_GLIDE = @LIB_GLIDE@
85 LIB_GNOME = @LIB_GNOME@
86 LIB_GTK = @LIB_GTK@
87 LIB_IDCTALTIVEC = @LIB_IDCTALTIVEC@
88 LIB_IMDCT = @LIB_IMDCT@
89 LIB_IMDCT3DN = @LIB_IMDCT3DN@
90 LIB_IMDCTSSE = @LIB_IMDCTSSE@
91 LIB_IPV4 = @LIB_IPV4@
92 LIB_IPV6 = @LIB_IPV6@
93 LIB_KDE = @LIB_KDE@
94 LIB_LIBDVDCSS = @LIB_LIBDVDCSS@
95 LIB_LIBDVDREAD = @LIB_LIBDVDREAD@
96 LIB_LIRC = @LIB_LIRC@
97 LIB_MACOSX = @LIB_MACOSX@
98 LIB_MAD = @LIB_MAD@
99 LIB_MOTIONALTIVEC = @LIB_MOTIONALTIVEC@
100 LIB_MPEG_TS = @LIB_MPEG_TS@
101 LIB_NCURSES = @LIB_NCURSES@
102 LIB_QNX = @LIB_QNX@
103 LIB_QT = @LIB_QT@
104 LIB_RC = @LIB_RC@
105 LIB_SDL = @LIB_SDL@
106 LIB_VCD = @LIB_VCD@
107 LIB_WAVEOUT = @LIB_WAVEOUT@
108 LIB_WIN32 = @LIB_WIN32@
109 LIB_X11 = @LIB_X11@
110 LIB_XVIDEO = @LIB_XVIDEO@
111
112 #
113 # CFLAGS for special cases
114 #
115 CFLAGS_COMMON = @CFLAGS_COMMON@
116 CFLAGS_VLC = @CFLAGS_VLC@
117
118 CFLAGS_ARTS = @CFLAGS_ARTS@
119 CFLAGS_DVD = @CFLAGS_DVD@
120 CFLAGS_DVDREAD = @CFLAGS_DVDREAD@
121 CFLAGS_ESD = @CFLAGS_ESD@
122 CFLAGS_GLIDE = @CFLAGS_GLIDE@
123 CFLAGS_GNOME = @CFLAGS_GNOME@
124 CFLAGS_GTK = @CFLAGS_GTK@
125 CFLAGS_KDE = @CFLAGS_KDE@
126 CFLAGS_IDCTALTIVEC = @CFLAGS_IDCTALTIVEC@
127 CFLAGS_LIBDVDCSS = @CFLAGS_LIBDVDCSS@
128 CFLAGS_MACOSX = @CFLAGS_MACOSX@
129 CFLAGS_MAD = @CFLAGS_MAD@
130 CFLAGS_MOTIONALTIVEC = @CFLAGS_MOTIONALTIVEC@
131 CFLAGS_QT = @CFLAGS_QT@
132 CFLAGS_SDL = @CFLAGS_SDL@
133 CFLAGS_WIN32 = @CFLAGS_WIN32@
134 CFLAGS_X11 = @CFLAGS_X11@
135 CFLAGS_XVIDEO = @CFLAGS_XVIDEO@
136
137 #
138 # Additional objects
139 #
140 SRC_DVD_EXTRA = @SRC_DVD_EXTRA@
141 SRC_DVDCSS_EXTRA = @SRC_DVDCSS_EXTRA@
142
143 #
144 # Other special cases
145 #
146 NEED_GETOPT = @NEED_GETOPT@
147 NEED_LIBDVDCSS = @NEED_LIBDVDCSS@
148
149 ###############################################################################
150 # Configuration pre-processing
151 ###############################################################################
152
153 # PROGRAM_OPTIONS is an identification string of the compilation options
154 PROGRAM_OPTIONS = $(SYS) $(ARCH)
155 ifeq ($(DEBUG),1)
156 PROGRAM_OPTIONS += DEBUG
157 DEFINE += -DDEBUG
158 endif
159 ifeq ($(CPROF),1)
160 PROGRAM_OPTIONS += CPROF
161 DEFINE += -DCPROF
162 endif
163 ifeq ($(GPROF),1)
164 PROGRAM_OPTIONS += GPROF
165 DEFINE += -DGPROF
166 endif
167
168 # PROGRAM_BUILD is a complete identification of the build
169 # (we can't use fancy options with date since OSes like Solaris
170 # or FreeBSD have strange date implementations)
171 ifeq ($(SYS),beos)
172 # XXX: beos does not support hostname (how lame...)
173 PROGRAM_BUILD = `date` $(USER)
174 else
175 PROGRAM_BUILD = `date` $(USER)@`hostname`
176 endif
177
178 # PROGRAM_VERSION is the current vlc version
179 PROGRAM_VERSION=@VLC_VERSION@
180 LIBDVDCSS_VERSION=@LIBDVDCSS_VERSION@
181
182 # DEFINE will contain some of the constants definitions decided in Makefile, 
183 # including SYS_xx. It will be passed to C compiler.
184 DEFINE_SYS := -DSYS_$(shell echo $(SYS) | sed -e 's/-.*//' | tr '[a-z].' '[A-Z]_')
185 DEFINE += $(DEFINE_SYS)
186
187 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
188 DEFINE += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
189
190 # Gettext support
191 DEFINE += -DLOCALEDIR=\"$(datadir)/locale\"
192
193 # Data and plugin location
194 DEFINE += -DDATA_PATH=\"@prefix@/share/videolan\"
195 DEFINE += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
196
197 ###############################################################################
198 # Tuning and other variables - do not change anything except if you know
199 # exactly what you are doing
200 ###############################################################################
201
202 #
203 # C headers directories
204 #
205 INCLUDE += @INCLUDE@
206 INCLUDE += -Iinclude -Iextras
207
208 #
209 # Libraries needed by built-in modules
210 #
211 LIB_BUILTINS := $(patsubst %,$$LIB_%,$(shell echo $(BUILTINS) | tr '[a-z]' '[A-Z]'))
212
213 #
214 # Libraries needed by the vlc executable
215 #
216 ifneq (,$(findstring mingw32,$(SYS)))
217 LIB_VLC += -lws2_32 -lnetapi32
218 endif
219
220 #
221 # C compiler flags: mainstream compilation
222 #
223 CFLAGS += $(DEFINE) $(INCLUDE)
224 CFLAGS += -D_REENTRANT
225 CFLAGS += -D_GNU_SOURCE
226
227 ifeq ($(RELEASE),1)
228 CFLAGS += -DHAVE_RELEASE
229 endif
230
231 # flags needed for clean beos compilation
232 ifeq ($(SYS),beos)
233 CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
234 endif
235
236 ifneq (,$(findstring darwin,$(SYS)))
237 CFLAGS += -no-cpp-precomp
238 endif
239
240 ifneq (,$(findstring mingw32,$(SYS)))
241 CFLAGS += -fnative-struct -D_OFF_T_ -D_off_t=long
242 endif
243
244 ifneq (,$(findstring bsd,$(SYS)))
245 CFLAGS += -pthread
246 endif
247
248 # Optimizations : don't compile debug versions with them
249 ifeq ($(OPTIMS),1)
250 CFLAGS += @CFLAGS_OPTIM@
251 ifneq ($(DEBUG),1)
252 ifneq ($(GPROF),1)
253 ifneq ($(CPROF),1)
254 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
255 endif
256 endif
257 endif
258
259 ifneq (,$(findstring powerpc,$(ARCH)))
260 # Optimizations for PowerPC
261 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
262 ifneq (,$(TUNING))
263 CFLAGS += -mtune=$(TUNING)
264 endif
265 else
266 ifneq (,$(findstring sparc,$(ARCH)))
267 # Optimizations for Sparc
268 CFLAGS += -mhard-float
269 ifneq (,$(TUNING))
270 CFLAGS += -mcpu=$(TUNING)
271 endif
272 else
273 # Generic optimizations
274 ifneq (,$(TUNING))
275 CFLAGS += -mcpu=$(TUNING)
276 endif
277 endif
278 endif
279
280 #end of optimisations
281 endif
282
283 #
284 # C compiler flags: dependancies
285 #
286 DCFLAGS += $(INCLUDE)
287 DCFLAGS += -M
288
289 #
290 # C compiler flags: linking
291 #
292 LDFLAGS += @LDFLAGS@
293 LDFLAGS += $(LIB)
294 LDFLAGS += -Wall
295 ifneq ($(DEBUG),1)
296 ifneq ($(GPROF),1)
297 ifneq ($(CPROF),1)
298 #LDFLAGS += -s
299 endif
300 endif
301 endif
302 ifneq (,$(findstring mingw32,$(SYS)))
303 LDFLAGS += -mwindows -Xlinker --force-exe-suffix
304 endif
305
306 #
307 # C compiler and linker flags: setting soname
308 #
309 SOFLAGS = @SOFLAGS@
310
311 #
312 # C compiler flags: plugin compilation
313 #
314 ifneq (,$(findstring mingw32,$(SYS)))
315 PCFLAGS += -fnative-struct
316 else
317 PCFLAGS += -fPIC
318 endif
319
320 #
321 # C compiler flags: plugin linking
322 #
323 PLDFLAGS += @PLDFLAGS@
324
325 #
326 # Debugging and profiling support
327 #
328 ifeq ($(DEBUG),1)
329 CFLAGS += -g
330 endif
331
332 ifeq ($(CPROF),1)
333 CFLAGS += -finstrument-functions
334 endif
335
336 ifeq ($(GPROF),1)
337 CFLAGS += -pg
338 endif
339
340