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 SUBDIRS = intl modules po . mozilla activex share m4 doc
15 DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib
35 # Tell aclocal to use -I m4. Wonder if it really works.
36 ACLOCAL_AMFLAGS = -I m4
38 # XXX: these flags could be set in configure.ac, but we set them here
39 # because old versions of automake don't support them in configure.ac.
40 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
42 ###############################################################################
44 ###############################################################################
48 include/vlc_symbols.h \
49 src/misc/modules_builtin.h \
50 src/misc/modules_plugin.h \
53 pkgincludedir = $(includedir)/vlc
55 dist_pkginclude_HEADERS = \
60 include/vlc/decoder.h \
65 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
68 include/aout_internal.h \
69 include/audio_output.h \
70 include/beos_specific.h \
73 include/configuration.h \
74 include/darwin_specific.h \
75 include/intf_eject.h \
80 include/modules_inner.h \
84 include/os_specific.h \
86 include/stream_output.h \
88 include/video_output.h \
89 include/vlc_access.h \
92 include/vlc_block_helper.h \
94 include/vlc_common.h \
95 include/vlc_config.h \
100 include/vlc_es_out.h \
101 include/vlc_filter.h \
102 include/vlc_config_cat.h \
103 include/vlc_httpd.h \
106 include/vlc_image.h \
107 include/vlc_input.h \
108 include/vlc_interface.h \
110 include/vlc_messages.h \
112 include/vlc_objects.h \
113 include/vlc_playlist.h \
115 include/vlc_stream.h \
116 include/vlc_threads_funcs.h \
117 include/vlc_threads.h \
118 include/vlc_video.h \
122 include/vout_synchro.h \
123 include/win32_specific.h \
126 HEADERS_include_built = \
127 include/vlc_symbols.h \
130 # Common dependencies for these 3 files : Makefile vlc-config
131 # Real specific dependencies :
133 #include/vlc_symbols.h: $(HEADERS_include)
134 #src/misc/modules_plugin.h: src/misc/modules_plugin.h.in $(HEADERS_include)
135 #src/misc/modules_builtin.h: src/misc/modules_builtin.h.in vlc-config
137 include/vlc_symbols.h:
138 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
140 src/misc/modules_plugin.h: src/misc/modules_plugin.h.in
141 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
143 src/misc/modules_builtin.h: src/misc/modules_builtin.h.in
144 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
146 # These dependencies are mandatory
147 $(SOURCES): include/vlc_symbols.h
148 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
150 ###############################################################################
151 # Optional libintl - FIXME, bad dependencies
152 ###############################################################################
154 intl/libintl.a: FORCE
155 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
158 LIB_intl = intl/libintl.a
161 ###############################################################################
163 ###############################################################################
166 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
167 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
168 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
169 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
170 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
171 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
172 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
173 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
174 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
175 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
176 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
177 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
178 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
179 extras/MacOSX/Resources/a52.icns \
180 extras/MacOSX/Resources/aac.icns \
181 extras/MacOSX/Resources/asf.icns \
182 extras/MacOSX/Resources/asx.icns \
183 extras/MacOSX/Resources/avi.icns \
184 extras/MacOSX/Resources/bin.icns \
185 extras/MacOSX/Resources/cue.icns \
186 extras/MacOSX/Resources/dat.icns \
187 extras/MacOSX/Resources/divx.icns \
188 extras/MacOSX/Resources/dv.icns \
189 extras/MacOSX/Resources/generic.icns \
190 extras/MacOSX/Resources/m3u.icns \
191 extras/MacOSX/Resources/mov.icns \
192 extras/MacOSX/Resources/mp3.icns \
193 extras/MacOSX/Resources/mp4.icns \
194 extras/MacOSX/Resources/mpeg.icns \
195 extras/MacOSX/Resources/mpeg1.icns \
196 extras/MacOSX/Resources/mpeg2.icns \
197 extras/MacOSX/Resources/mpeg4.icns \
198 extras/MacOSX/Resources/mpg.icns \
199 extras/MacOSX/Resources/ogg.icns \
200 extras/MacOSX/Resources/ogm.icns \
201 extras/MacOSX/Resources/pls.icns \
202 extras/MacOSX/Resources/srt.icns \
203 extras/MacOSX/Resources/sub.icns \
204 extras/MacOSX/Resources/vlc.icns \
205 extras/MacOSX/Resources/vob.icns \
206 extras/MacOSX/Resources/wma.icns \
207 extras/MacOSX/Resources/wmv.icns \
208 extras/MacOSX/Resources/pause.png \
209 extras/MacOSX/Resources/pause_blue.png \
210 extras/MacOSX/Resources/play.png \
211 extras/MacOSX/Resources/play_blue.png \
212 extras/MacOSX/Resources/stop.png \
213 extras/MacOSX/Resources/stop_blue.png \
214 extras/MacOSX/Resources/display.png \
215 extras/MacOSX/Resources/display_slider.png \
216 extras/MacOSX/Resources/display_track.png \
217 extras/MacOSX/Resources/equalizerdrawer_active.png \
218 extras/MacOSX/Resources/equalizerdrawer_blue.png \
219 extras/MacOSX/Resources/fullscreen_active.png \
220 extras/MacOSX/Resources/fullscreen_blue.png \
221 extras/MacOSX/Resources/next_active.png \
222 extras/MacOSX/Resources/next_blue.png \
223 extras/MacOSX/Resources/playlistdrawer_active.png \
224 extras/MacOSX/Resources/playlistdrawer_blue.png \
225 extras/MacOSX/Resources/previous_active.png \
226 extras/MacOSX/Resources/previous_blue.png \
227 extras/MacOSX/Resources/skip_forward_active.png \
228 extras/MacOSX/Resources/skip_forward_blue.png \
229 extras/MacOSX/Resources/skip_previous_active.png \
230 extras/MacOSX/Resources/skip_previous_blue.png \
231 extras/MacOSX/Resources/volume_high.png \
232 extras/MacOSX/Resources/volume_low.png \
233 extras/MacOSX/Resources/volumeslider_blue.png \
234 extras/MacOSX/Resources/volumeslider_normal.png \
235 extras/MacOSX/Resources/volumetrack.png \
236 extras/MacOSX/Resources/about_bg.png \
237 extras/MacOSX/Resources/vlc.scriptSuite \
238 extras/MacOSX/Resources/vlc.scriptTerminology \
239 extras/MacOSX/Resources/README \
240 extras/MacOSX/vlc.pbproj/project.pbxproj \
241 extras/MacOSX/macosx-dmg \
244 ###############################################################################
245 # MS Visual Studio and eMbedded Visual Studio projects
246 ###############################################################################
251 msvc/plugins.dsp.in \
254 msvc/modules_builtin_msvc.h \
261 evc/modules_builtin_evc.h \
265 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
266 distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
268 ###############################################################################
270 ###############################################################################
272 bin_SCRIPTS = vlc-config
273 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
274 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
275 -cd $(top_builddir) && chmod 0755 $@
277 $(SOURCES): vlc-config
279 CLEANFILES = $(BUILT_SOURCES)
281 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
283 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
284 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
285 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
286 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
287 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
289 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
290 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
291 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
292 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
295 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
298 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
301 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
304 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
307 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
310 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
314 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
319 $(SOURCES_libvlc_beos) \
320 $(SOURCES_libvlc_darwin) \
321 $(SOURCES_libvlc_win32) \
322 $(SOURCES_libvlc_dirent) \
323 $(SOURCES_libvlc_getopt) \
326 SOURCES_libvlc_beos = \
327 src/misc/beos_specific.cpp \
330 SOURCES_libvlc_darwin = \
331 src/misc/darwin_specific.m \
334 SOURCES_libvlc_win32 = \
335 src/misc/win32_specific.c \
338 SOURCES_libvlc_dirent = \
339 src/extras/dirent.c \
342 SOURCES_libvlc_getopt = \
343 src/extras/getopt.c \
344 src/extras/getopt.h \
345 src/extras/getopt1.c \
348 SOURCES_libvlc_common = \
351 src/interface/interface.c \
352 src/interface/intf_eject.c \
353 src/playlist/playlist.c \
354 src/playlist/sort.c \
355 src/playlist/loadsave.c \
356 src/playlist/view.c \
357 src/playlist/item.c \
358 src/playlist/item-ext.c \
359 src/playlist/services_discovery.c \
362 src/input/control.c \
363 src/input/decoder.c \
367 src/input/input_internal.h \
369 src/input/mem_stream.c \
370 src/input/subtitles.c \
372 src/video_output/video_output.c \
373 src/video_output/vout_pictures.c \
374 src/video_output/vout_pictures.h \
375 src/video_output/video_text.c \
376 src/video_output/video_widgets.c \
377 src/video_output/vout_subpictures.c \
378 src/video_output/vout_synchro.c \
379 src/video_output/vout_intf.c \
380 src/audio_output/common.c \
381 src/audio_output/dec.c \
382 src/audio_output/filters.c \
383 src/audio_output/input.c \
384 src/audio_output/mixer.c \
385 src/audio_output/output.c \
386 src/audio_output/intf.c \
387 src/stream_output/stream_output.c \
388 src/stream_output/announce.c \
389 src/stream_output/sap.c \
399 src/misc/configuration.c \
401 src/misc/iso_lang.c \
402 src/misc/iso-639_def.h \
403 src/misc/messages.c \
405 src/misc/variables.c \
408 src/misc/getaddrinfo.c \
415 $(SOURCES_libvlc_common) \
416 $(OPT_SOURCES_libvlc_beos) \
417 $(OPT_SOURCES_libvlc_darwin) \
418 $(OPT_SOURCES_libvlc_win32) \
419 $(OPT_SOURCES_libvlc_dirent) \
420 $(OPT_SOURCES_libvlc_getopt) \
423 ###############################################################################
425 ###############################################################################
429 vlc_SOURCES = src/vlc.c
431 # Work around a bug in the arm-wince-pe linker
433 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
436 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
437 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
438 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
440 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
441 # old automake-1.5 bug (automake/279).
442 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
444 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
445 @rm -f $(top_builddir)/vlc$(EXEEXT)
446 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
447 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
448 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
449 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
453 noinst_DATA = vlc-bundle
455 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
456 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
457 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
458 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
459 if test -n "$$i" ; then \
460 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
461 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
464 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
465 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
466 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
467 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
470 for i in $(ALL_LINGUAS); do \
471 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
472 cp "$(top_builddir)/po/$$i.gmo" \
473 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
475 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
478 # Install the modules and the symlinks
480 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
481 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
482 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
484 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
485 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
486 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
489 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
490 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
491 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
494 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
495 rm -f "$(DESTDIR)$(bindir)/$$i" && \
496 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
500 # Create the MacOS X app
501 vlc_app_DATA = VLC.app
502 vlc_appdir = $(bindir)
503 # VLC-release.app is the old VLC.app target
505 @if test -e "$(top_builddir)/tmp"; then \
506 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
509 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
511 rm -Rf $(top_builddir)/VLC-release.app
512 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
513 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
514 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
516 mkdir -p $(top_builddir)/tmp/modules/audio_output
517 cp $(srcdir)/modules/audio_output/coreaudio.c \
518 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
519 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
550 cp "$(srcdir)/modules/gui/macosx/$$i" \
551 $(top_builddir)/tmp/modules/gui/macosx; \
553 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
554 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
555 $(top_builddir)/VLC-release.app
556 rm -Rf $(top_builddir)/tmp
557 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
558 $(INSTALL) $(top_builddir)/vlc \
559 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
560 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
561 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
562 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
564 then $(INSTALL) "$$i$(LIBEXT)" \
565 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
567 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
568 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
569 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
570 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
573 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
574 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
575 for i in $(srcdir)/share/http/* ; do \
576 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
578 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
579 for i in $(srcdir)/share/http/vlm/* ; do \
580 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
582 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
583 for i in $(srcdir)/share/http/admin/* ; do \
584 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
586 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
587 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
588 for i in $(ALL_LINGUAS); do \
589 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
590 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
591 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
592 ln -sf ../English.lproj/InfoPlist.strings \
593 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
594 ln -sf ../English.lproj/MainMenu.nib \
595 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
596 ln -sf ../English.lproj/vlc.scriptTerminology \
597 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
599 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
602 @if test -e "$(top_builddir)/tmp"; then \
603 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
606 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
608 rm -Rf $(top_builddir)/VLC.app
609 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
610 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
611 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
613 mkdir -p $(top_builddir)/tmp/modules/audio_output
614 cp $(srcdir)/modules/audio_output/coreaudio.c \
615 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
616 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
647 cp "$(srcdir)/modules/gui/macosx/$$i" \
648 $(top_builddir)/tmp/modules/gui/macosx; \
650 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
651 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
652 $(top_builddir)/VLC.app
653 rm -Rf $(top_builddir)/tmp
654 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
655 $(INSTALL) $(top_builddir)/vlc \
656 $(top_builddir)/VLC.app/Contents/MacOS/VLC
657 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
658 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
659 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
661 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
662 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
664 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
665 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
666 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
667 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
670 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
671 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
672 for i in $(ALL_LINGUAS); do \
673 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
674 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
675 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
676 ln -sf ../English.lproj/InfoPlist.strings \
677 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
678 ln -sf ../English.lproj/MainMenu.nib \
679 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
681 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
685 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
686 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
687 noinst_share_vlc_win32_rcdir = $(libdir)
688 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
689 $(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 $@
692 ###############################################################################
693 # Building specific source packages
694 ###############################################################################
697 $(remove_distdir_woody)
698 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
699 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
700 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
701 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
702 $(remove_distdir_woody)
704 remove_distdir_woody = \
705 { test ! -d $(PACKAGE)-woody-$(VERSION) \
706 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
707 -exec chmod u+w {} ';' \
708 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
710 ###############################################################################
711 # Building architecture-specific binary packages
712 ###############################################################################
714 # XXX: this rule is probably only useful to you if you have exactly
715 # the same setup as me. Contact sam@zoy.org if you need to use it.
718 # Check that tmp isn't in the way
719 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
720 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
723 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
726 # Copy relevant files
727 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
728 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
729 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
730 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
732 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
733 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
734 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
736 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
737 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
738 if test -n "$$i" ; then \
739 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
740 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
743 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
744 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
746 mkdir $(top_builddir)/vlc-${VERSION}/locale
747 for i in $(ALL_LINGUAS); do \
748 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
749 cp "$(srcdir)/po/$${i}.gmo" \
750 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
754 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
755 for i in $(srcdir)/share/skins2/fonts/*.*; do \
756 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
758 for i in $(srcdir)/share/skins2/*.*; do \
759 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
762 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
763 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
764 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
765 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
766 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
767 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
768 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
769 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
770 cp $(srcdir)/share/http/admin/*.html \
771 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
772 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
773 cp $(srcdir)/share/http/admin/.access \
774 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
775 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
776 cp $(srcdir)/share/http/vlm/*.html \
777 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
778 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
780 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
782 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
784 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
785 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
786 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
789 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
791 cp $(top_builddir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
792 cp $(top_builddir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
793 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
795 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
796 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
798 # Rebase all those DLLs to speed up loading (need cygwin rebase)
799 if [ -x rebase ]; then \
800 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
803 package-win32-base-exe:
805 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
806 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
808 package-win32-base-exe-cygwin:
810 C:/Program\ Files/NSIS/makensis.exe \
811 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
813 package-win32-base-exe-linux:
815 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
817 package-win32-base-zip:
819 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
821 package-win32-exe: package-win32-base package-win32-base-exe
823 rm -Rf $(top_builddir)/vlc-${VERSION}
825 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
827 rm -Rf $(top_builddir)/vlc-${VERSION}
829 package-win32-zip: package-win32-base package-win32-base-zip
831 rm -Rf $(top_builddir)/vlc-${VERSION}
833 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
835 rm -Rf $(top_builddir)/vlc-${VERSION}
838 # Check that tmp isn't in the way
839 @if test -e $(srcdir)/tmp; then \
840 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
843 echo "OK." ; mkdir $(srcdir)/tmp ; \
846 # Copy relevant files
847 mkdir -p $(srcdir)/tmp/vlc ;
848 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
849 THANKS NEWS tmp/vlc/ ;
851 # Create debug package
852 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
853 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
854 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
855 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
856 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
857 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
859 # Create normal package
860 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
861 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
862 --strip-debug --strip-unneeded "{}" \; ;
863 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
864 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
865 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
866 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
867 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
870 rm -Rf $(srcdir)/tmp ;
873 # Check that tmp isn't in the way
874 @if test -e "$(top_builddir)/tmp"; then \
875 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
878 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
881 # Copy relevant files
882 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
883 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
886 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
889 rm -Rf $(top_builddir)/tmp
891 package-translations:
892 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
893 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
896 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
899 for i in $(ALL_LINGUAS); do \
900 cp "$(srcdir)/po/$${i}.po" \
901 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
904 cp "$(srcdir)/doc/translations.txt" \
905 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
907 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
908 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
909 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
910 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
911 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
912 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
913 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
914 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
916 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
917 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
919 ###############################################################################
921 ###############################################################################
922 clean: clean-stamp clean-recursive
924 rm -f stamp-builtin stamp-api
927 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
928 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
933 @if test ! -f $@; then printf "" > $@; fi
935 stamp-api: Makefile $(HEADERS_include) vlc-config src/misc/modules_plugin.h.in src/misc/modules_builtin.h.in
936 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
939 ###############################################################################
941 ###############################################################################