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