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