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