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