1 ###############################################################################
2 # vlc (VideoLAN Client) options Makefile
4 ###############################################################################
8 ###############################################################################
10 ###############################################################################
43 BCBUILDER = @BCBUILDER@
46 # Installation environment
48 exec_prefix = @exec_prefix@
53 includedir = @includedir@
56 # CFLAGS for special cases
58 vlc_CFLAGS = @vlc_CFLAGS@
59 plugins_CFLAGS := @plugins_CFLAGS@
60 builtins_CFLAGS := @builtins_CFLAGS@
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@
87 # Libraries for special cases
89 vlc_LDFLAGS = @vlc_LDFLAGS@
90 plugins_LDFLAGS += @plugins_LDFLAGS@
91 builtins_LDFLAGS += @builtins_LDFLAGS@
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@
139 # Other special cases
141 NEED_GETOPT = @NEED_GETOPT@
143 ###############################################################################
144 # Configuration pre-processing
145 ###############################################################################
147 # PROGRAM_OPTIONS is an identification string of the compilation options
148 PROGRAM_OPTIONS = $(SYS) $(ARCH)
150 PROGRAM_OPTIONS += DEBUG
154 PROGRAM_OPTIONS += CPROF
158 PROGRAM_OPTIONS += GPROF
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)
166 # XXX: beos does not support hostname (how lame...)
167 PROGRAM_BUILD = `date` $(USER)
169 PROGRAM_BUILD = `date` $(USER)@`hostname`
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
176 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
178 # Data and plugin location
179 CFLAGS += -DDATA_PATH=\"@prefix@/share/videolan\"
180 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
182 ###############################################################################
183 # Tuning and other variables - do not change anything except if you know
184 # exactly what you are doing
185 ###############################################################################
188 # C headers directories
190 CFLAGS += -Iinclude -Iextras
193 # C compiler flags: mainstream compilation
195 CFLAGS += -D_REENTRANT
196 CFLAGS += -D_GNU_SOURCE
199 CFLAGS += -DHAVE_RELEASE
202 # Optimizations : don't compile debug versions with them
204 CFLAGS += @CFLAGS_OPTIM@
208 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
213 ifneq (,$(findstring powerpc,$(ARCH)))
214 # Optimizations for PowerPC
215 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
217 CFLAGS += -mtune=$(TUNING)
220 ifneq (,$(findstring sparc,$(ARCH)))
221 # Optimizations for Sparc
222 CFLAGS += -mhard-float
224 CFLAGS += -mcpu=$(TUNING)
227 # Generic optimizations
229 CFLAGS += -mcpu=$(TUNING)
234 #end of optimisations
238 # C compiler flags: linking
251 # C compiler flags: plugins and builtins compilation
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
258 # Linker flags: plugins and builtins linking
260 builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
263 # Debugging and profiling support
270 CFLAGS += -finstrument-functions