1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 # SUBDIRS stores the directories where a "make" is required when building
6 # something. DIST_SUBDIRS stores the directories where nothing is built but
7 # which have makefiles with distribution information.
8 SUBDIRS = po intl m4 share
9 DIST_SUBDIRS = $(SUBDIRS) modules src debian doc ipkg lib
11 EXTRA_DIST = BUGS FAQ HACKING MAINTAINERS STATUS src/extras/COPYING \
12 INSTALL.win32 README.MacOSX.rtf vlc.spec install-win32 \
13 Modules.am macosx-dmg \
14 configure.ac.in mkinstalldirs bootstrap
19 # List of programs, libraries and headers that need to be built and/or
20 # distributed. Initialized to empty because we'll use += later.
29 # Tell aclocal to use -I m4. Wonder if it really works.
30 ACLOCAL_AMFLAGS = -I m4
32 # XXX: these flags could be set in configure.ac.in, but we set them here
33 # because old versions of automake don't support them in configure.ac.
34 AUTOMAKE_OPTIONS = foreign dist-bzip2 subdir-objects
36 ###############################################################################
37 # Compilation flags for debug mode, profiling, and others
38 ###############################################################################
40 # Standard flags used everywhere to build things in the distribution. Some
41 # of them are empty but might be extended later in the Makefile. *_default
42 # is the default flag list for all files in the distribution, for instance
43 # the vlc code. *_pic is for PIC code, such as the Mozilla plugin. *_plugin
44 # is for plugin code, *_builtin is for builtin code, and *_builtin_pic is
45 # for PIC builtin code, for instance builtin modules in the mozilla plugin.
47 CPPFLAGS_default = -I$(top_srcdir)/include
53 CPPFLAGS_pic = $(CPPFLAGS_default)
54 CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@
55 CXXFLAGS_pic = $(CXXFLAGS_default) @CFLAGS_pics@
56 OBJCFLAGS_pic = $(OBJCFLAGS_default) @CFLAGS_pics@
57 LDFLAGS_pic = $(LDFLAGS_default)
59 CPPFLAGS_plugin = $(CPPFLAGS_default) -D__VLC__ -D__PLUGIN__
60 CFLAGS_plugin = $(CFLAGS_default) @CFLAGS_plugins@
61 CXXFLAGS_plugin = $(CXXFLAGS_default) @CFLAGS_plugins@
62 OBJCFLAGS_plugin = $(OBJCFLAGS_default) @CFLAGS_plugins@
63 LDFLAGS_plugin = @LDFLAGS_plugins@
65 CPPFLAGS_builtin = $(CPPFLAGS_default) -D__VLC__ -D__BUILTIN__
66 CFLAGS_builtin = $(CFLAGS_default) @CFLAGS_builtins@
67 CXXFLAGS_builtin = $(CXXFLAGS_default) @CFLAGS_builtins@
68 OBJCFLAGS_builtin = $(OBJCFLAGS_default) @CFLAGS_builtins@
72 CPPFLAGS_builtin_pic = $(CPPFLAGS_builtin) $(CPPFLAGS_pic)
73 CFLAGS_builtin_pic = $(CFLAGS_builtin) $(CFLAGS_pic)
74 CXXFLAGS_builtin_pic = $(CXXFLAGS_builtin) $(CXXFLAGS_pic)
75 OBJCFLAGS_builtin_pic = $(OBJCFLAGS_builtin) $(OBJCFLAGS_pic)
76 LDFLAGS_builtin_pic = $(LDFLAGS_builtin) $(LDFLAGS_pic)
77 L_builtin_pic = $(L_builtin) $(L_pic)
79 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
80 CPPFLAGS_default += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
81 CPPFLAGS_default += -D_REENTRANT -D_THREAD_SAFE
82 CPPFLAGS_default += -D_GNU_SOURCE
85 CPPFLAGS_default += -DLOCALEDIR=\"$(datadir)/locale\"
87 # Data and plugin location
88 CPPFLAGS_default += -DDATA_PATH=\"@prefix@/share/vlc\"
89 CPPFLAGS_default += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
91 # Conditional flags that get added to *FLAGS_default
93 CPPFLAGS_release = -DHAVE_RELEASE
96 CPPFLAGS_debug = -DDEBUG
100 CPPFLAGS_gprof = -DGPROF
101 CFLAGS_gprof = -finstrument-functions
104 CPPFLAGS_cprof = -DCPROF
108 CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@
115 CFLAGS_nodebug = @CFLAGS_OPTIM_NODEBUG@
121 CPPFLAGS_default += $(CPPFLAGS_release) \
122 $(CPPFLAGS_debug) $(CPPFLAGS_gprof) $(CPPFLAGS_cprof)
123 CFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
124 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
125 CXXFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
126 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
127 OBJCFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
128 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
130 ###############################################################################
132 ###############################################################################
135 include/vlc_symbols.h \
136 src/misc/modules_builtin.h \
137 src/misc/modules_plugin.h \
140 pkgincludedir = $(includedir)/vlc
142 dist_pkginclude_HEADERS = \
147 include/vlc/decoder.h \
148 include/vlc/input.h \
152 noinst_HEADERS += $(HEADERS_include) $(HEADERS_include_built)
155 include/aout_internal.h \
156 include/audio_output.h \
157 include/beos_specific.h \
158 include/configuration.h \
159 include/darwin_specific.h \
162 include/input_ext-dec.h \
163 include/input_ext-intf.h \
164 include/input_ext-plugins.h \
165 include/interface.h \
166 include/intf_eject.h \
171 include/modules_inner.h \
175 include/os_specific.h \
176 include/stream_control.h \
177 include/stream_output.h \
178 include/variables.h \
180 include/video_output.h \
181 include/vlc_common.h \
182 include/vlc_config.h \
184 include/vlc_messages.h \
185 include/vlc_objects.h \
186 include/vlc_playlist.h \
187 include/vlc_threads.h \
188 include/vlc_threads_funcs.h \
189 include/win32_specific.h \
192 HEADERS_include_built = \
193 include/vlc_symbols.h \
196 include/vlc_symbols.h: Makefile $(HEADERS_include)
198 echo '/* DO NOT EDIT THIS FILE! See Makefile.am */' >> $@.in
199 echo 'struct module_symbols_t {' >> $@.in
200 cat $(HEADERS_include) | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/ \1 (* \2_inner) \3;/' >> $@.in
202 echo '#ifdef __PLUGIN__' >> $@.in
203 cat $(HEADERS_include) | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/# define \2 p_symbols->\2_inner/' >> $@.in
204 echo '#endif /* __PLUGIN__ */' >> $@.in
207 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
208 rm -f $@.tmp && cp $@.in $@.tmp
209 sed -e 's#.*\$[I][d]:.*# * Automatically generated from '$@'.in by bootstrap#' < $@.in > $@.tmp
210 echo '#define STORE_SYMBOLS( p_symbols ) \' >> $@.tmp
211 cat $(HEADERS_include) | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/ (p_symbols)->\2_inner = \2; \\/' >> $@.tmp
215 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
216 rm -f $@.tmp && cp $@.in $@.tmp
218 for i in $(BUILTINS) ; do echo "int vlc_entry__"`echo $$i | sed -e 'y@/@_@' -e 's@\..*@@'`"( module_t* );" >>$@.tmp; done
221 echo "#define ALLOCATE_ALL_BUILTINS() \\" >> $@.tmp
222 echo " do \\" >> $@.tmp
223 echo " { \\" >> $@.tmp
225 for i in $(BUILTINS) ; do echo " ALLOCATE_BUILTIN("`echo $$i | sed -e 'y@/@_@' -e 's@\..*@@'`"); \\" >> $@.tmp ; done
227 echo " } while( 0 );" >> $@.tmp
231 # These dependencies are mandatory
232 $(SOURCES): include/vlc_symbols.h
233 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
235 ###############################################################################
236 # Optional libintl - FIXME, bad dependencies
237 ###############################################################################
239 intl/libintl.a: FORCE
243 LIB_intl = intl/libintl.a
246 ###############################################################################
248 ###############################################################################
251 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
252 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
253 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
254 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
255 extras/MacOSX/Resources/divx.icns \
256 extras/MacOSX/Resources/generic.icns \
257 extras/MacOSX/Resources/mpeg.icns \
258 extras/MacOSX/Resources/mpeg1.icns \
259 extras/MacOSX/Resources/mpeg2.icns \
260 extras/MacOSX/Resources/mpeg4.icns \
261 extras/MacOSX/Resources/vlc.icns \
262 extras/MacOSX/Resources/pause.png \
263 extras/MacOSX/Resources/play.png \
264 extras/MacOSX/Resources/stop.png \
265 extras/MacOSX/Resources/stepf.png \
266 extras/MacOSX/Resources/stepr.png \
267 extras/MacOSX/vlc.pbproj/project.pbxproj \
270 ###############################################################################
271 # MS Visual Studio project
272 ###############################################################################
280 msvc/modules_builtin_msvc.h \
284 # rule to rebuild vlc.dsp - not for the faint of heart
286 update-vlc.dsp: FORCE
288 # Top of the project file
289 cat msvc/vlc.dsp.in > msvc/vlc.dsp
291 echo '# Begin Group "Source Files"
\r' >> msvc/vlc.dsp
292 echo '# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
\r' >> msvc/vlc.dsp
293 echo '# Begin Group "vlc"
\r' >> msvc/vlc.dsp
294 for file in $(vlc_SOURCES) ; do \
295 echo '# Begin Source File
\r' >> msvc/vlc.dsp ; \
296 echo $$file | sed -e 's%/%\\%g' -e 's%.*%SOURCE="..\\&"
\r%' >> msvc/vlc.dsp ; \
297 echo '# End Source File
\r' >> msvc/vlc.dsp ; \
299 echo '# End Group
\r' >> msvc/vlc.dsp
300 echo '# Begin Group "libvlc"
\r' >> msvc/vlc.dsp
301 for file in `for i in $(SOURCES_libvlc) $(OPT_SOURCES_libvlc_win32) $(OPT_SOURCES_libvlc_dirent) $(OPT_SOURCES_libvlc_getopt) ; do echo $$i ; done | grep -v "/.*/"` ; do \
302 echo '# Begin Source File
\r' >> msvc/vlc.dsp ; \
303 echo $$file | sed -e 's%/%\\%g' -e 's%.*%SOURCE="..\\&"
\r%' >> msvc/vlc.dsp ; \
304 echo '# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\"
\r' >> msvc/vlc.dsp ; \
305 echo '# End Source File
\r' >> msvc/vlc.dsp ; \
307 for subdir in `for i in $(SOURCES_libvlc) $(OPT_SOURCES_libvlc_win32) $(OPT_SOURCES_libvlc_dirent) $(OPT_SOURCES_libvlc_getopt) ; do echo $$i ; done | grep "/.*/" | cut -f2 -d/ | sort | uniq` ; do \
308 echo '# Begin Group "'$$subdir'"
\r' >> msvc/vlc.dsp ; \
309 for file in `for i in $(SOURCES_libvlc) $(OPT_SOURCES_libvlc_win32) $(OPT_SOURCES_libvlc_dirent) $(OPT_SOURCES_libvlc_getopt) ; do echo $$i ; done | grep "/$$subdir/"` ; do \
310 echo '# Begin Source File
\r' >> msvc/vlc.dsp ; \
311 echo $$file | sed -e 's%/%\\%g' -e 's%.*%SOURCE="..\\&"
\r%' >> msvc/vlc.dsp ; \
312 echo '# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\"
\r' >> msvc/vlc.dsp ; \
313 echo '!IF "$$(CFG)" == "vlc - Win32 Release"
\r' >> msvc/vlc.dsp ; \
314 echo '# PROP Intermediate_Dir "Release\'$$subdir'"
\r' >> msvc/vlc.dsp ; \
315 echo '# PROP Output_Dir "Release\'$$subdir'"
\r' >> msvc/vlc.dsp ; \
316 echo '!ELSEIF "$$(CFG)" == "vlc - Win32 Debug"
\r' >> msvc/vlc.dsp ; \
317 echo '# PROP Intermediate_Dir "Debug\'$$subdir'"
\r' >> msvc/vlc.dsp ; \
318 echo '# PROP Output_Dir "Debug\'$$subdir'"
\r' >> msvc/vlc.dsp ; \
319 echo '!ENDIF
\r' >> msvc/vlc.dsp ; \
320 echo '# End Source File
\r' >> msvc/vlc.dsp ; \
322 echo '# End Group
\r' >> msvc/vlc.dsp ; \
324 echo '# End Group
\r' >> msvc/vlc.dsp
325 echo '# End Group
\r' >> msvc/vlc.dsp
327 echo 'no modules yet'
329 echo '# Begin Group "Header Files"
\r' >> msvc/vlc.dsp
330 echo '# PROP Default_Filter "h;hpp;hxx;hm;inl"
\r' >> msvc/vlc.dsp
331 for file in $(HEADERS_include) $(HEADERS_include_built) ; do \
332 echo '# Begin Source File
\r' >> msvc/vlc.dsp ; \
333 echo $$file | sed -e 's%/%\\%g' -e 's%.*%SOURCE="..\\&"
\r%' >> msvc/vlc.dsp ; \
334 echo '# End Source File
\r' >> msvc/vlc.dsp ; \
336 echo '# Begin Group "vlc"
\r' >> msvc/vlc.dsp
337 for file in $(dist_pkginclude_HEADERS) ; do \
338 echo '# Begin Source File
\r' >> msvc/vlc.dsp ; \
339 echo $$file | sed -e 's%/%\\%g' -e 's%.*%SOURCE="..\\&"
\r%' >> msvc/vlc.dsp ; \
340 echo '# End Source File
\r' >> msvc/vlc.dsp ; \
342 echo '# End Group
\r' >> msvc/vlc.dsp
343 echo '# End Group
\r' >> msvc/vlc.dsp
344 # Bottom of the project file - handles resource files too
345 cat msvc/vlc.dsp.out >> msvc/vlc.dsp
347 ###############################################################################
349 ###############################################################################
351 bin_SCRIPTS = vlc-config
353 lib_LIBRARIES += lib/libvlc.a $(LIBRARIES_libvlc_pic)
355 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
356 lib_libvlc_a_CFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CFLAGS_default) @CFLAGS_vlc@
357 lib_libvlc_a_CXXFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CXXFLAGS_default)
359 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
360 lib_libvlc_pic_a_CFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CFLAGS_pic) @CFLAGS_vlc@
361 lib_libvlc_pic_a_CXXFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CXXFLAGS_pic)
364 SOURCES_libvlc_beos = $(OPT_SOURCES_libvlc_beos)
367 SOURCES_libvlc_darwin = $(OPT_SOURCES_libvlc_darwin)
370 SOURCES_libvlc_win32 = $(OPT_SOURCES_libvlc_win32)
373 SOURCES_libvlc_dirent = $(OPT_SOURCES_libvlc_dirent)
376 SOURCES_libvlc_getopt = $(OPT_SOURCES_libvlc_getopt)
379 SOURCES_libvlc_strndup = $(OPT_SOURCES_libvlc_strndup)
382 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
386 $(OPT_SOURCES_libvlc_beos) \
387 $(OPT_SOURCES_libvlc_darwin) \
388 $(OPT_SOURCES_libvlc_win32) \
389 $(OPT_SOURCES_libvlc_dirent) \
390 $(OPT_SOURCES_libvlc_getopt) \
391 $(OPT_SOURCES_libvlc_strndup) \
394 OPT_SOURCES_libvlc_beos = \
395 src/misc/beos_specific.cpp \
398 OPT_SOURCES_libvlc_darwin = \
399 src/misc/darwin_specific.c \
402 OPT_SOURCES_libvlc_win32 = \
403 src/misc/win32_specific.c \
406 OPT_SOURCES_libvlc_dirent = \
407 src/extras/dirent.c \
408 src/extras/dirent.h \
411 OPT_SOURCES_libvlc_getopt = \
412 src/extras/getopt.c \
413 src/extras/getopt.h \
414 src/extras/getopt1.c \
417 OPT_SOURCES_libvlc_strndup = \
424 src/interface/interface.c \
425 src/interface/intf_eject.c \
426 src/playlist/playlist.c \
428 src/input/input_ext-plugins.c \
429 src/input/input_ext-dec.c \
430 src/input/input_ext-intf.c \
431 src/input/input_dec.c \
432 src/input/input_programs.c \
433 src/input/input_clock.c \
434 src/input/input_info.c \
435 src/video_output/video_output.c \
436 src/video_output/vout_pictures.c \
437 src/video_output/vout_pictures.h \
438 src/video_output/video_text.c \
439 src/video_output/video_text.h \
440 src/video_output/vout_subpictures.c \
441 src/audio_output/common.c \
442 src/audio_output/dec.c \
443 src/audio_output/filters.c \
444 src/audio_output/input.c \
445 src/audio_output/mixer.c \
446 src/audio_output/output.c \
447 src/audio_output/intf.c \
448 src/stream_output/stream_output.c \
453 src/misc/configuration.c \
454 src/misc/netutils.c \
455 src/misc/iso_lang.c \
456 src/misc/iso-639.def \
457 src/misc/messages.c \
459 src/misc/variables.c \
461 $(SOURCES_libvlc_beos) \
462 $(SOURCES_libvlc_darwin) \
463 $(SOURCES_libvlc_win32) \
464 $(SOURCES_libvlc_dirent) \
465 $(SOURCES_libvlc_getopt) \
466 $(SOURCES_libvlc_strndup) \
469 ###############################################################################
471 ###############################################################################
475 vlc_SOURCES = src/vlc.c
477 # @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin)
478 # but we don't write it directly, otherwise automake will go amok and eat all
479 # the memory because of its 2^N crap algorithm. So we fool him. Nuahaha.
480 vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) \
481 $(DATA_win32_rc) $(LIB_intl) @AUTOMAKE_SUCKS@
482 vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default)
484 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
485 # old automake-1.5 bug (automake/279).
486 DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
488 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
490 $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
492 xres -o $@ ./share/vlc_beos.rsrc
496 # Install the symlinks
498 for i in dummy $(ALIASES) ; do if test "x$$i" != "xdummy" ; then \
499 rm -f $(DESTDIR)$(bindir)/$$i && \
500 ln -s vlc $(DESTDIR)$(bindir)/$$i ; \
504 # Create the MacOS X app
505 vlc_app_DATA = vlc.app
506 vlc_appdir = $(bindir)
507 vlc.app: vlc $(PLUGIN_FILES)
509 cd extras/MacOSX ; pbxbuild | grep -v '^[ \t]' | grep -v "^$$"
510 cp -r extras/MacOSX/build/vlc.bundle ./vlc.app
511 $(INSTALL) -d vlc.app/Contents/MacOS
512 $(INSTALL) vlc vlc.app/Contents/MacOS/
513 $(INSTALL) -d vlc.app/Contents/MacOS/modules
514 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
515 $(INSTALL) $$i vlc.app/Contents/MacOS/modules/ ; \
517 $(INSTALL) -d vlc.app/Contents/MacOS/share
518 $(INSTALL) -m 644 share/*.psf vlc.app/Contents/MacOS/share
522 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
523 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
524 noinst_share_vlc_win32_rcdir = $(libdir)
525 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
526 $(WINDRES) -i $< -o $@
529 ###############################################################################
530 # Building the Mozilla plugin
531 ###############################################################################
533 noinst_LIBRARIES += $(noinst_LIBRARIES_mozilla)
535 MOSTLYCLEANFILES += $(LIBRARIES_mozilla)
537 EXTRA_DIST += $(SOURCES_mozilla) mozilla/vlcintf.idl
539 BUILT_SOURCES += $(BUILT_SOURCES_mozilla)
542 mozilla/vlcshell.cpp \
543 mozilla/vlcplugin.cpp \
544 mozilla/vlcplugin.h \
545 mozilla/vlcpeer.cpp \
547 mozilla/classinfo.h \
548 $(SOURCES_mozilla_win32) \
549 $(SOURCES_mozilla_unix) \
552 # Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix
553 # the common naming scheme is lib******plugin.so. Also, we need npwin.cpp
554 # under Win32 and npunix.c under Unix.
556 LIBRARIES_mozilla = mozilla/npvlc$(LIBEXT)
557 SOURCES_mozilla_win32 = mozilla/npwin.cpp
558 CPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32
560 LIBRARIES_mozilla = mozilla/libvlcplugin$(LIBEXT)
561 SOURCES_mozilla_unix = mozilla/npunix.c
566 noinst_LIBRARIES_mozilla = mozilla/libplugin.a
569 mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) $(BUILT_SOURCES_mozilla)
570 mozilla_libplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \
571 $(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \
572 $(CPPFLAGS_mozilla_EXTRA)
573 mozilla_libplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
574 $(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \
575 $(CPPFLAGS_mozilla_EXTRA)
576 mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc)
578 BUILT_SOURCES_mozilla = mozilla/vlcintf.h
579 $(SOURCES_mozilla): mozilla/vlcintf.h
581 mozilla_plugin_DATA = $(LIBRARIES_mozilla)
582 mozilla_plugindir = $(libdir)/mozilla/plugins
583 $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \
584 $(mozilla_libplugin_a_DEPENDENCIES) \
586 $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
587 lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \
588 $(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic)
590 mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
591 mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
592 mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl
593 $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
594 -o mozilla/vlcintf mozilla/vlcintf.idl
596 mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl
597 $(XPIDL) -I/usr/share/idl/mozilla -m header \
598 -o mozilla/vlcintf mozilla/vlcintf.idl
601 DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA)
602 noinst_mozilla_npvlc_rc_DATA = mozilla/npvlc_rc.$(OBJEXT)
603 noinst_mozilla_npvlc_rcdir = $(libdir)
604 mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc
605 $(WINDRES) -i $< -o $@
609 ###############################################################################
611 ###############################################################################
612 MOSTLYCLEANFILES += $(PLUGIN_FILES)
615 libvlcdir = $(libdir)/vlc
619 ###############################################################################
621 ###############################################################################