1 ###############################################################################
2 # vlc (VideoLAN Client) options Makefile
4 ###############################################################################
8 ###############################################################################
10 ###############################################################################
40 BCBUILDER = @BCBUILDER@
43 # Installation environment
45 exec_prefix = @exec_prefix@
50 includedir = @includedir@
53 # CFLAGS for special cases
55 vlc_CFLAGS = @vlc_CFLAGS@
56 plugins_CFLAGS := @plugins_CFLAGS@
57 builtins_CFLAGS := @builtins_CFLAGS@
59 a52_CFLAGS = @a52_CFLAGS@
60 arts_CFLAGS = @arts_CFLAGS@
61 dvd_CFLAGS = @dvd_CFLAGS@
62 dvdread_CFLAGS = @dvdread_CFLAGS@
63 mpeg_ts_dvbpsi_CFLAGS = @mpeg_ts_dvbpsi_CFLAGS@
64 directx_CFLAGS = @directx_CFLAGS@
65 esd_CFLAGS = @esd_CFLAGS@
66 familiar_CFLAGS = @familiar_CFLAGS@
67 ffmpeg_CFLAGS = @ffmpeg_CFLAGS@
68 glide_CFLAGS = @glide_CFLAGS@
69 gnome_CFLAGS = @gnome_CFLAGS@
70 gtk_CFLAGS = @gtk_CFLAGS@
71 kde_CFLAGS = @kde_CFLAGS@
72 idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
73 mad_CFLAGS = @mad_CFLAGS@
74 memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
75 motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
76 opie_CFLAGS = @opie_CFLAGS@
77 qt_CFLAGS = @qt_CFLAGS@
78 qte_CFLAGS = @qte_CFLAGS@
79 sdl_CFLAGS = @sdl_CFLAGS@
80 x11_CFLAGS = @x11_CFLAGS@
81 xvideo_CFLAGS = @xvideo_CFLAGS@
84 # Libraries for special cases
86 vlc_LDFLAGS = @vlc_LDFLAGS@
87 plugins_LDFLAGS += @plugins_LDFLAGS@
88 builtins_LDFLAGS += @builtins_LDFLAGS@
90 a52_LDFLAGS = @a52_LDFLAGS@
91 aa_LDFLAGS = @aa_LDFLAGS@
92 alsa_LDFLAGS = @alsa_LDFLAGS@
93 arts_LDFLAGS = @arts_LDFLAGS@
94 beos_LDFLAGS = @beos_LDFLAGS@
95 chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@
96 directx_LDFLAGS = @directx_LDFLAGS@
97 dsp_LDFLAGS = @dsp_LDFLAGS@
98 dvd_LDFLAGS = @dvd_LDFLAGS@
99 dvdread_LDFLAGS = @dvdread_LDFLAGS@
100 mpeg_ts_dvbpsi_LDFLAGS = @mpeg_ts_dvbpsi_LDFLAGS@
101 esd_LDFLAGS = @esd_LDFLAGS@
102 familiar_LDFLAGS = @familiar_LDFLAGS@
103 filter_distort_LDFLAGS = @filter_distort_LDFLAGS@
104 ffmpeg_LDFLAGS = @ffmpeg_LDFLAGS@
105 ggi_LDFLAGS = @ggi_LDFLAGS@
106 glide_LDFLAGS = @glide_LDFLAGS@
107 gnome_LDFLAGS = @gnome_LDFLAGS@
108 gtk_LDFLAGS = @gtk_LDFLAGS@
109 http_LDFLAGS = @http_LDFLAGS@
110 idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@
111 imdct_LDFLAGS = @imdct_LDFLAGS@
112 imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@
113 imdctsse_LDFLAGS = @imdctsse_LDFLAGS@
114 ipv4_LDFLAGS = @ipv4_LDFLAGS@
115 ipv6_LDFLAGS = @ipv6_LDFLAGS@
116 kde_LDFLAGS = @kde_LDFLAGS@
117 lirc_LDFLAGS = @lirc_LDFLAGS@
118 macosx_LDFLAGS = @macosx_LDFLAGS@
119 mad_LDFLAGS = @mad_LDFLAGS@
120 memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@
121 motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@
122 ncurses_LDFLAGS = @ncurses_LDFLAGS@
123 opie_LDFLAGS = @opie_LDFLAGS@
124 qnx_LDFLAGS = @qnx_LDFLAGS@
125 qt_LDFLAGS = @qt_LDFLAGS@
126 qte_LDFLAGS = @qte_LDFLAGS@
127 rc_LDFLAGS = @rc_LDFLAGS@
128 sdl_LDFLAGS = @sdl_LDFLAGS@
129 vcd_LDFLAGS = @vcd_LDFLAGS@
130 vorbis_LDFLAGS = @vorbis_LDFLAGS@
131 waveout_LDFLAGS = @waveout_LDFLAGS@
132 x11_LDFLAGS = @x11_LDFLAGS@
133 xvideo_LDFLAGS = @xvideo_LDFLAGS@
136 # Other special cases
138 NEED_GETOPT = @NEED_GETOPT@
140 ###############################################################################
141 # Configuration pre-processing
142 ###############################################################################
144 # PROGRAM_OPTIONS is an identification string of the compilation options
145 PROGRAM_OPTIONS = $(SYS) $(ARCH)
147 PROGRAM_OPTIONS += DEBUG
151 PROGRAM_OPTIONS += CPROF
155 PROGRAM_OPTIONS += GPROF
159 # PROGRAM_BUILD is a complete identification of the build
160 # (we can't use fancy options with date since OSes like Solaris
161 # or FreeBSD have strange date implementations)
163 # XXX: beos does not support hostname (how lame...)
164 PROGRAM_BUILD = `date` $(USER)
166 PROGRAM_BUILD = `date` $(USER)@`hostname`
169 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
170 CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
173 CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
175 # Data and plugin location
176 CFLAGS += -DDATA_PATH=\"@prefix@/share/videolan\"
177 CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
179 ###############################################################################
180 # Tuning and other variables - do not change anything except if you know
181 # exactly what you are doing
182 ###############################################################################
185 # C headers directories
187 CFLAGS += -Iinclude -Iextras
190 # C compiler flags: mainstream compilation
192 CFLAGS += -D_REENTRANT
193 CFLAGS += -D_GNU_SOURCE
196 CFLAGS += -DHAVE_RELEASE
199 # Optimizations : don't compile debug versions with them
201 CFLAGS += @CFLAGS_OPTIM@
205 CFLAGS += @CFLAGS_OPTIM_NODEBUG@
210 ifneq (,$(findstring powerpc,$(ARCH)))
211 # Optimizations for PowerPC
212 CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
214 CFLAGS += -mtune=$(TUNING)
217 ifneq (,$(findstring sparc,$(ARCH)))
218 # Optimizations for Sparc
219 CFLAGS += -mhard-float
221 CFLAGS += -mcpu=$(TUNING)
224 # Generic optimizations
226 CFLAGS += -mcpu=$(TUNING)
231 #end of optimisations
235 # C compiler flags: linking
248 # C compiler flags: plugins and builtins compilation
250 vlc_CFLAGS += -D__VLC__
251 plugins_CFLAGS += -D__VLC__ -D__PLUGIN__ -I../../include -I../../extras
252 builtins_CFLAGS += -D__VLC__ -D__BUILTIN__ -I../../include -I../../extras
255 # Linker flags: plugins and builtins linking
257 builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
260 # Debugging and profiling support
267 CFLAGS += -finstrument-functions