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
32 # List of programs, libraries and headers that need to be built and/or
33 # distributed. Initialized to empty because we'll use += later.
42 # Tell aclocal to use -I m4. Wonder if it really works.
43 ACLOCAL_AMFLAGS = -I m4
45 # XXX: these flags could be set in configure.ac, but we set them here
46 # because old versions of automake don't support them in configure.ac.
47 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
49 ###############################################################################
50 # Compilation flags for debug mode, profiling, and others
51 ###############################################################################
53 # Standard flags used everywhere to build things in the distribution. Some
54 # of them are empty but might be extended later in the Makefile. *_default
55 # is the default flag list for all files in the distribution, for instance
56 # the vlc code. *_pic is for PIC code, such as the Mozilla plugin. *_plugin
57 # is for plugin code, *_builtin is for builtin code, and *_builtin_pic is
58 # for PIC builtin code, for instance builtin modules in the mozilla plugin.
60 CPPFLAGS_default = -I$(top_srcdir)/include
64 LDFLAGS_default = $(LDFLAGS_gprof)
66 CPPFLAGS_pic = $(CPPFLAGS_default)
67 CFLAGS_pic = $(CFLAGS_default) @CFLAGS_pics@
68 CXXFLAGS_pic = $(CXXFLAGS_default) @CFLAGS_pics@
69 OBJCFLAGS_pic = $(OBJCFLAGS_default) @CFLAGS_pics@
70 LDFLAGS_pic = $(LDFLAGS_default)
72 CPPFLAGS_plugin = $(CPPFLAGS_default) -D__VLC__ -D__PLUGIN__
73 CFLAGS_plugin = $(CFLAGS_default) @CFLAGS_plugins@
74 CXXFLAGS_plugin = $(CXXFLAGS_default) @CFLAGS_plugins@
75 OBJCFLAGS_plugin = $(OBJCFLAGS_default) @CFLAGS_plugins@
76 LDFLAGS_plugin = @LDFLAGS_plugins@
78 CPPFLAGS_builtin = $(CPPFLAGS_default) -D__VLC__ -D__BUILTIN__
79 CFLAGS_builtin = $(CFLAGS_default) @CFLAGS_builtins@
80 CXXFLAGS_builtin = $(CXXFLAGS_default) @CFLAGS_builtins@
81 OBJCFLAGS_builtin = $(OBJCFLAGS_default) @CFLAGS_builtins@
85 CPPFLAGS_builtin_pic = $(CPPFLAGS_builtin) $(CPPFLAGS_pic)
86 CFLAGS_builtin_pic = $(CFLAGS_builtin) $(CFLAGS_pic)
87 CXXFLAGS_builtin_pic = $(CXXFLAGS_builtin) $(CXXFLAGS_pic)
88 OBJCFLAGS_builtin_pic = $(OBJCFLAGS_builtin) $(OBJCFLAGS_pic)
89 LDFLAGS_builtin_pic = $(LDFLAGS_builtin) $(LDFLAGS_pic)
92 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
93 CPPFLAGS_default += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
94 CPPFLAGS_default += -D_REENTRANT -D_THREAD_SAFE
95 CPPFLAGS_default += -D_GNU_SOURCE
98 CPPFLAGS_default += -DLOCALEDIR=\"$(datadir)/locale\"
100 # Data and plugin location
101 CPPFLAGS_default += -DDATA_PATH=\"@prefix@/share/vlc\"
102 CPPFLAGS_default += -DPLUGIN_PATH=\"@prefix@/lib/vlc\"
104 # Conditional flags that get added to *FLAGS_default
106 CPPFLAGS_release = -DHAVE_RELEASE
109 CPPFLAGS_debug = -DDEBUG
113 CPPFLAGS_gprof = -DGPROF
118 CPPFLAGS_cprof = -DCPROF
119 CFLAGS_cprof = -finstrument-functions
122 CFLAGS_optim = @CFLAGS_OPTIM@ @CFLAGS_TUNING@
129 CFLAGS_nodebug = @CFLAGS_OPTIM_NODEBUG@
135 CFLAGS_optim = @CFLAGS_NOOPTIM@
138 CPPFLAGS_default += $(CPPFLAGS_release) \
139 $(CPPFLAGS_debug) $(CPPFLAGS_gprof) $(CPPFLAGS_cprof)
140 CFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
141 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
142 CXXFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
143 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
144 OBJCFLAGS_default += $(CFLAGS_optim) $(CFLAGS_nodebug) \
145 $(CFLAGS_debug) $(CFLAGS_gprof) $(CFLAGS_cprof)
147 ###############################################################################
149 ###############################################################################
152 include/vlc_symbols.h \
153 src/misc/modules_builtin.h \
154 src/misc/modules_plugin.h \
157 pkgincludedir = $(includedir)/vlc
159 dist_pkginclude_HEADERS = \
164 include/vlc/decoder.h \
165 include/vlc/input.h \
169 noinst_HEADERS += $(HEADERS_include) $(HEADERS_include_built)
172 include/aout_internal.h \
173 include/audio_output.h \
174 include/beos_specific.h \
175 include/configuration.h \
176 include/darwin_specific.h \
180 include/input_ext-dec.h \
181 include/input_ext-intf.h \
182 include/input_ext-plugins.h \
183 include/interface.h \
184 include/intf_eject.h \
190 include/modules_inner.h \
193 include/os_specific.h \
194 include/stream_control.h \
195 include/stream_output.h \
197 include/variables.h \
199 include/video_output.h \
200 include/vlc_common.h \
201 include/vlc_config.h \
203 include/vlc_messages.h \
204 include/vlc_objects.h \
205 include/vlc_playlist.h \
206 include/vlc_threads.h \
207 include/vlc_threads_funcs.h \
208 include/vout_synchro.h \
209 include/win32_specific.h \
213 HEADERS_include_built = \
214 include/vlc_symbols.h \
217 include/vlc_symbols.h: Makefile $(HEADERS_include)
218 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
220 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
221 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
223 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
224 cd $(srcdir) && ./toolbox --update-includes $(BUILTINS)
226 # These dependencies are mandatory
227 $(SOURCES): include/vlc_symbols.h
228 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
230 ###############################################################################
231 # Optional libintl - FIXME, bad dependencies
232 ###############################################################################
234 intl/libintl.a: FORCE
235 cd $(srcdir)/intl && $(MAKE)
238 LIB_intl = intl/libintl.a
241 ###############################################################################
243 ###############################################################################
246 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
247 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
248 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
249 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
250 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
251 extras/MacOSX/Resources/a52.icns \
252 extras/MacOSX/Resources/aac.icns \
253 extras/MacOSX/Resources/asf.icns \
254 extras/MacOSX/Resources/asx.icns \
255 extras/MacOSX/Resources/avi.icns \
256 extras/MacOSX/Resources/bin.icns \
257 extras/MacOSX/Resources/cue.icns \
258 extras/MacOSX/Resources/dat.icns \
259 extras/MacOSX/Resources/divx.icns \
260 extras/MacOSX/Resources/dv.icns \
261 extras/MacOSX/Resources/generic.icns \
262 extras/MacOSX/Resources/m3u.icns \
263 extras/MacOSX/Resources/mov.icns \
264 extras/MacOSX/Resources/mp3.icns \
265 extras/MacOSX/Resources/mp4.icns \
266 extras/MacOSX/Resources/mpeg.icns \
267 extras/MacOSX/Resources/mpeg1.icns \
268 extras/MacOSX/Resources/mpeg2.icns \
269 extras/MacOSX/Resources/mpeg4.icns \
270 extras/MacOSX/Resources/mpg.icns \
271 extras/MacOSX/Resources/ogg.icns \
272 extras/MacOSX/Resources/ogm.icns \
273 extras/MacOSX/Resources/pls.icns \
274 extras/MacOSX/Resources/srt.icns \
275 extras/MacOSX/Resources/sub.icns \
276 extras/MacOSX/Resources/vlc.icns \
277 extras/MacOSX/Resources/vob.icns \
278 extras/MacOSX/Resources/wma.icns \
279 extras/MacOSX/Resources/wmv.icns \
280 extras/MacOSX/Resources/back.png \
281 extras/MacOSX/Resources/begin.png \
282 extras/MacOSX/Resources/end.png \
283 extras/MacOSX/Resources/forw.png \
284 extras/MacOSX/Resources/list.png \
285 extras/MacOSX/Resources/pause.png \
286 extras/MacOSX/Resources/play.png \
287 extras/MacOSX/Resources/prefs.png \
288 extras/MacOSX/Resources/slow.png \
289 extras/MacOSX/Resources/stop.png \
290 extras/MacOSX/Resources/vlc_hg.png \
291 extras/MacOSX/Resources/about_bg.png \
292 extras/MacOSX/Resources/vlc.scriptSuite \
293 extras/MacOSX/Resources/README \
294 extras/MacOSX/vlc.pbproj/project.pbxproj \
295 extras/MacOSX/macosx-dmg \
298 ###############################################################################
299 # MS Visual Studio and eMbedded Visual Studio projects
300 ###############################################################################
305 msvc/plugins.dsp.in \
308 msvc/modules_builtin_msvc.h \
315 evc/modules_builtin_evc.h \
319 mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
320 cd $(distdir) && $(srcdir)/toolbox --update-vc
322 ###############################################################################
324 ###############################################################################
326 bin_SCRIPTS = vlc-config
328 lib_LIBRARIES += lib/libvlc.a $(LIBRARIES_libvlc_pic)
330 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
331 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
332 lib_libvlc_a_CFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CFLAGS_default) @CFLAGS_vlc@
333 lib_libvlc_a_CXXFLAGS = $(CPPFLAGS_default) -D__VLC__ $(CXXFLAGS_default)
334 lib_libvlc_a_OBJCFLAGS = $(CPPFLAGS_default) -D__VLC__ $(OBJCFLAGS_default)
336 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
337 lib_libvlc_pic_a_CFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CFLAGS_pic) @CFLAGS_vlc@
338 lib_libvlc_pic_a_CXXFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(CXXFLAGS_pic)
339 lib_libvlc_pic_a_OBJCFLAGS = $(CPPFLAGS_pic) -D__VLC__ $(OBJCFLAGS_pic)
342 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
345 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
348 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
351 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
354 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
357 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
361 $(SOURCES_libvlc_beos) \
362 $(SOURCES_libvlc_darwin) \
363 $(SOURCES_libvlc_win32) \
364 $(SOURCES_libvlc_dirent) \
365 $(SOURCES_libvlc_getopt) \
368 SOURCES_libvlc_beos = \
369 src/misc/beos_specific.cpp \
372 SOURCES_libvlc_darwin = \
373 src/misc/darwin_specific.m \
376 SOURCES_libvlc_win32 = \
377 src/misc/win32_specific.c \
380 SOURCES_libvlc_dirent = \
381 src/extras/dirent.c \
382 src/extras/dirent.h \
385 SOURCES_libvlc_getopt = \
386 src/extras/getopt.c \
387 src/extras/getopt.h \
388 src/extras/getopt1.c \
391 SOURCES_libvlc_common = \
394 src/interface/interface.c \
395 src/interface/intf_eject.c \
396 src/playlist/playlist.c \
398 src/input/input_ext-plugins.c \
399 src/input/input_ext-dec.c \
400 src/input/input_ext-intf.c \
401 src/input/input_dec.c \
402 src/input/input_programs.c \
403 src/input/input_clock.c \
404 src/input/input_info.c \
405 src/video_output/video_output.c \
406 src/video_output/vout_pictures.c \
407 src/video_output/vout_pictures.h \
408 src/video_output/video_text.c \
409 src/video_output/video_text.h \
410 src/video_output/vout_subpictures.c \
411 src/video_output/vout_synchro.c \
412 src/audio_output/common.c \
413 src/audio_output/dec.c \
414 src/audio_output/filters.c \
415 src/audio_output/input.c \
416 src/audio_output/mixer.c \
417 src/audio_output/output.c \
418 src/audio_output/intf.c \
419 src/stream_output/stream_output.c \
420 src/stream_output/announce.c \
425 src/misc/configuration.c \
426 src/misc/iso_lang.c \
427 src/misc/iso-639_def.h \
428 src/misc/messages.c \
430 src/misc/variables.c \
436 $(SOURCES_libvlc_common) \
437 $(OPT_SOURCES_libvlc_beos) \
438 $(OPT_SOURCES_libvlc_darwin) \
439 $(OPT_SOURCES_libvlc_win32) \
440 $(OPT_SOURCES_libvlc_dirent) \
441 $(OPT_SOURCES_libvlc_getopt) \
444 ###############################################################################
446 ###############################################################################
450 vlc_SOURCES = src/vlc.c
452 # @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin)
453 # but we don't write it directly, otherwise automake will go amok and eat all
454 # the memory because of its 2^N crap algorithm. So we fool him. Nuahaha.
455 vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) \
456 $(DATA_win32_rc) $(LIB_intl) @AUTOMAKE_SUCKS@
457 vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default)
459 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
460 # old automake-1.5 bug (automake/279).
461 DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
463 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
464 @rm -f $(srcdir)/vlc$(EXEEXT)
465 $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
468 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
470 rm -Rf $(srcdir)/locale ; mkdir $(srcdir)/locale
471 for i in $(ALL_LINGUAS); do \
472 mkdir -p $(srcdir)/locale/$${i}/LC_MESSAGES ; \
473 cp $(srcdir)/po/$${i}.gmo \
474 $(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
478 # Install the symlinks
480 for i in dummy $(ALIASES) ; do if test "x$$i" != "xdummy" ; then \
481 rm -f $(DESTDIR)$(bindir)/$$i && \
482 ln -s vlc $(DESTDIR)$(bindir)/$$i ; \
486 # Create the MacOS X app
487 vlc_app_DATA = VLC.app
488 vlc_appdir = $(bindir)
489 VLC.app: vlc $(PLUGIN_FILES)
491 cd $(srcdir)/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
492 cp -r $(srcdir)/extras/MacOSX/build/vlc.bundle $(srcdir)/VLC.app
493 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS
494 $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC
495 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules
496 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
497 $(INSTALL) $(srcdir)/$$i \
498 $(srcdir)/VLC.app/Contents/MacOS/modules/ ; \
500 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/share
501 $(INSTALL) -m 644 $(srcdir)/share/*.psf $(srcdir)/share/*.rle \
502 $(srcdir)/VLC.app/Contents/MacOS/share
503 $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/locale
504 for i in $(ALL_LINGUAS); do \
505 mkdir -p $(srcdir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
506 cp $(srcdir)/po/$${i}.gmo $(srcdir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
507 mkdir -p $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
508 ln -sf ../English.lproj/InfoPlist.strings $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
509 ln -sf ../English.lproj/MainMenu.nib $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
510 ln -sf ../English.lproj/vlc.scriptTerminology $(srcdir)/VLC.app/Contents/Resources/$${i}.lproj ; \
512 printf "APPLVLC#" >| $(srcdir)/VLC.app/Contents/PkgInfo
516 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
517 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
518 noinst_share_vlc_win32_rcdir = $(libdir)
519 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
520 $(WINDRES) --include-dir $(srcdir)/share -i $< -o $@
523 ###############################################################################
524 # Building architecture-specific binary packages
525 ###############################################################################
527 # XXX: this rule is probably only useful to you if you have exactly
528 # the same setup as me. Contact sam@zoy.org if you need to use it.
530 # Check that tmp isn't in the way
532 @if test -e $(srcdir)/tmp; then \
533 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
536 echo "OK."; mkdir $(srcdir)/tmp; \
538 # Create installation script
539 cp $(srcdir)/install-win32 $(srcdir)/tmp/nsi
540 # Copy relevant files
541 cp $(srcdir)/vlc$(EXEEXT) $(srcdir)/tmp/
542 $(STRIP) $(srcdir)/tmp/vlc$(EXEEXT)
543 cp $(srcdir)/INSTALL.win32 $(srcdir)/tmp/INSTALL.txt
544 unix2dos $(srcdir)/tmp/INSTALL.txt
545 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
546 do cp $(srcdir)/$$file $(srcdir)/tmp/$${file}.txt ; \
547 unix2dos $(srcdir)/tmp/$${file}.txt ; done
549 mkdir $(srcdir)/tmp/plugins
550 for i in dummy $(PLUGIN_FILES) ; do if test "x$$i" != "xdummy" ; then \
551 $(INSTALL) $(srcdir)/$$i $(srcdir)/tmp/plugins/ ; \
554 for i in dummy $(srcdir)/tmp/plugins/*$(LIBEXT) ; \
555 do if test $$i != dummy ; then $(STRIP) $$i ; fi ; done
557 mkdir $(srcdir)/tmp/share
558 cp $(srcdir)/share/*.rle $(srcdir)/tmp/share/ ;
560 mkdir $(srcdir)/tmp/locale
561 for i in $(ALL_LINGUAS); do \
562 mkdir -p $(srcdir)/tmp/locale/$${i}/LC_MESSAGES ; \
563 cp $(srcdir)/po/$${i}.gmo \
564 $(srcdir)/tmp/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
567 mkdir -p $(srcdir)/tmp/skins/default
568 for i in $(srcdir)/share/skins/default/*.*; do \
569 cp $$i $(srcdir)/tmp/skins/default/ || true ; \
571 for i in $(srcdir)/doc/skins/*.txt; do \
572 cp $$i $(srcdir)/tmp/skins/ || true ; \
576 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} $(srcdir)/tmp/nsi
581 # Check that tmp isn't in the way
582 @if test -e $(srcdir)/tmp; then \
583 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
586 echo "OK."; mkdir $(srcdir)/tmp; \
589 # Copy relevant files
590 mkdir -p $(srcdir)/tmp/vlc
592 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/
593 # We cannot use ${PLUGIN_FILES}, it looks like it is too long for the BeOS shell...
594 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
595 mkdir -p $(srcdir)/tmp/vlc/plugins; \
596 find $(srcdir)/modules -name "lib*_plugin.so" | xargs -i{} cp {} $(srcdir)/tmp/vlc/plugins/; \
598 for i in $(ALL_LINGUAS); do \
599 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
600 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
602 mkdir -p $(srcdir)/tmp/vlc/share
603 cp $(srcdir)/share/*.rle $(srcdir)/tmp/vlc/share/
605 # Create package with debug symbols
606 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
607 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
608 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
609 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/
611 # Create package without debug symbols
612 strip $(srcdir)/tmp/vlc-${VERSION}/vlc
613 if [ -d $(srcdir)/tmp/vlc-${VERSION}/plugins ]; then \
614 strip $(srcdir)/tmp/vlc-${VERSION}/plugins/lib*_plugin.so; \
616 xres -o $(srcdir)/tmp/vlc-${VERSION}/vlc $(srcdir)/share/vlc_beos.rsrc
617 mimeset -f $(srcdir)/tmp/vlc-${VERSION}/* $(srcdir)/tmp/vlc-${VERSION}/*/*
618 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
619 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/
625 # Check that tmp isn't in the way
626 @if test -e $(srcdir)/tmp; then \
627 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
630 echo "OK."; mkdir $(srcdir)/tmp; \
633 # Copy relevant files
634 cp -R $(srcdir)/VLC.app $(srcdir)/tmp/
635 cd $(srcdir) && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS tmp/
638 $(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(srcdir)/tmp/*
643 ###############################################################################
644 # Building the Mozilla plugin
645 ###############################################################################
647 noinst_LIBRARIES += $(noinst_LIBRARIES_mozilla)
649 MOSTLYCLEANFILES += $(LIBRARIES_mozilla)
651 EXTRA_DIST += $(SOURCES_mozilla) mozilla/vlcintf.idl
653 BUILT_SOURCES += $(BUILT_SOURCES_mozilla)
656 mozilla/vlcshell.cpp \
657 mozilla/vlcplugin.cpp \
658 mozilla/vlcplugin.h \
659 mozilla/vlcpeer.cpp \
661 mozilla/support/classinfo.h \
662 $(SOURCES_mozilla_win32) \
663 $(SOURCES_mozilla_macosx) \
664 $(SOURCES_mozilla_unix) \
667 # Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix
668 # the common naming scheme is lib******plugin.so. Also, we need npwin.cpp
669 # under Win32 and npunix.c under Unix.
671 LIBRARIES_mozilla = mozilla/npvlc$(LIBEXT)
672 SOURCES_mozilla_win32 = mozilla/support/npwin.cpp
673 CPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32
676 # We don't define LIBRARIES_mozilla because we'll be using project builder
677 SOURCES_mozilla_macosx = mozilla/support/npmac.cpp
679 LIBRARIES_mozilla = mozilla/libvlcplugin$(LIBEXT)
680 SOURCES_mozilla_unix = mozilla/support/npunix.c
686 noinst_LIBRARIES_mozilla = mozilla/libplugin.a
689 mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla)
690 mozilla_libplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \
691 $(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \
692 $(CPPFLAGS_mozilla_EXTRA)
693 mozilla_libplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
694 $(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \
695 $(CPPFLAGS_mozilla_EXTRA)
696 mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc)
698 BUILT_SOURCES_mozilla = mozilla/vlcintf.h
699 $(SOURCES_mozilla): mozilla/vlcintf.h
701 mozilla_plugin_DATA = $(LIBRARIES_mozilla)
702 mozilla_plugindir = $(libdir)/mozilla/plugins
703 $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \
704 $(mozilla_libplugin_a_DEPENDENCIES) \
706 $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
707 lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \
708 $(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic)
710 mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
711 mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
712 mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl
713 $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
714 -o mozilla/vlcintf mozilla/vlcintf.idl
716 mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl
717 $(XPIDL) -I/usr/share/idl/mozilla -m header \
718 -o mozilla/vlcintf mozilla/vlcintf.idl
721 DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA)
722 noinst_mozilla_npvlc_rc_DATA = mozilla/npvlc_rc.$(OBJEXT)
723 noinst_mozilla_npvlc_rcdir = $(libdir)
724 mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc
725 $(WINDRES) --include-dir $(srcdir)/mozilla -i $< -o $@
729 ###############################################################################
731 ###############################################################################
732 MOSTLYCLEANFILES += $(PLUGIN_FILES)
735 libvlcdir = $(libdir)/vlc
739 ###############################################################################
741 ###############################################################################