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
33 # List of programs, libraries and headers that need to be built and/or
34 # distributed. Initialized to empty because we'll use += later.
43 # Tell aclocal to use -I m4. Wonder if it really works.
44 ACLOCAL_AMFLAGS = -I m4
46 # XXX: these flags could be set in configure.ac.in, but we set them here
47 # because old versions of automake don't support them in configure.ac.
48 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
50 ###############################################################################
51 # Compilation flags for debug mode, profiling, and others
52 ###############################################################################
54 # Standard flags used everywhere to build things in the distribution. Some
55 # of them are empty but might be extended later in the Makefile. *_default
56 # is the default flag list for all files in the distribution, for instance
57 # the vlc code. *_pic is for PIC code, such as the Mozilla plugin. *_plugin
58 # is for plugin code, *_builtin is for builtin code, and *_builtin_pic is
59 # for PIC builtin code, for instance builtin modules in the mozilla plugin.
61 CPPFLAGS_default = -I$(top_srcdir)/include
65 LDFLAGS_default = $(LDFLAGS_gprof)
67 CPPFLAGS_pic = $(CPPFLAGS_default)
68 CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@
69 CXXFLAGS_pic = $(CXXFLAGS_default) @CFLAGS_pics@
70 OBJCFLAGS_pic = $(OBJCFLAGS_default) @CFLAGS_pics@
71 LDFLAGS_pic = $(LDFLAGS_default)
73 CPPFLAGS_plugin = $(CPPFLAGS_default) -D__VLC__ -D__PLUGIN__
74 CFLAGS_plugin = $(CFLAGS_default) @CFLAGS_plugins@
75 CXXFLAGS_plugin = $(CXXFLAGS_default) @CFLAGS_plugins@
76 OBJCFLAGS_plugin = $(OBJCFLAGS_default) @CFLAGS_plugins@
77 LDFLAGS_plugin = @LDFLAGS_plugins@
79 CPPFLAGS_builtin = $(CPPFLAGS_default) -D__VLC__ -D__BUILTIN__
80 CFLAGS_builtin = $(CFLAGS_default) @CFLAGS_builtins@
81 CXXFLAGS_builtin = $(CXXFLAGS_default) @CFLAGS_builtins@
82 OBJCFLAGS_builtin = $(OBJCFLAGS_default) @CFLAGS_builtins@
86 CPPFLAGS_builtin_pic = $(CPPFLAGS_builtin) $(CPPFLAGS_pic)
87 CFLAGS_builtin_pic = $(CFLAGS_builtin) $(CFLAGS_pic)
88 CXXFLAGS_builtin_pic = $(CXXFLAGS_builtin) $(CXXFLAGS_pic)
89 OBJCFLAGS_builtin_pic = $(OBJCFLAGS_builtin) $(OBJCFLAGS_pic)
90 LDFLAGS_builtin_pic = $(LDFLAGS_builtin) $(LDFLAGS_pic)
93 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
94 CPPFLAGS_default += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
95 CPPFLAGS_default += -D_REENTRANT -D_THREAD_SAFE
96 CPPFLAGS_default += -D_GNU_SOURCE
99 CPPFLAGS_default += -DLOCALEDIR=\"$(datadir)/locale\"
101 # Data and plugin location
102 CPPFLAGS_default += -DDATA_PATH=\"@prefix@/share/vlc\"
103 CPPFLAGS_default += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
105 # Conditional flags that get added to *FLAGS_default
107 CPPFLAGS_release = -DHAVE_RELEASE
110 CPPFLAGS_debug = -DDEBUG
114 CPPFLAGS_gprof = -DGPROF
119 CPPFLAGS_cprof = -DCPROF
120 CFLAGS_cprof = -finstrument-functions
123 CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@
130 CFLAGS_nodebug = @CFLAGS_OPTIM_NODEBUG@
136 CFLAGS_optim = @CFLAGS_NOOPTIM@
139 CPPFLAGS_default += $(CPPFLAGS_release) \
140 $(CPPFLAGS_debug) $(CPPFLAGS_gprof) $(CPPFLAGS_cprof)
141 CFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
142 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
143 CXXFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
144 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
145 OBJCFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
146 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
148 ###############################################################################
150 ###############################################################################
153 include/vlc_symbols.h \
154 src/misc/modules_builtin.h \
155 src/misc/modules_plugin.h \
158 pkgincludedir = $(includedir)/vlc
160 dist_pkginclude_HEADERS = \
165 include/vlc/decoder.h \
166 include/vlc/input.h \
170 noinst_HEADERS += $(HEADERS_include) $(HEADERS_include_built)
173 include/aout_internal.h \
174 include/audio_output.h \
175 include/beos_specific.h \
176 include/configuration.h \
177 include/darwin_specific.h \
181 include/input_ext-dec.h \
182 include/input_ext-intf.h \
183 include/input_ext-plugins.h \
184 include/interface.h \
185 include/intf_eject.h \
191 include/modules_inner.h \
194 include/os_specific.h \
195 include/stream_control.h \
196 include/stream_output.h \
198 include/variables.h \
200 include/video_output.h \
201 include/vlc_common.h \
202 include/vlc_config.h \
204 include/vlc_messages.h \
205 include/vlc_objects.h \
206 include/vlc_playlist.h \
207 include/vlc_threads.h \
208 include/vlc_threads_funcs.h \
209 include/vout_synchro.h \
210 include/win32_specific.h \
214 HEADERS_include_built = \
215 include/vlc_symbols.h \
218 include/vlc_symbols.h: Makefile $(HEADERS_include)
219 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
221 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
222 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
224 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
225 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
227 # These dependencies are mandatory
228 $(SOURCES): include/vlc_symbols.h
229 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
231 ###############################################################################
232 # Optional libintl - FIXME, bad dependencies
233 ###############################################################################
235 intl/libintl.a: FORCE
236 cd $(srcdir)/intl && $(MAKE)
239 LIB_intl = intl/libintl.a
242 ###############################################################################
244 ###############################################################################
247 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
248 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
249 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
250 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
251 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
252 extras/MacOSX/Resources/a52.icns \
253 extras/MacOSX/Resources/aac.icns \
254 extras/MacOSX/Resources/asf.icns \
255 extras/MacOSX/Resources/asx.icns \
256 extras/MacOSX/Resources/avi.icns \
257 extras/MacOSX/Resources/bin.icns \
258 extras/MacOSX/Resources/cue.icns \
259 extras/MacOSX/Resources/dat.icns \
260 extras/MacOSX/Resources/divx.icns \
261 extras/MacOSX/Resources/dv.icns \
262 extras/MacOSX/Resources/generic.icns \
263 extras/MacOSX/Resources/m3u.icns \
264 extras/MacOSX/Resources/mov.icns \
265 extras/MacOSX/Resources/mp3.icns \
266 extras/MacOSX/Resources/mp4.icns \
267 extras/MacOSX/Resources/mpeg.icns \
268 extras/MacOSX/Resources/mpeg1.icns \
269 extras/MacOSX/Resources/mpeg2.icns \
270 extras/MacOSX/Resources/mpeg4.icns \
271 extras/MacOSX/Resources/mpg.icns \
272 extras/MacOSX/Resources/ogg.icns \
273 extras/MacOSX/Resources/ogm.icns \
274 extras/MacOSX/Resources/pls.icns \
275 extras/MacOSX/Resources/srt.icns \
276 extras/MacOSX/Resources/sub.icns \
277 extras/MacOSX/Resources/vlc.icns \
278 extras/MacOSX/Resources/vob.icns \
279 extras/MacOSX/Resources/wma.icns \
280 extras/MacOSX/Resources/wmv.icns \
281 extras/MacOSX/Resources/back.png \
282 extras/MacOSX/Resources/begin.png \
283 extras/MacOSX/Resources/end.png \
284 extras/MacOSX/Resources/forw.png \
285 extras/MacOSX/Resources/list.png \
286 extras/MacOSX/Resources/pause.png \
287 extras/MacOSX/Resources/play.png \
288 extras/MacOSX/Resources/prefs.png \
289 extras/MacOSX/Resources/slow.png \
290 extras/MacOSX/Resources/stop.png \
291 extras/MacOSX/Resources/vlc_hg.png \
292 extras/MacOSX/Resources/about_bg.png \
293 extras/MacOSX/Resources/vlc.scriptSuite \
294 extras/MacOSX/Resources/README \
295 extras/MacOSX/vlc.pbproj/project.pbxproj \
296 extras/MacOSX/macosx-dmg \
299 ###############################################################################
300 # MS Visual Studio and eMbedded Visual Studio projects
301 ###############################################################################
306 msvc/plugins.dsp.in \
309 msvc/modules_builtin_msvc.h \
316 evc/modules_builtin_evc.h \
320 mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
321 cd $(distdir) && $(srcdir)/toolbox --update-vc
323 ###############################################################################
325 ###############################################################################
327 bin_SCRIPTS = vlc-config
329 lib_LIBRARIES += lib/libvlc.a $(LIBRARIES_libvlc_pic)
331 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
332 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
333 lib_libvlc_a_CFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CFLAGS_default) @CFLAGS_vlc@
334 lib_libvlc_a_CXXFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CXXFLAGS_default)
335 lib_libvlc_a_OBJCFLAGS = $(CPPFLAGS_default) -D__VLC__ $(OBJCFLAGS_default)
337 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
338 lib_libvlc_pic_a_CFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CFLAGS_pic) @CFLAGS_vlc@
339 lib_libvlc_pic_a_CXXFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CXXFLAGS_pic)
340 lib_libvlc_pic_a_OBJCFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(OBJCFLAGS_pic)
343 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
346 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
349 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
352 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
355 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
358 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
362 $(SOURCES_libvlc_beos) \
363 $(SOURCES_libvlc_darwin) \
364 $(SOURCES_libvlc_win32) \
365 $(SOURCES_libvlc_dirent) \
366 $(SOURCES_libvlc_getopt) \
369 SOURCES_libvlc_beos = \
370 src/misc/beos_specific.cpp \
373 SOURCES_libvlc_darwin = \
374 src/misc/darwin_specific.m \
377 SOURCES_libvlc_win32 = \
378 src/misc/win32_specific.c \
381 SOURCES_libvlc_dirent = \
382 src/extras/dirent.c \
383 src/extras/dirent.h \
386 SOURCES_libvlc_getopt = \
387 src/extras/getopt.c \
388 src/extras/getopt.h \
389 src/extras/getopt1.c \
392 SOURCES_libvlc_common = \
395 src/interface/interface.c \
396 src/interface/intf_eject.c \
397 src/playlist/playlist.c \
399 src/input/input_ext-plugins.c \
400 src/input/input_ext-dec.c \
401 src/input/input_ext-intf.c \
402 src/input/input_dec.c \
403 src/input/input_programs.c \
404 src/input/input_clock.c \
405 src/input/input_info.c \
406 src/video_output/video_output.c \
407 src/video_output/vout_pictures.c \
408 src/video_output/vout_pictures.h \
409 src/video_output/video_text.c \
410 src/video_output/video_text.h \
411 src/video_output/vout_subpictures.c \
412 src/video_output/vout_synchro.c \
413 src/audio_output/common.c \
414 src/audio_output/dec.c \
415 src/audio_output/filters.c \
416 src/audio_output/input.c \
417 src/audio_output/mixer.c \
418 src/audio_output/output.c \
419 src/audio_output/intf.c \
420 src/stream_output/stream_output.c \
421 src/stream_output/announce.c \
426 src/misc/configuration.c \
427 src/misc/iso_lang.c \
428 src/misc/iso-639_def.h \
429 src/misc/messages.c \
431 src/misc/variables.c \
437 $(SOURCES_libvlc_common) \
438 $(OPT_SOURCES_libvlc_beos) \
439 $(OPT_SOURCES_libvlc_darwin) \
440 $(OPT_SOURCES_libvlc_win32) \
441 $(OPT_SOURCES_libvlc_dirent) \
442 $(OPT_SOURCES_libvlc_getopt) \
445 ###############################################################################
447 ###############################################################################
451 vlc_SOURCES = src/vlc.c
453 # @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin)
454 # but we don't write it directly, otherwise automake will go amok and eat all
455 # the memory because of its 2^N crap algorithm. So we fool him. Nuahaha.
456 vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) \
457 $(DATA_win32_rc) $(LIB_intl) @AUTOMAKE_SUCKS@
458 vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default)
460 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
461 # old automake-1.5 bug (automake/279).
462 DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
464 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
465 @rm -f $(srcdir)/vlc$(EXEEXT)
466 $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
469 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
471 rm -Rf $(srcdir)/locale ; mkdir $(srcdir)/locale
472 for i in $(ALL_LINGUAS); do \
473 mkdir -p $(srcdir)/locale/$${i}/LC_MESSAGES ; \
474 cp $(srcdir)/po/$${i}.gmo \
475 $(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
479 # Install the symlinks
481 for i in dummy $(ALIASES) ; do if test "x$$i" != "xdummy" ; then \
482 rm -f $(DESTDIR)$(bindir)/$$i && \
483 ln -s vlc $(DESTDIR)$(bindir)/$$i ; \
487 # Create the MacOS X app
488 vlc_app_DATA = VLC.app
489 vlc_appdir = $(bindir)
490 VLC.app: vlc $(PLUGIN_FILES)
492 cd $(srcdir)/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
493 cp -r $(srcdir)/extras/MacOSX/build/vlc.bundle $(srcdir)/VLC.app
494 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS
495 $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC
496 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules
497 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
498 $(INSTALL) $(srcdir)/$$i \
499 $(srcdir)/VLC.app/Contents/MacOS/modules/ ; \
501 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/share
502 $(INSTALL) -m 644 $(srcdir)/share/*.psf $(srcdir)/share/*.rle \
503 $(srcdir)/VLC.app/Contents/MacOS/share
504 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/locale
505 for i in $(ALL_LINGUAS); do \
506 mkdir -p $(srcdir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
507 cp $(srcdir)/po/$${i}.gmo $(srcdir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
508 mkdir -p $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
509 ln -sf ../English.lproj/InfoPlist.strings $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
510 ln -sf ../English.lproj/MainMenu.nib $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
511 ln -sf ../English.lproj/vlc.scriptTerminology $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
513 printf "APPLVLC#" >| $(srcdir)/VLC.app/Contents/PkgInfo
517 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
518 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
519 noinst_share_vlc_win32_rcdir = $(libdir)
520 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
521 $(WINDRES) --include-dir $(srcdir)/share -i $< -o $@
524 ###############################################################################
525 # Building architecture-specific binary packages
526 ###############################################################################
528 # XXX: this rule is probably only useful to you if you have exactly
529 # the same setup as me. Contact sam@zoy.org if you need to use it.
531 # Check that tmp isn't in the way
533 @if test -e $(srcdir)/tmp; then \
534 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
537 echo "OK."; mkdir $(srcdir)/tmp; \
539 # Create installation script
540 cp $(srcdir)/install-win32 $(srcdir)/tmp/nsi
541 # Copy relevant files
542 cp $(srcdir)/vlc$(EXEEXT) $(srcdir)/tmp/
543 $(STRIP) $(srcdir)/tmp/vlc$(EXEEXT)
544 cp $(srcdir)/INSTALL.win32 $(srcdir)/tmp/INSTALL.txt
545 unix2dos $(srcdir)/tmp/INSTALL.txt
546 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
547 do cp $(srcdir)/$$file $(srcdir)/tmp/$${file}.txt ; \
548 unix2dos $(srcdir)/tmp/$${file}.txt ; done
550 mkdir $(srcdir)/tmp/plugins
551 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
552 $(INSTALL) $(srcdir)/$$i $(srcdir)/tmp/plugins/ ; \
555 for i in dummy $(srcdir)/tmp/plugins/*$(LIBEXT) ; \
556 do if test $$i != $(srcdir)/tmp/plugins/libwin32_plugin$(LIBEXT) \
557 -a $$i != dummy ; then $(STRIP) $$i ; fi ; done
559 mkdir $(srcdir)/tmp/share
560 cp $(srcdir)/share/*.rle $(srcdir)/tmp/share/ ;
562 mkdir $(srcdir)/tmp/locale
563 for i in $(ALL_LINGUAS); do \
564 mkdir -p $(srcdir)/tmp/locale/$${i}/LC_MESSAGES ; \
565 cp $(srcdir)/po/$${i}.gmo \
566 $(srcdir)/tmp/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
569 mkdir -p $(srcdir)/tmp/skins/default
570 for i in $(srcdir)/share/skins/default/*.*; do \
571 cp $$i $(srcdir)/tmp/skins/default/ || true ; \
573 for i in $(srcdir)/doc/skins/*.txt; do \
574 cp $$i $(srcdir)/tmp/skins/ || true ; \
577 $(MAKE) -C $(srcdir)/doc/faq html ;
578 cp $(srcdir)/doc/faq/faq.html $(srcdir)/tmp/FAQ.htm ;
581 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} $(srcdir)/tmp/nsi
586 # Check that tmp isn't in the way
587 @if test -e $(srcdir)/tmp; then \
588 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
591 echo "OK."; mkdir $(srcdir)/tmp; \
594 # Copy relevant files
595 mkdir -p $(srcdir)/tmp/vlc
597 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/
598 # We cannot use ${PLUGIN_FILES}, it looks like it is too long for the BeOS shell...
599 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
600 mkdir -p $(srcdir)/tmp/vlc/plugins; \
601 find $(srcdir)/modules -name "lib*_plugin.so" | xargs -i{} cp {} $(srcdir)/tmp/vlc/plugins/; \
603 for i in $(ALL_LINGUAS); do \
604 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
605 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
607 mkdir -p $(srcdir)/tmp/vlc/share
608 cp $(srcdir)/share/*.rle $(srcdir)/tmp/vlc/share/
610 # Create package with debug symbols
611 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
612 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
613 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
614 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/
616 # Create package without debug symbols
617 strip $(srcdir)/tmp/vlc-${VERSION}/vlc
618 if [ -d $(srcdir)/tmp/vlc-${VERSION}/plugins ]; then \
619 strip $(srcdir)/tmp/vlc-${VERSION}/plugins/lib*_plugin.so; \
621 xres -o $(srcdir)/tmp/vlc-${VERSION}/vlc $(srcdir)/share/vlc_beos.rsrc
622 mimeset -f $(srcdir)/tmp/vlc-${VERSION}/* $(srcdir)/tmp/vlc-${VERSION}/*/*
623 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
624 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/
630 # Check that tmp isn't in the way
631 @if test -e $(srcdir)/tmp; then \
632 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
635 echo "OK."; mkdir $(srcdir)/tmp; \
638 # Copy relevant files
639 cp -R $(srcdir)/VLC.app $(srcdir)/tmp/
640 cd $(srcdir) && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS tmp/
643 $(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(srcdir)/tmp/*
648 ###############################################################################
649 # Building the Mozilla plugin
650 ###############################################################################
652 noinst_LIBRARIES += $(noinst_LIBRARIES_mozilla)
654 MOSTLYCLEANFILES += $(LIBRARIES_mozilla)
656 EXTRA_DIST += $(SOURCES_mozilla) mozilla/vlcintf.idl
658 BUILT_SOURCES += $(BUILT_SOURCES_mozilla)
661 mozilla/vlcshell.cpp \
662 mozilla/vlcplugin.cpp \
663 mozilla/vlcplugin.h \
664 mozilla/vlcpeer.cpp \
666 mozilla/support/classinfo.h \
667 $(SOURCES_mozilla_win32) \
668 $(SOURCES_mozilla_macosx) \
669 $(SOURCES_mozilla_unix) \
672 # Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix
673 # the common naming scheme is lib******plugin.so. Also, we need npwin.cpp
674 # under Win32 and npunix.c under Unix.
676 LIBRARIES_mozilla = mozilla/npvlc$(LIBEXT)
677 SOURCES_mozilla_win32 = mozilla/support/npwin.cpp
678 CPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32
681 # We don't define LIBRARIES_mozilla because we'll be using project builder
682 SOURCES_mozilla_macosx = mozilla/support/npmac.cpp
684 LIBRARIES_mozilla = mozilla/libvlcplugin$(LIBEXT)
685 SOURCES_mozilla_unix = mozilla/support/npunix.c
691 noinst_LIBRARIES_mozilla = mozilla/libplugin.a
694 mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla)
695 mozilla_libplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \
696 $(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \
697 $(CPPFLAGS_mozilla_EXTRA)
698 mozilla_libplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
699 $(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \
700 $(CPPFLAGS_mozilla_EXTRA)
701 mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc)
703 BUILT_SOURCES_mozilla = mozilla/vlcintf.h
704 $(SOURCES_mozilla): mozilla/vlcintf.h
706 mozilla_plugin_DATA = $(LIBRARIES_mozilla)
707 mozilla_plugindir = $(libdir)/mozilla/plugins
708 $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \
709 $(mozilla_libplugin_a_DEPENDENCIES) \
711 $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
712 lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \
713 $(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic)
715 mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
716 mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
717 mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl
718 $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
719 -o mozilla/vlcintf mozilla/vlcintf.idl
721 mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl
722 $(XPIDL) -I/usr/share/idl/mozilla -m header \
723 -o mozilla/vlcintf mozilla/vlcintf.idl
726 DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA)
727 noinst_mozilla_npvlc_rc_DATA = mozilla/npvlc_rc.$(OBJEXT)
728 noinst_mozilla_npvlc_rcdir = $(libdir)
729 mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc
730 $(WINDRES) --include-dir $(srcdir)/mozilla -i $< -o $@
734 ###############################################################################
736 ###############################################################################
737 MOSTLYCLEANFILES += $(PLUGIN_FILES)
740 libvlcdir = $(libdir)/vlc
744 ###############################################################################
746 ###############################################################################