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