]> git.sesse.net Git - vlc/blob - Makefile.opts.in
* ./plugins/win32/win32.cpp: fixed `--intf intfwin' which wasn't working.
[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 # Plugins to build
14 # WARNING: if you do not have a dynamic loader on your platform, remove
15 # the plugins in this line and put them as built-ins, otherwise your
16 # application won't be able to load them.
17
18 PLUGINS :=@PLUGINS@
19
20
21 # Built-in modules to build
22 # WARNING: do NOT put gtk and gnome together in this rule.
23
24 BUILTINS :=@BUILTINS@
25
26
27 # Additional build options
28
29 SYS = @SYS@
30 ALIASES =@ALIASES@
31 INSTALL = @INSTALL@
32 ARCH = @ARCH@
33
34 #
35 # Compilation options
36 #
37 DEBUG = @DEBUG@
38 CPROF = @CPROF@
39 GPROF = @GPROF@
40 OPTIMS = @OPTIMS@
41 TUNING = @TUNING@
42 RELEASE = @RELEASE@
43
44
45 # Build environment
46
47 CC = @CC@
48 CFLAGS = @CFLAGS@
49 SHELL = @SHELL@
50 RANLIB = @RANLIB@
51 STRIP = @STRIP@
52 MOC = @MOC@
53 WINDRES = @WINDRES@
54 BCBUILDER = @BCBUILDER@
55
56
57 # Installation environment
58
59 exec_prefix = @exec_prefix@
60 prefix = @prefix@
61 bindir = @bindir@
62 datadir = @datadir@
63 libdir = @libdir@
64 includedir = @includedir@
65
66 #
67 # CFLAGS for special cases
68 #
69 vlc_CFLAGS = @vlc_CFLAGS@
70 plugins_CFLAGS := @plugins_CFLAGS@
71 builtins_CFLAGS := @builtins_CFLAGS@
72
73 arts_CFLAGS = @arts_CFLAGS@
74 dvd_CFLAGS = @dvd_CFLAGS@
75 dvdread_CFLAGS = @dvdread_CFLAGS@
76 directx_CFLAGS = @directx_CFLAGS@
77 esd_CFLAGS = @esd_CFLAGS@
78 glide_CFLAGS = @glide_CFLAGS@
79 gnome_CFLAGS = @gnome_CFLAGS@
80 gtk_CFLAGS = @gtk_CFLAGS@
81 kde_CFLAGS = @kde_CFLAGS@
82 idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
83 macosx_CFLAGS = @macosx_CFLAGS@
84 mad_CFLAGS = @mad_CFLAGS@
85 memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
86 motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
87 qt_CFLAGS = @qt_CFLAGS@
88 sdl_CFLAGS = @sdl_CFLAGS@
89 x11_CFLAGS = @x11_CFLAGS@
90 xvideo_CFLAGS = @xvideo_CFLAGS@
91
92 #
93 # Libraries for special cases
94 #
95 vlc_LDFLAGS = @vlc_LDFLAGS@
96 plugins_LDFLAGS += @plugins_LDFLAGS@
97 builtins_LDFLAGS += @builtins_LDFLAGS@
98
99 a52_LDFLAGS = @a52_LDFLAGS@
100 aa_LDFLAGS = @aa_LDFLAGS@
101 alsa_LDFLAGS = @alsa_LDFLAGS@
102 arts_LDFLAGS = @arts_LDFLAGS@
103 beos_LDFLAGS = @beos_LDFLAGS@
104 chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@
105 directx_LDFLAGS = @directx_LDFLAGS@
106 dsp_LDFLAGS = @dsp_LDFLAGS@
107 dvd_LDFLAGS = @dvd_LDFLAGS@
108 dvdread_LDFLAGS = @dvdread_LDFLAGS@
109 esd_LDFLAGS = @esd_LDFLAGS@
110 filter_distort_LDFLAGS = @filter_distort_LDFLAGS@
111 ggi_LDFLAGS = @ggi_LDFLAGS@
112 glide_LDFLAGS = @glide_LDFLAGS@
113 gnome_LDFLAGS = @gnome_LDFLAGS@
114 gtk_LDFLAGS = @gtk_LDFLAGS@
115 idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@
116 imdct_LDFLAGS = @imdct_LDFLAGS@
117 imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@
118 imdctsse_LDFLAGS = @imdctsse_LDFLAGS@
119 ipv4_LDFLAGS = @ipv4_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 qnx_LDFLAGS = @qnx_LDFLAGS@
128 qt_LDFLAGS = @qt_LDFLAGS@
129 rc_LDFLAGS = @rc_LDFLAGS@
130 sdl_LDFLAGS = @sdl_LDFLAGS@
131 vcd_LDFLAGS = @vcd_LDFLAGS@
132 vorbis_LDFLAGS = @vorbis_LDFLAGS@
133 waveout_LDFLAGS = @waveout_LDFLAGS@
134 x11_LDFLAGS = @x11_LDFLAGS@
135 xvideo_LDFLAGS = @xvideo_LDFLAGS@
136
137 #
138 # Other special cases
139 #
140 NEED_GETOPT = @NEED_GETOPT@
141
142 ###############################################################################
143 # Configuration pre-processing
144 ###############################################################################
145
146 # PROGRAM_OPTIONS is an identification string of the compilation options
147 PROGRAM_OPTIONS = $(SYS) $(ARCH)
148 ifeq ($(DEBUG),1)
149 PROGRAM_OPTIONS += DEBUG
150 CFLAGS += -DDEBUG
151 endif
152 ifeq ($(CPROF),1)
153 PROGRAM_OPTIONS += CPROF
154 CFLAGS += -DCPROF
155 endif
156 ifeq ($(GPROF),1)
157 PROGRAM_OPTIONS += GPROF
158 CFLAGS += -DGPROF
159 endif
160
161 # PROGRAM_BUILD is a complete identification of the build
162 # (we can't use fancy options with date since OSes like Solaris
163 # or FreeBSD have strange date implementations)
164 ifeq ($(SYS),beos)
165 # XXX: beos does not support hostname (how lame...)
166 PROGRAM_BUILD = `date` $(USER)
167 else
168 PROGRAM_BUILD = `date` $(USER)@`hostname`
169 endif
170
171 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
172 CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
173
174 # Gettext support
175 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
176
177 # Data and plugin location
178 CFLAGS += -DDATA_PATH=\"@prefix@/share/videolan\"
179 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
180
181 ###############################################################################
182 # Tuning and other variables - do not change anything except if you know
183 # exactly what you are doing
184 ###############################################################################
185
186 #
187 # C headers directories
188 #
189 CFLAGS += -Iinclude -Iextras
190
191 #
192 # C compiler flags: mainstream compilation
193 #
194 CFLAGS += -D_REENTRANT
195 CFLAGS += -D_GNU_SOURCE
196
197 ifeq ($(RELEASE),1)
198 CFLAGS += -DHAVE_RELEASE
199 endif
200
201 # Optimizations : don't compile debug versions with them
202 ifeq ($(OPTIMS),1)
203 CFLAGS += @CFLAGS_OPTIM@
204 ifneq ($(DEBUG),1)
205 ifneq ($(GPROF),1)
206 ifneq ($(CPROF),1)
207 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
208 endif
209 endif
210 endif
211
212 ifneq (,$(findstring powerpc,$(ARCH)))
213 # Optimizations for PowerPC
214 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
215 ifneq (,$(TUNING))
216 CFLAGS += -mtune=$(TUNING)
217 endif
218 else
219 ifneq (,$(findstring sparc,$(ARCH)))
220 # Optimizations for Sparc
221 CFLAGS += -mhard-float
222 ifneq (,$(TUNING))
223 CFLAGS += -mcpu=$(TUNING)
224 endif
225 else
226 # Generic optimizations
227 ifneq (,$(TUNING))
228 CFLAGS += -mcpu=$(TUNING)
229 endif
230 endif
231 endif
232
233 #end of optimisations
234 endif
235
236 #
237 # C compiler flags: linking
238 #
239 LDFLAGS += @LDFLAGS@
240 LDFLAGS += -Wall
241 ifneq ($(DEBUG),1)
242 ifneq ($(GPROF),1)
243 ifneq ($(CPROF),1)
244 #LDFLAGS += -s
245 endif
246 endif
247 endif
248
249 #
250 # C compiler flags: plugins and builtins compilation
251 #
252 plugins_CFLAGS += -DPLUGIN -I../../include -I../../extras
253 builtins_CFLAGS += -DBUILTIN -I../../include -I../../extras
254
255 #
256 # Linker flags: plugins and builtins linking
257 #
258 builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
259
260 #
261 # Debugging and profiling support
262 #
263 ifeq ($(DEBUG),1)
264 CFLAGS += -g
265 endif
266
267 ifeq ($(CPROF),1)
268 CFLAGS += -finstrument-functions
269 endif
270
271 ifeq ($(GPROF),1)
272 CFLAGS += -pg
273 endif
274
275