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