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 # - intl should come before modules and . because all the code uses gettext
11 # - modules should come before . because vlc needs the builtins
12 # - . should come before mozilla because the plugin needs libvlc_pic.a
13 # - po should come before . because VLC.app needs the pofiles
14 # - loader should come before modules because some plugins need it
15 SUBDIRS = intl loader modules po . mozilla activex share m4 doc
16 DIST_SUBDIRS = $(SUBDIRS) debian ipkg lib
33 src/misc/modules_builtin.h.in \
36 BUILT_SOURCES_distclean = vlc-config
37 BUILT_SOURCES_clean = \
39 src/misc/modules_builtin.h \
43 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
47 # Tell aclocal to use -I m4. Wonder if it really works.
48 ACLOCAL_AMFLAGS = -I m4
50 # XXX: these flags could be set in configure.ac, but we set them here
51 # because old versions of automake don't support them in configure.ac.
52 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
54 ###############################################################################
56 ###############################################################################
58 pkgincludedir = $(includedir)/vlc
60 dist_pkginclude_HEADERS = \
65 include/vlc/decoder.h \
68 include/vlc/control.h \
71 noinst_HEADERS = $(HEADERS_include)
72 noinst_DATA = $(DATA_noinst_beos) $(DATA_noinst_libvlc)
75 include/aout_internal.h \
76 include/audio_output.h \
77 include/beos_specific.h \
80 include/configuration.h \
81 include/darwin_specific.h \
82 include/intf_eject.h \
87 include/modules_inner.h \
90 include/os_specific.h \
92 include/stream_output.h \
94 include/video_output.h \
95 include/vlc_access.h \
99 include/vlc_block_helper.h \
100 include/vlc_codec.h \
101 include/vlc_common.h \
102 include/vlc_config.h \
104 include/vlc_demux.h \
105 include/vlc_error.h \
107 include/vlc_es_out.h \
108 include/vlc_filter.h \
109 include/vlc_config_cat.h \
110 include/vlc_httpd.h \
113 include/vlc_image.h \
114 include/vlc_input.h \
115 include/vlc_interface.h \
117 include/vlc_messages.h \
119 include/vlc_objects.h \
121 include/vlc_playlist.h \
123 include/vlc_stream.h \
124 include/vlc_symbols.h \
125 include/vlc_threads_funcs.h \
126 include/vlc_threads.h \
127 include/vlc_video.h \
131 include/vout_synchro.h \
132 include/win32_specific.h \
135 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
136 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
137 touch src/misc/modules_builtin.h
139 src/misc/modules.c: src/misc/modules_builtin.h
141 src/misc/version.c: FORCE
142 srcdir=$(srcdir) $(srcdir)/toolbox --update-version
144 # These dependencies are mandatory
145 $(SOURCES_libvlc): $(LIB_intl)
147 ###############################################################################
148 # Optional libintl - FIXME, bad dependencies
149 ###############################################################################
151 intl/libintl.a: FORCE
152 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
155 LIB_intl = intl/libintl.a
158 ###############################################################################
160 ###############################################################################
163 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
164 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
165 extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
166 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
167 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
168 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
169 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
170 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
171 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
172 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
173 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
174 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
175 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
176 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
177 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
178 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
179 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
180 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
181 extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib \
182 extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib \
183 extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
184 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
185 extras/MacOSX/Resources/a52.icns \
186 extras/MacOSX/Resources/aac.icns \
187 extras/MacOSX/Resources/asf.icns \
188 extras/MacOSX/Resources/asx.icns \
189 extras/MacOSX/Resources/avi.icns \
190 extras/MacOSX/Resources/bin.icns \
191 extras/MacOSX/Resources/cue.icns \
192 extras/MacOSX/Resources/dat.icns \
193 extras/MacOSX/Resources/divx.icns \
194 extras/MacOSX/Resources/dv.icns \
195 extras/MacOSX/Resources/generic.icns \
196 extras/MacOSX/Resources/m3u.icns \
197 extras/MacOSX/Resources/mov.icns \
198 extras/MacOSX/Resources/mp3.icns \
199 extras/MacOSX/Resources/mp4.icns \
200 extras/MacOSX/Resources/mpeg.icns \
201 extras/MacOSX/Resources/mpeg1.icns \
202 extras/MacOSX/Resources/mpeg2.icns \
203 extras/MacOSX/Resources/mpeg4.icns \
204 extras/MacOSX/Resources/mpg.icns \
205 extras/MacOSX/Resources/ogg.icns \
206 extras/MacOSX/Resources/ogm.icns \
207 extras/MacOSX/Resources/pls.icns \
208 extras/MacOSX/Resources/srt.icns \
209 extras/MacOSX/Resources/sub.icns \
210 extras/MacOSX/Resources/vlc.icns \
211 extras/MacOSX/Resources/vob.icns \
212 extras/MacOSX/Resources/wma.icns \
213 extras/MacOSX/Resources/wmv.icns \
214 extras/MacOSX/Resources/pause.png \
215 extras/MacOSX/Resources/pause_blue.png \
216 extras/MacOSX/Resources/play.png \
217 extras/MacOSX/Resources/play_blue.png \
218 extras/MacOSX/Resources/stop.png \
219 extras/MacOSX/Resources/stop_blue.png \
220 extras/MacOSX/Resources/display.png \
221 extras/MacOSX/Resources/display_slider.png \
222 extras/MacOSX/Resources/display_track.png \
223 extras/MacOSX/Resources/equalizerdrawer_active.png \
224 extras/MacOSX/Resources/equalizerdrawer_blue.png \
225 extras/MacOSX/Resources/fullscreen_active.png \
226 extras/MacOSX/Resources/fullscreen_blue.png \
227 extras/MacOSX/Resources/next_active.png \
228 extras/MacOSX/Resources/next_blue.png \
229 extras/MacOSX/Resources/playlistdrawer_active.png \
230 extras/MacOSX/Resources/playlistdrawer_blue.png \
231 extras/MacOSX/Resources/previous_active.png \
232 extras/MacOSX/Resources/previous_blue.png \
233 extras/MacOSX/Resources/skip_forward_active.png \
234 extras/MacOSX/Resources/skip_forward_blue.png \
235 extras/MacOSX/Resources/skip_previous_active.png \
236 extras/MacOSX/Resources/skip_previous_blue.png \
237 extras/MacOSX/Resources/volume_high.png \
238 extras/MacOSX/Resources/volume_low.png \
239 extras/MacOSX/Resources/volumeslider_blue.png \
240 extras/MacOSX/Resources/volumeslider_normal.png \
241 extras/MacOSX/Resources/volumetrack.png \
242 extras/MacOSX/Resources/about_bg.png \
243 extras/MacOSX/Resources/vlc.scriptSuite \
244 extras/MacOSX/Resources/vlc.scriptTerminology \
245 extras/MacOSX/Resources/README \
246 extras/MacOSX/vlc.pbproj/project.pbxproj \
247 extras/MacOSX/macosx-dmg \
252 ###############################################################################
253 # MS Visual Studio and eMbedded Visual Studio projects
254 ###############################################################################
259 msvc/plugins.dsp.in \
262 msvc/modules_builtin_msvc.h \
269 evc/modules_builtin_evc.h \
273 cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
274 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
276 ###############################################################################
278 ###############################################################################
280 bin_SCRIPTS = vlc-config
281 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
282 $(SHELL) ./config.status --file=vlc-config
283 chmod 0755 vlc-config
285 vlc-config.in: vlc-config.in.in
286 ./config.status --recheck
288 MOSTLYCLEANFILES = $(DATA_noinst_libvlc)
289 CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
290 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in
293 lib_LIBRARIES = lib/libvlc.a
296 lib_LIBRARIES = lib/libvlc_pic.a
298 lib_LIBRARIES = lib/libvlc.a
300 lib_LIBRARIES += lib/libvlc_pic.a
305 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
306 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
307 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
308 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
310 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
311 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
312 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
313 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
316 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
319 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
322 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
325 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
328 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
331 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
334 # Build libvlc as a shared library
336 DATA_noinst_libvlc = libvlc$(LIBEXT)
338 OBJECTS_libvlc_so = $(lib_libvlc_a_OBJECTS)
340 OBJECTS_libvlc_so = $(lib_libvlc_pic_a_OBJECTS)
344 libvlc$(LIBEXT): $(OBJECTS_libvlc_so)
345 @ldfl="`$(VLC_CONFIG) --libs plugin vlc $(pic) builtin`" ; \
346 case `$(VLC_CONFIG) --linkage vlc` in \
347 c++) ld="$(CXXLINK)" ;; \
348 objc) ld="$(OBJCLINK)" ;; \
349 c|*) ld="$(LINK)" ;; \
351 echo $$ld $(OBJECTS_libvlc_so) $$ldfl ; \
352 $$ld $(OBJECTS_libvlc_so) $$ldfl
355 $(SOURCES_libvlc_beos) \
356 $(SOURCES_libvlc_darwin) \
357 $(SOURCES_libvlc_win32) \
358 $(SOURCES_libvlc_dirent) \
359 $(SOURCES_libvlc_getopt) \
362 SOURCES_libvlc_beos = \
363 src/misc/beos_specific.cpp \
366 SOURCES_libvlc_darwin = \
367 src/misc/darwin_specific.m \
370 SOURCES_libvlc_win32 = \
371 src/misc/win32_specific.c \
374 SOURCES_libvlc_dirent = \
375 src/extras/dirent.c \
378 SOURCES_libvlc_getopt = \
379 src/extras/getopt.c \
380 src/extras/getopt.h \
381 src/extras/getopt1.c \
384 SOURCES_libvlc_common = \
387 src/interface/interface.c \
388 src/interface/intf_eject.c \
389 src/playlist/playlist.c \
390 src/playlist/sort.c \
391 src/playlist/loadsave.c \
392 src/playlist/view.c \
393 src/playlist/item.c \
394 src/playlist/item-ext.c \
395 src/playlist/services_discovery.c \
398 src/input/control.c \
399 src/input/decoder.c \
403 src/input/input_internal.h \
405 src/input/mem_stream.c \
406 src/input/subtitles.c \
408 src/video_output/video_output.c \
409 src/video_output/vout_pictures.c \
410 src/video_output/vout_pictures.h \
411 src/video_output/video_text.c \
412 src/video_output/video_widgets.c \
413 src/video_output/vout_subpictures.c \
414 src/video_output/vout_synchro.c \
415 src/video_output/vout_intf.c \
416 src/audio_output/common.c \
417 src/audio_output/dec.c \
418 src/audio_output/filters.c \
419 src/audio_output/input.c \
420 src/audio_output/mixer.c \
421 src/audio_output/output.c \
422 src/audio_output/intf.c \
423 src/stream_output/stream_output.c \
424 src/stream_output/announce.c \
425 src/stream_output/sap.c \
426 src/stream_output/acl.c \
428 src/osd/osd_parser.c \
430 src/osd/osd_widgets.c \
441 src/misc/configuration.c \
443 src/misc/iso_lang.c \
444 src/misc/iso-639_def.h \
445 src/misc/messages.c \
447 src/misc/variables.c \
450 src/misc/getaddrinfo.c \
457 src/control/audio_video.c \
461 $(SOURCES_libvlc_common) \
462 $(OPT_SOURCES_libvlc_beos) \
463 $(OPT_SOURCES_libvlc_darwin) \
464 $(OPT_SOURCES_libvlc_win32) \
465 $(OPT_SOURCES_libvlc_dirent) \
466 $(OPT_SOURCES_libvlc_getopt) \
469 ###############################################################################
471 ###############################################################################
475 vlc_SOURCES = src/vlc.c
477 # Work around a bug in the arm-wince-pe linker
479 vlc_WORKAROUNDLDFLAGS = $(LIB_libvlc)
483 ### libvlc.so cannot be created into lib/
484 LIB_libvlc = libvlc$(LIBEXT)
486 #-Wl,-rpath $(libdir)
488 LIB_libvlc = lib/libvlc.a
489 LDFLAGS_libvlc = `$(VLC_CONFIG) --libs vlc builtin`
492 vlc_LDFLAGS = $(LDFLAGS_libvlc) $(vlc_WORKAROUNDLDFLAGS)
493 vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
494 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
496 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
497 # old automake-1.5 bug (automake/279).
498 DEPENDENCIES_vlc = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
500 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
502 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
503 c++) cmd="$(CXXLINK)" ;; \
504 objc) cmd="$(OBJCLINK)" ;; \
505 c|*) cmd="$(LINK)" ;; \
507 cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS)" ; \
512 DATA_noinst_beos = vlc-bundle
514 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
515 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
516 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
517 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
518 if test -n "$$i" ; then \
519 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
520 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
523 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
524 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
525 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
526 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
529 for i in $(ALL_LINGUAS); do \
530 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
531 cp "$(top_builddir)/po/$$i.gmo" \
532 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
534 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
537 # Install the symlinks and shared libvlc
539 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
540 rm -f "$(DESTDIR)$(bindir)/$$i" && \
541 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
543 test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)"
545 # the opposite of install-{data,exec}-local
547 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
548 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
550 test -z "$(DATA_noinst_libvlc)" || rm -f "$(DESTDIR)$(libdir)/$(DATA_noinst_libvlc)"
553 # Create the MacOS X app
554 vlc_app_DATA = VLC.app
555 vlc_appdir = $(bindir)
556 # VLC-release.app is the old VLC.app target
558 @if test -e "$(top_builddir)/tmp"; then \
559 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
562 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
564 rm -Rf $(top_builddir)/VLC-release.app
565 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
566 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
567 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
569 mkdir -p $(top_builddir)/tmp/modules/audio_output
570 cp $(srcdir)/modules/audio_output/coreaudio.c \
571 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
572 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
609 cp "$(srcdir)/modules/gui/macosx/$$i" \
610 $(top_builddir)/tmp/modules/gui/macosx; \
612 case $(target_triplet) in \
613 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
615 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
616 $(top_builddir)/VLC-release.app;; \
617 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
619 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
620 $(top_builddir)/VLC-release.app;; \
621 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
623 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
624 $(top_builddir)/VLC-release.app;; \
626 rm -Rf $(top_builddir)/tmp
627 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
628 $(INSTALL) $(top_builddir)/vlc \
629 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
630 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
631 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
632 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
634 then $(INSTALL) "$$i$(LIBEXT)" \
635 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
637 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
638 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
639 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
640 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
643 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
644 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
645 for i in $(srcdir)/share/http/* ; do \
646 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
648 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
649 for i in $(srcdir)/share/http/vlm/* ; do \
650 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
652 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
653 for i in $(srcdir)/share/http/admin/* ; do \
654 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
656 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
657 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
658 for i in $(ALL_LINGUAS); do \
659 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
660 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
661 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
662 ln -sf ../English.lproj/InfoPlist.strings \
663 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
664 ln -sf ../English.lproj/MainMenu.nib \
665 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
666 ln -sf ../English.lproj/vlc.scriptTerminology \
667 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
669 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
672 @if test -e "$(top_builddir)/tmp"; then \
673 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
676 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
678 rm -Rf $(top_builddir)/VLC.app
679 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
680 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
681 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
683 mkdir -p $(top_builddir)/tmp/modules/audio_output
684 cp $(srcdir)/modules/audio_output/coreaudio.c \
685 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
686 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
723 cp "$(srcdir)/modules/gui/macosx/$$i" \
724 $(top_builddir)/tmp/modules/gui/macosx; \
726 case $(target_triplet) in \
727 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
729 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
730 $(top_builddir)/VLC.app;; \
731 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
733 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
734 $(top_builddir)/VLC.app;; \
735 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
737 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
738 $(top_builddir)/VLC.app;; \
740 rm -Rf $(top_builddir)/tmp
741 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
742 $(INSTALL) $(top_builddir)/vlc \
743 $(top_builddir)/VLC.app/Contents/MacOS/VLC
744 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
745 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
746 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
748 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
749 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
751 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
752 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
753 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
754 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
757 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
758 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
759 for i in $(ALL_LINGUAS); do \
760 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
761 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
762 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
763 ln -sf ../English.lproj/InfoPlist.strings \
764 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
765 ln -sf ../English.lproj/MainMenu.nib \
766 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
768 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
772 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
773 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
774 noinst_share_vlc_win32_rcdir = $(libdir)
775 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
776 $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir)/share -i $< -o $@
780 ###############################################################################
781 # Building specific source packages
782 ###############################################################################
785 $(remove_distdir_woody)
786 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
787 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
788 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
789 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
790 $(remove_distdir_woody)
792 remove_distdir_woody = \
793 { test ! -d $(PACKAGE)-woody-$(VERSION) \
794 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
795 -exec chmod u+w {} ';' \
796 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
798 ###############################################################################
799 # Building architecture-specific binary packages
800 ###############################################################################
802 # XXX: this rule is probably only useful to you if you have exactly
803 # the same setup as me. Contact sam@zoy.org if you need to use it.
806 # Check that tmp isn't in the way
807 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
808 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
811 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
814 # Copy relevant files
815 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
816 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
817 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
818 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
820 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
821 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
822 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
824 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
825 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
826 if test -n "$$i" ; then \
827 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
828 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
831 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
832 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
834 mkdir $(top_builddir)/vlc-${VERSION}/locale
835 for i in $(ALL_LINGUAS); do \
836 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
837 cp "$(srcdir)/po/$${i}.gmo" \
838 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
842 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
843 for i in $(srcdir)/share/skins2/fonts/*.*; do \
844 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
846 for i in $(srcdir)/share/skins2/*.*; do \
847 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
850 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
851 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-${VERSION}/osdmenu"
852 for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume;do \
853 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir"; \
854 for file in $(srcdir)/share/osdmenu/$${dir}/*.*;do \
855 cp $$file "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir" || true; \
858 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg;
859 sed -i 's%share/osdmenu%osdmenu%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
860 sed -i 's%/%\\%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
862 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
863 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
864 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
865 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;:
866 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
867 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
868 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
869 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
870 cp $(srcdir)/share/http/admin/*.html \
871 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
872 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
873 cp $(srcdir)/share/http/admin/dboxfiles.html \
874 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
875 cp $(srcdir)/share/http/admin/.access \
876 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
877 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
878 cp $(srcdir)/share/http/vlm/*.html \
879 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
880 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
882 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
884 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
886 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
887 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
888 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
891 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
893 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
894 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
895 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
897 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
898 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
900 # Rebase all those DLLs to speed up loading (need cygwin rebase)
901 if [ -x rebase ]; then \
902 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
905 package-win32-base-exe:
907 wine C:/Program\ Files/NSIS/makensis.exe \
908 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
910 package-win32-base-exe-cygwin:
912 C:/Program\ Files/NSIS/makensis.exe \
913 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
915 package-win32-base-exe-linux:
917 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
919 package-win32-base-zip:
921 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
923 package-win32-exe: package-win32-base package-win32-base-exe
925 rm -Rf $(top_builddir)/vlc-${VERSION}
927 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
929 rm -Rf $(top_builddir)/vlc-${VERSION}
931 package-win32-zip: package-win32-base package-win32-base-zip
933 rm -Rf $(top_builddir)/vlc-${VERSION}
935 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
937 rm -Rf $(top_builddir)/vlc-${VERSION}
940 # Check that tmp isn't in the way
941 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
942 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
945 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
948 # Copy relevant files
949 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
950 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
951 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
953 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
954 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
955 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
957 mkdir $(top_builddir)/vlc-${VERSION}/locale
958 for i in $(ALL_LINGUAS); do \
959 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
960 cp "$(srcdir)/po/$${i}.gmo" \
961 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
966 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
967 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
968 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
969 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
970 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
971 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
972 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
973 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
974 cp $(srcdir)/share/http/admin/*.html \
975 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
976 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
977 cp $(srcdir)/share/http/admin/dboxfiles.html \
978 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
979 cp $(srcdir)/share/http/admin/.access \
980 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
981 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
982 cp $(srcdir)/share/http/vlm/*.html \
983 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
984 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
986 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
989 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
990 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
991 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
992 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
996 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
997 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
998 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
999 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
1001 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
1002 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
1004 # Rebase all those DLLs to speed up loading (need cygwin rebase)
1005 if [ -x rebase ]; then \
1006 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
1009 package-wince-base-zip:
1011 zip -r vlc-${VERSION}-wince.zip vlc-${VERSION}
1013 package-wince: package-wince-base package-wince-base-zip
1015 rm -Rf $(top_builddir)/vlc-${VERSION}
1019 # Check that tmp isn't in the way
1020 @if test -e $(srcdir)/tmp; then \
1021 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
1024 echo "OK." ; mkdir $(srcdir)/tmp ; \
1027 # Copy relevant files
1028 mkdir -p $(srcdir)/tmp/vlc ;
1029 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
1030 THANKS NEWS tmp/vlc/ ;
1032 # Create debug package
1033 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
1034 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
1035 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
1036 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
1037 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
1038 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
1040 # Create normal package
1041 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
1042 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1043 --strip-debug --strip-unneeded "{}" \; ;
1044 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
1045 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
1046 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
1047 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
1048 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
1051 rm -Rf $(srcdir)/tmp ;
1054 # Check that tmp isn't in the way
1055 @if test -e "$(top_builddir)/tmp"; then \
1056 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
1059 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
1062 # Copy relevant files
1063 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
1064 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/ && cp -r extras/MacOSX/Delete\ Preferences.app $(top_builddir)/tmp/
1067 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
1070 rm -Rf $(top_builddir)/tmp
1072 package-translations:
1073 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
1074 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
1077 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
1080 for i in $(ALL_LINGUAS); do \
1081 cp "$(srcdir)/po/$${i}.po" \
1082 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
1085 cp "$(srcdir)/doc/translations.txt" \
1086 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
1088 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1089 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1090 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1091 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1092 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1093 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1094 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1095 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1097 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1098 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1100 ###############################################################################
1101 # PO translation files update
1102 ###############################################################################
1106 rm -f $(top_srcdir)/po/POTFILES.in
1108 cd $(top_srcdir) ; \
1109 echo "# automatically created by make update-po" ; \
1111 echo "# main sources" ; \
1112 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
1113 | grep -v '\(vlc_symbols\|misc/modules_\)' \
1116 echo "# modules" ; \
1117 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
1118 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
1120 } > $(top_srcdir)/po/POTFILES.in
1121 rm -f $(top_srcdir)/po/vlc.pot
1122 cd po && $(MAKE) POTFILES vlc.pot update-po
1124 #cd po && $(MAKE) update-po
1126 ###############################################################################
1128 ###############################################################################
1129 stamp-builtin: FORCE
1130 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
1131 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
1136 @if test ! -f $@; then printf "" > $@; fi
1138 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl
1139 ( cd $(srcdir) && cat $(HEADERS_include) ) | \
1140 top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
1143 ###############################################################################
1145 ###############################################################################