1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
7 # SUBDIRS stores the directories where a "make" is required when building
8 # something. DIST_SUBDIRS stores the directories where nothing is built but
9 # which have makefiles with distribution information.
10 SUBDIRS = po intl m4 share
11 DIST_SUBDIRS = $(SUBDIRS) modules src debian doc ipkg lib autotools
31 # List of programs, libraries and headers that need to be built and/or
32 # distributed. Initialized to empty because we'll use += later.
41 # Tell aclocal to use -I m4. Wonder if it really works.
42 ACLOCAL_AMFLAGS = -I m4
44 # XXX: these flags could be set in configure.ac.in, but we set them here
45 # because old versions of automake don't support them in configure.ac.
46 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
48 ###############################################################################
49 # Compilation flags for debug mode, profiling, and others
50 ###############################################################################
52 # Standard flags used everywhere to build things in the distribution. Some
53 # of them are empty but might be extended later in the Makefile. *_default
54 # is the default flag list for all files in the distribution, for instance
55 # the vlc code. *_pic is for PIC code, such as the Mozilla plugin. *_plugin
56 # is for plugin code, *_builtin is for builtin code, and *_builtin_pic is
57 # for PIC builtin code, for instance builtin modules in the mozilla plugin.
59 CPPFLAGS_default = -I$(top_srcdir)/include
65 CPPFLAGS_pic = $(CPPFLAGS_default)
66 CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@
67 CXXFLAGS_pic = $(CXXFLAGS_default) @CFLAGS_pics@
68 OBJCFLAGS_pic = $(OBJCFLAGS_default) @CFLAGS_pics@
69 LDFLAGS_pic = $(LDFLAGS_default)
71 CPPFLAGS_plugin = $(CPPFLAGS_default) -D__VLC__ -D__PLUGIN__
72 CFLAGS_plugin = $(CFLAGS_default) @CFLAGS_plugins@
73 CXXFLAGS_plugin = $(CXXFLAGS_default) @CFLAGS_plugins@
74 OBJCFLAGS_plugin = $(OBJCFLAGS_default) @CFLAGS_plugins@
75 LDFLAGS_plugin = @LDFLAGS_plugins@
77 CPPFLAGS_builtin = $(CPPFLAGS_default) -D__VLC__ -D__BUILTIN__
78 CFLAGS_builtin = $(CFLAGS_default) @CFLAGS_builtins@
79 CXXFLAGS_builtin = $(CXXFLAGS_default) @CFLAGS_builtins@
80 OBJCFLAGS_builtin = $(OBJCFLAGS_default) @CFLAGS_builtins@
84 CPPFLAGS_builtin_pic = $(CPPFLAGS_builtin) $(CPPFLAGS_pic)
85 CFLAGS_builtin_pic = $(CFLAGS_builtin) $(CFLAGS_pic)
86 CXXFLAGS_builtin_pic = $(CXXFLAGS_builtin) $(CXXFLAGS_pic)
87 OBJCFLAGS_builtin_pic = $(OBJCFLAGS_builtin) $(OBJCFLAGS_pic)
88 LDFLAGS_builtin_pic = $(LDFLAGS_builtin) $(LDFLAGS_pic)
89 L_builtin_pic = $(L_builtin) $(L_pic)
91 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
92 CPPFLAGS_default += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
93 CPPFLAGS_default += -D_REENTRANT -D_THREAD_SAFE
94 CPPFLAGS_default += -D_GNU_SOURCE
97 CPPFLAGS_default += -DLOCALEDIR=\"$(datadir)/locale\"
99 # Data and plugin location
100 CPPFLAGS_default += -DDATA_PATH=\"@prefix@/share/vlc\"
101 CPPFLAGS_default += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
103 # Conditional flags that get added to *FLAGS_default
105 CPPFLAGS_release = -DHAVE_RELEASE
108 CPPFLAGS_debug = -DDEBUG
112 CPPFLAGS_gprof = -DGPROF
113 CFLAGS_gprof = -finstrument-functions
116 CPPFLAGS_cprof = -DCPROF
120 CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@
127 CFLAGS_nodebug = @CFLAGS_OPTIM_NODEBUG@
133 CFLAGS_optim = @CFLAGS_NOOPTIM@
136 CPPFLAGS_default += $(CPPFLAGS_release) \
137 $(CPPFLAGS_debug) $(CPPFLAGS_gprof) $(CPPFLAGS_cprof)
138 CFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
139 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
140 CXXFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
141 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
142 OBJCFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
143 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
145 ###############################################################################
147 ###############################################################################
150 include/vlc_symbols.h \
151 src/misc/modules_builtin.h \
152 src/misc/modules_plugin.h \
155 pkgincludedir = $(includedir)/vlc
157 dist_pkginclude_HEADERS = \
162 include/vlc/decoder.h \
163 include/vlc/input.h \
167 noinst_HEADERS += $(HEADERS_include) $(HEADERS_include_built)
170 include/aout_internal.h \
171 include/audio_output.h \
172 include/beos_specific.h \
173 include/configuration.h \
174 include/darwin_specific.h \
178 include/input_ext-dec.h \
179 include/input_ext-intf.h \
180 include/input_ext-plugins.h \
181 include/interface.h \
182 include/intf_eject.h \
188 include/modules_inner.h \
192 include/os_specific.h \
193 include/stream_control.h \
194 include/stream_output.h \
195 include/variables.h \
197 include/video_output.h \
198 include/vlc_common.h \
199 include/vlc_config.h \
201 include/vlc_messages.h \
202 include/vlc_objects.h \
203 include/vlc_playlist.h \
204 include/vlc_threads.h \
205 include/vlc_threads_funcs.h \
206 include/vout_synchro.h \
207 include/win32_specific.h \
211 HEADERS_include_built = \
212 include/vlc_symbols.h \
215 include/vlc_symbols.h: Makefile $(HEADERS_include)
216 ./toolbox --update-includes $(BUILTINS)
218 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
219 ./toolbox --update-includes $(BUILTINS)
221 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
222 ./toolbox --update-includes $(BUILTINS)
224 # These dependencies are mandatory
225 $(SOURCES): include/vlc_symbols.h
226 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
228 ###############################################################################
229 # Optional libintl - FIXME, bad dependencies
230 ###############################################################################
232 intl/libintl.a: FORCE
236 LIB_intl = intl/libintl.a
239 ###############################################################################
241 ###############################################################################
244 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
245 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
246 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
247 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
248 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
249 extras/MacOSX/Resources/divx.icns \
250 extras/MacOSX/Resources/generic.icns \
251 extras/MacOSX/Resources/mpeg.icns \
252 extras/MacOSX/Resources/mpeg1.icns \
253 extras/MacOSX/Resources/mpeg2.icns \
254 extras/MacOSX/Resources/mpeg4.icns \
255 extras/MacOSX/Resources/vlc.icns \
256 extras/MacOSX/Resources/back.png \
257 extras/MacOSX/Resources/begin.png \
258 extras/MacOSX/Resources/end.png \
259 extras/MacOSX/Resources/forw.png \
260 extras/MacOSX/Resources/list.png \
261 extras/MacOSX/Resources/pause.png \
262 extras/MacOSX/Resources/play.png \
263 extras/MacOSX/Resources/prefs.png \
264 extras/MacOSX/Resources/slow.png \
265 extras/MacOSX/Resources/stop.png \
266 extras/MacOSX/Resources/vlc_hg.png \
267 extras/MacOSX/Resources/about_bg.png \
268 extras/MacOSX/Resources/vlc.scriptSuite \
269 extras/MacOSX/Resources/README \
270 extras/MacOSX/vlc.pbproj/project.pbxproj \
271 extras/MacOSX/macosx-dmg \
274 ###############################################################################
275 # MS Visual Studio and eMbedded Visual Studio projects
276 ###############################################################################
281 msvc/plugins.dsp.in \
284 msvc/modules_builtin_msvc.h \
291 evc/modules_builtin_evc.h \
294 show-libvlc-sources: FORCE
295 @echo X: $(SOURCES_libvlc_common) $(SOURCES_libvlc_win32) $(SOURCES_libvlc_dirent) $(SOURCES_libvlc_getopt)
297 show-libvlc-headers: FORCE
298 @echo X: $(HEADERS_include) $(HEADERS_include_built)
300 show-libvlc-pkg-headers: FORCE
301 @echo X: $(dist_pkginclude_HEADERS)
304 cd $(distdir); ./toolbox --update-vc
306 ###############################################################################
308 ###############################################################################
310 bin_SCRIPTS = vlc-config
312 lib_LIBRARIES += lib/libvlc.a $(LIBRARIES_libvlc_pic)
314 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
315 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
316 lib_libvlc_a_CFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CFLAGS_default) @CFLAGS_vlc@
317 lib_libvlc_a_CXXFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CXXFLAGS_default)
318 lib_libvlc_a_OBJCFLAGS = $(CPPFLAGS_default) -D__VLC__ $(OBJCFLAGS_default)
320 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
321 lib_libvlc_pic_a_CFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CFLAGS_pic) @CFLAGS_vlc@
322 lib_libvlc_pic_a_CXXFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CXXFLAGS_pic)
323 lib_libvlc_pic_a_OBJCFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(OBJCFLAGS_pic)
326 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
329 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
332 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
335 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
338 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
341 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
345 $(SOURCES_libvlc_beos) \
346 $(SOURCES_libvlc_darwin) \
347 $(SOURCES_libvlc_win32) \
348 $(SOURCES_libvlc_dirent) \
349 $(SOURCES_libvlc_getopt) \
352 SOURCES_libvlc_beos = \
353 src/misc/beos_specific.cpp \
356 SOURCES_libvlc_darwin = \
357 src/misc/darwin_specific.m \
360 SOURCES_libvlc_win32 = \
361 src/misc/win32_specific.c \
364 SOURCES_libvlc_dirent = \
365 src/extras/dirent.c \
366 src/extras/dirent.h \
369 SOURCES_libvlc_getopt = \
370 src/extras/getopt.c \
371 src/extras/getopt.h \
372 src/extras/getopt1.c \
375 SOURCES_libvlc_common = \
378 src/interface/interface.c \
379 src/interface/intf_eject.c \
380 src/playlist/playlist.c \
382 src/input/input_ext-plugins.c \
383 src/input/input_ext-dec.c \
384 src/input/input_ext-intf.c \
385 src/input/input_dec.c \
386 src/input/input_programs.c \
387 src/input/input_clock.c \
388 src/input/input_info.c \
389 src/video_output/video_output.c \
390 src/video_output/vout_pictures.c \
391 src/video_output/vout_pictures.h \
392 src/video_output/video_text.c \
393 src/video_output/video_text.h \
394 src/video_output/vout_subpictures.c \
395 src/video_output/vout_synchro.c \
396 src/audio_output/common.c \
397 src/audio_output/dec.c \
398 src/audio_output/filters.c \
399 src/audio_output/input.c \
400 src/audio_output/mixer.c \
401 src/audio_output/output.c \
402 src/audio_output/intf.c \
403 src/stream_output/stream_output.c \
408 src/misc/configuration.c \
409 src/misc/netutils.c \
410 src/misc/iso_lang.c \
411 src/misc/iso-639_def.h \
412 src/misc/messages.c \
414 src/misc/variables.c \
420 $(SOURCES_libvlc_common) \
421 $(OPT_SOURCES_libvlc_beos) \
422 $(OPT_SOURCES_libvlc_darwin) \
423 $(OPT_SOURCES_libvlc_win32) \
424 $(OPT_SOURCES_libvlc_dirent) \
425 $(OPT_SOURCES_libvlc_getopt) \
428 ###############################################################################
430 ###############################################################################
434 vlc_SOURCES = src/vlc.c
436 # @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin)
437 # but we don't write it directly, otherwise automake will go amok and eat all
438 # the memory because of its 2^N crap algorithm. So we fool him. Nuahaha.
439 vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) \
440 $(DATA_win32_rc) $(LIB_intl) @AUTOMAKE_SUCKS@
441 vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default)
443 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
444 # old automake-1.5 bug (automake/279).
445 DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
447 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
449 $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
452 xres -o $@ ./share/vlc_beos.rsrc
454 rm -Rf locale ; mkdir locale
455 for i in $(ALL_LINGUAS); do \
456 mkdir -p locale/$${i}/LC_MESSAGES ; \
457 cp po/$${i}.gmo locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
461 # Install the symlinks
463 for i in dummy $(ALIASES) ; do if test "x$$i" != "xdummy" ; then \
464 rm -f $(DESTDIR)$(bindir)/$$i && \
465 ln -s vlc $(DESTDIR)$(bindir)/$$i ; \
469 # Create the MacOS X app
470 vlc_app_DATA = VLC.app
471 vlc_appdir = $(bindir)
472 VLC.app: vlc $(PLUGIN_FILES)
474 cd extras/MacOSX ; pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
475 cp -r extras/MacOSX/build/vlc.bundle ./VLC.app
476 $(INSTALL) -d VLC.app/Contents/MacOS
477 $(INSTALL) vlc VLC.app/Contents/MacOS/VLC
478 $(INSTALL) -d VLC.app/Contents/MacOS/modules
479 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
480 $(INSTALL) $$i VLC.app/Contents/MacOS/modules/ ; \
482 $(INSTALL) -d VLC.app/Contents/MacOS/share
483 $(INSTALL) -m 644 share/*.psf share/*.rle VLC.app/Contents/MacOS/share
484 $(INSTALL) -d VLC.app/Contents/MacOS/locale
485 for i in $(ALL_LINGUAS); do \
486 mkdir -p VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
487 cp po/$${i}.gmo VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
488 mkdir -p VLC.app/Contents/Resources/$${i}.lproj ; \
489 ln -sf ../English.lproj/InfoPlist.strings VLC.app/Contents/Resources/$${i}.lproj ; \
490 ln -sf ../English.lproj/MainMenu.nib VLC.app/Contents/Resources/$${i}.lproj ; \
491 ln -sf ../English.lproj/vlc.scriptTerminology VLC.app/Contents/Resources/$${i}.lproj ; \
493 echo -n "APPLVLC#" >| VLC.app/Contents/PkgInfo
497 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
498 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
499 noinst_share_vlc_win32_rcdir = $(libdir)
500 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
501 $(WINDRES) --include-dir share -i $< -o $@
504 ###############################################################################
505 # Building architecture-specific binary packages
506 ###############################################################################
508 # XXX: this rule is probably only useful to you if you have exactly
509 # the same setup as me. Contact sam@zoy.org if you need to use it.
511 # Check that tmp isn't in the way
513 @if test -e tmp; then \
514 echo "Error: please remove ./tmp, it is in the way"; false; \
516 echo "OK."; mkdir tmp; \
518 # Create installation script
519 cp install-win32 tmp/nsi
520 # Copy relevant files
523 cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
524 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
525 do cp $$file tmp/$${file}.txt ; \
526 unix2dos tmp/$${file}.txt ; done
529 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
530 $(INSTALL) $$i tmp/plugins/ ; \
533 for i in dummy tmp/plugins/*$(LIBEXT) ; \
534 do if test $$i != tmp/plugins/libwin32_plugin$(LIBEXT) \
535 -a $$i != dummy ; then $(STRIP) $$i ; fi ; done
538 cp share/*.rle tmp/share/ ;
541 for i in $(ALL_LINGUAS); do \
542 mkdir -p tmp/locale/$${i}/LC_MESSAGES ; \
543 cp po/$${i}.gmo tmp/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
546 mkdir -p tmp/skins/default
547 for i in share/skins/default/*.*; do \
548 cp $$i tmp/skins/default/ || true ; \
550 for i in doc/skins/*.txt; do \
551 cp $$i tmp/skins/ || true ; \
554 cd doc/faq ; $(MAKE) html ; cd ../.. ;
555 cp doc/faq/index.html tmp/FAQ.htm ;
558 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} tmp/nsi
563 # Check that tmp isn't in the way
564 @if test -e tmp; then \
565 echo "Error: please remove ./tmp, it is in the way"; false; \
567 echo "OK."; mkdir tmp; \
570 # Copy relevant files
572 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/
573 # We cannot use ${PLUGIN_FILES}, it looks like it is too long for the BeOS shell...
574 if [ `find modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
575 mkdir -p tmp/vlc/plugins; \
576 find modules -name "lib*_plugin.so" | xargs -i{} cp {} tmp/vlc/plugins/; \
578 for i in $(ALL_LINGUAS); do \
579 mkdir -p tmp/vlc/locale/$${i}/LC_MESSAGES ; \
580 cp po/$${i}.gmo tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
582 mkdir -p tmp/vlc/share
583 cp share/*.rle tmp/vlc/share/
585 # Create package with debug symbols
586 mimeset -f tmp/vlc/* tmp/vlc/*/*
587 mv tmp/vlc tmp/vlc-${VERSION}
588 (cd tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
589 mv tmp/vlc-${VERSION}-BeOS.zip .
591 # Create package without debug symbols
592 strip tmp/vlc-${VERSION}/vlc tmp/vlc-${VERSION}/plugins/lib*_plugin.so
593 xres -o tmp/vlc-${VERSION}/vlc share/vlc_beos.rsrc
594 mimeset -f tmp/vlc-${VERSION}/* tmp/vlc-${VERSION}/*/*
595 (cd tmp ; zip -9 -r vlc-${VERSION}-BeOS-stripped.zip vlc-${VERSION} )
596 mv tmp/vlc-${VERSION}-BeOS-stripped.zip .
602 # Check that tmp isn't in the way
603 @if test -e tmp; then \
604 echo "Error: please remove ./tmp, it is in the way"; false; \
606 echo "OK."; mkdir tmp; \
609 # Copy relevant files
611 cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS tmp/
614 ./extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" tmp/*
619 ###############################################################################
620 # Building the Mozilla plugin
621 ###############################################################################
623 noinst_LIBRARIES += $(noinst_LIBRARIES_mozilla)
625 MOSTLYCLEANFILES += $(LIBRARIES_mozilla)
627 EXTRA_DIST += $(SOURCES_mozilla) mozilla/vlcintf.idl
629 BUILT_SOURCES += $(BUILT_SOURCES_mozilla)
632 mozilla/vlcshell.cpp \
633 mozilla/vlcplugin.cpp \
634 mozilla/vlcplugin.h \
635 mozilla/vlcpeer.cpp \
637 mozilla/support/classinfo.h \
638 $(SOURCES_mozilla_win32) \
639 $(SOURCES_mozilla_macosx) \
640 $(SOURCES_mozilla_unix) \
643 # Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix
644 # the common naming scheme is lib******plugin.so. Also, we need npwin.cpp
645 # under Win32 and npunix.c under Unix.
647 LIBRARIES_mozilla = mozilla/npvlc$(LIBEXT)
648 SOURCES_mozilla_win32 = mozilla/support/npwin.cpp
649 CPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32
652 # We don't define LIBRARIES_mozilla because we'll be using project builder
653 SOURCES_mozilla_macosx = mozilla/support/npmac.cpp
655 LIBRARIES_mozilla = mozilla/libvlcplugin$(LIBEXT)
656 SOURCES_mozilla_unix = mozilla/support/npunix.c
662 noinst_LIBRARIES_mozilla = mozilla/libplugin.a
665 mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla)
666 mozilla_libplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \
667 $(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \
668 $(CPPFLAGS_mozilla_EXTRA)
669 mozilla_libplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
670 $(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \
671 $(CPPFLAGS_mozilla_EXTRA)
672 mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc)
674 BUILT_SOURCES_mozilla = mozilla/vlcintf.h
675 $(SOURCES_mozilla): mozilla/vlcintf.h
677 mozilla_plugin_DATA = $(LIBRARIES_mozilla)
678 mozilla_plugindir = $(libdir)/mozilla/plugins
679 $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \
680 $(mozilla_libplugin_a_DEPENDENCIES) \
682 $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
683 lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \
684 $(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic)
686 mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
687 mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
688 mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl
689 $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
690 -o mozilla/vlcintf mozilla/vlcintf.idl
692 mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl
693 $(XPIDL) -I/usr/share/idl/mozilla -m header \
694 -o mozilla/vlcintf mozilla/vlcintf.idl
697 DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA)
698 noinst_mozilla_npvlc_rc_DATA = mozilla/npvlc_rc.$(OBJEXT)
699 noinst_mozilla_npvlc_rcdir = $(libdir)
700 mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc
701 $(WINDRES) --include-dir mozilla -i $< -o $@
705 ###############################################################################
707 ###############################################################################
708 MOSTLYCLEANFILES += $(PLUGIN_FILES)
711 libvlcdir = $(libdir)/vlc
715 ###############################################################################
717 ###############################################################################