1 ###############################################################################
2 # vlc (VideoLAN Client) options Makefile
4 ###############################################################################
8 ###############################################################################
10 ###############################################################################
41 BCBUILDER = @BCBUILDER@
44 # Installation environment
46 exec_prefix = @exec_prefix@
51 includedir = @includedir@
54 # CFLAGS for special cases
56 vlc_CFLAGS = @vlc_CFLAGS@
57 plugins_CFLAGS = @plugins_CFLAGS@
58 builtins_CFLAGS = @builtins_CFLAGS@
59 mozilla_CFLAGS = @mozilla_CFLAGS@
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 ffmpeg_CFLAGS = @ffmpeg_CFLAGS@
71 glide_CFLAGS = @glide_CFLAGS@
72 gnome_CFLAGS = @gnome_CFLAGS@
73 gtk_CFLAGS = @gtk_CFLAGS@
74 idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
75 kde_CFLAGS = @kde_CFLAGS@
76 mad_CFLAGS = @mad_CFLAGS@
77 memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
78 motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
79 ts_dvbpsi_CFLAGS = @ts_dvbpsi_CFLAGS@
80 qt_CFLAGS = @qt_CFLAGS@
81 sdl_CFLAGS = @sdl_CFLAGS@
82 x11_CFLAGS = @x11_CFLAGS@
83 xvideo_CFLAGS = @xvideo_CFLAGS@
86 # Libraries for special cases
88 vlc_LDFLAGS = @vlc_LDFLAGS@
89 plugins_LDFLAGS = @plugins_LDFLAGS@
90 builtins_LDFLAGS = @builtins_LDFLAGS@
91 mozilla_LDFLAGS = @mozilla_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 i420_rgb_LDFLAGS = @i420_rgb_LDFLAGS@
99 directx_LDFLAGS = @directx_LDFLAGS@
100 dsp_LDFLAGS = @dsp_LDFLAGS@
101 dv_LDFLAGS = @dv_LDFLAGS@
102 dvd_LDFLAGS = @dvd_LDFLAGS@
103 dvdread_LDFLAGS = @dvdread_LDFLAGS@
104 dvdplay_LDFLAGS = @dvdplay_LDFLAGS@
105 esd_LDFLAGS = @esd_LDFLAGS@
106 familiar_LDFLAGS = @familiar_LDFLAGS@
107 distort_LDFLAGS = @distort_LDFLAGS@
108 ffmpeg_LDFLAGS = @ffmpeg_LDFLAGS@
109 mp4_LDFLAGS = @mp4_LDFLAGS@
110 ggi_LDFLAGS = @ggi_LDFLAGS@
111 glide_LDFLAGS = @glide_LDFLAGS@
112 gnome_LDFLAGS = @gnome_LDFLAGS@
113 gtk_LDFLAGS = @gtk_LDFLAGS@
114 http_LDFLAGS = @http_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 ipv6_LDFLAGS = @ipv6_LDFLAGS@
121 kde_LDFLAGS = @kde_LDFLAGS@
122 lirc_LDFLAGS = @lirc_LDFLAGS@
123 macosx_LDFLAGS = @macosx_LDFLAGS@
124 mad_LDFLAGS = @mad_LDFLAGS@
125 memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@
126 motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@
127 ts_dvbpsi_LDFLAGS = @ts_dvbpsi_LDFLAGS@
128 ncurses_LDFLAGS = @ncurses_LDFLAGS@
129 qnx_LDFLAGS = @qnx_LDFLAGS@
130 qt_LDFLAGS = @qt_LDFLAGS@
131 rc_LDFLAGS = @rc_LDFLAGS@
132 sdl_LDFLAGS = @sdl_LDFLAGS@
133 vcd_LDFLAGS = @vcd_LDFLAGS@
134 vorbis_LDFLAGS = @vorbis_LDFLAGS@
135 waveout_LDFLAGS = @waveout_LDFLAGS@
136 x11_LDFLAGS = @x11_LDFLAGS@
137 xosd_LDFLAGS = @xosd_LDFLAGS@
138 xvideo_LDFLAGS = @xvideo_LDFLAGS@
141 # Other special cases
143 NEED_GETOPT = @NEED_GETOPT@
145 ###############################################################################
146 # Configuration pre-processing
147 ###############################################################################
149 # PROGRAM_OPTIONS is an identification string of the compilation options
150 PROGRAM_OPTIONS = $(SYS) $(ARCH)
152 PROGRAM_OPTIONS += DEBUG
156 PROGRAM_OPTIONS += CPROF
160 PROGRAM_OPTIONS += GPROF
164 # PROGRAM_BUILD is a complete identification of the build
165 # (we can't use fancy options with date since OSes like Solaris
166 # or FreeBSD have strange date implementations)
168 # XXX: beos does not support hostname (how lame...)
169 PROGRAM_BUILD = `date` $(USER)
171 PROGRAM_BUILD = `date` $(USER)@`hostname`
174 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
175 CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
178 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
180 # Data and plugin location
181 CFLAGS += -DDATA_PATH=\"@prefix@/share/vlc\"
182 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
184 ###############################################################################
185 # Tuning and other variables - do not change anything except if you know
186 # exactly what you are doing
187 ###############################################################################
190 # C headers directories
192 CFLAGS += -Iinclude -Iextras
195 # C compiler flags: mainstream compilation
197 CFLAGS += -D_REENTRANT -D_THREAD_SAFE
198 CFLAGS += -D_GNU_SOURCE
201 CFLAGS += -DHAVE_RELEASE
206 # Optimizations : don't compile debug versions with them
208 CFLAGS += @CFLAGS_OPTIM@
212 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
217 ifneq (,$(findstring powerpc,$(ARCH)))
218 # Optimizations for PowerPC
219 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
221 CFLAGS += -mtune=$(TUNING)
224 ifneq (,$(findstring sparc,$(ARCH)))
225 # Optimizations for Sparc
226 CFLAGS += -mhard-float
228 CFLAGS += -mcpu=$(TUNING)
231 # Generic optimizations
233 CFLAGS += -mcpu=$(TUNING)
238 #end of optimisations
242 # C compiler flags: linking
255 # Linker flags: plugins and builtins linking
257 builtins_LDFLAGS += $(shell echo $(BUILTINS) | sed -e 's@[^ ]*/\([^ ]*\)@$$\1_LDFLAGS@g')
260 # Debugging and profiling support
267 CFLAGS += -finstrument-functions