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 ###############################################################################
47 include/vlc_symbols.h \
48 src/misc/modules_builtin.h \
49 src/misc/modules_plugin.h \
52 pkgincludedir = $(includedir)/vlc
54 dist_pkginclude_HEADERS = \
59 include/vlc/decoder.h \
64 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
67 include/aout_internal.h \
68 include/audio_output.h \
69 include/beos_specific.h \
72 include/configuration.h \
73 include/darwin_specific.h \
74 include/intf_eject.h \
79 include/modules_inner.h \
83 include/os_specific.h \
85 include/stream_output.h \
87 include/video_output.h \
88 include/vlc_access.h \
91 include/vlc_block_helper.h \
93 include/vlc_common.h \
94 include/vlc_config.h \
99 include/vlc_es_out.h \
100 include/vlc_filter.h \
101 include/vlc_config_cat.h \
102 include/vlc_httpd.h \
104 include/vlc_image.h \
105 include/vlc_input.h \
106 include/vlc_interface.h \
108 include/vlc_messages.h \
110 include/vlc_objects.h \
111 include/vlc_playlist.h \
113 include/vlc_stream.h \
114 include/vlc_threads_funcs.h \
115 include/vlc_threads.h \
116 include/vlc_video.h \
120 include/vout_synchro.h \
121 include/win32_specific.h \
124 HEADERS_include_built = \
125 include/vlc_symbols.h \
128 # Common dependencies for these 3 files : Makefile vlc-config
129 # Specific dependencies :
130 # include/vlc_symbols.h: $(HEADERS_include)
131 # src/misc/modules_plugin.h: src/misc/modules_plugin.h.in $(HEADERS_include)
132 # src/misc/modules_builtin.h: src/misc/modules_builtin.h.in
134 include/vlc_symbols.h src/misc/modules_plugin.h src/misc/modules_builtin.h: Makefile $(HEADERS_include) vlc-config src/misc/modules_plugin.h.in src/misc/modules_builtin.h.in
135 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
137 # These dependencies are mandatory
138 $(SOURCES): include/vlc_symbols.h
139 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
141 ###############################################################################
142 # Optional libintl - FIXME, bad dependencies
143 ###############################################################################
145 intl/libintl.a: FORCE
146 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
149 LIB_intl = intl/libintl.a
152 ###############################################################################
154 ###############################################################################
157 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
158 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
159 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
160 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
161 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
162 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
163 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
164 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
165 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
166 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
167 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
168 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
169 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
170 extras/MacOSX/Resources/a52.icns \
171 extras/MacOSX/Resources/aac.icns \
172 extras/MacOSX/Resources/asf.icns \
173 extras/MacOSX/Resources/asx.icns \
174 extras/MacOSX/Resources/avi.icns \
175 extras/MacOSX/Resources/bin.icns \
176 extras/MacOSX/Resources/cue.icns \
177 extras/MacOSX/Resources/dat.icns \
178 extras/MacOSX/Resources/divx.icns \
179 extras/MacOSX/Resources/dv.icns \
180 extras/MacOSX/Resources/generic.icns \
181 extras/MacOSX/Resources/m3u.icns \
182 extras/MacOSX/Resources/mov.icns \
183 extras/MacOSX/Resources/mp3.icns \
184 extras/MacOSX/Resources/mp4.icns \
185 extras/MacOSX/Resources/mpeg.icns \
186 extras/MacOSX/Resources/mpeg1.icns \
187 extras/MacOSX/Resources/mpeg2.icns \
188 extras/MacOSX/Resources/mpeg4.icns \
189 extras/MacOSX/Resources/mpg.icns \
190 extras/MacOSX/Resources/ogg.icns \
191 extras/MacOSX/Resources/ogm.icns \
192 extras/MacOSX/Resources/pls.icns \
193 extras/MacOSX/Resources/srt.icns \
194 extras/MacOSX/Resources/sub.icns \
195 extras/MacOSX/Resources/vlc.icns \
196 extras/MacOSX/Resources/vob.icns \
197 extras/MacOSX/Resources/wma.icns \
198 extras/MacOSX/Resources/wmv.icns \
199 extras/MacOSX/Resources/pause.png \
200 extras/MacOSX/Resources/pause_blue.png \
201 extras/MacOSX/Resources/play.png \
202 extras/MacOSX/Resources/play_blue.png \
203 extras/MacOSX/Resources/stop.png \
204 extras/MacOSX/Resources/stop_blue.png \
205 extras/MacOSX/Resources/display.png \
206 extras/MacOSX/Resources/display_slider.png \
207 extras/MacOSX/Resources/display_track.png \
208 extras/MacOSX/Resources/equalizerdrawer_active.png \
209 extras/MacOSX/Resources/equalizerdrawer_blue.png \
210 extras/MacOSX/Resources/fullscreen_active.png \
211 extras/MacOSX/Resources/fullscreen_blue.png \
212 extras/MacOSX/Resources/next_active.png \
213 extras/MacOSX/Resources/next_blue.png \
214 extras/MacOSX/Resources/playlistdrawer_active.png \
215 extras/MacOSX/Resources/playlistdrawer_blue.png \
216 extras/MacOSX/Resources/previous_active.png \
217 extras/MacOSX/Resources/previous_blue.png \
218 extras/MacOSX/Resources/skip_forward_active.png \
219 extras/MacOSX/Resources/skip_forward_blue.png \
220 extras/MacOSX/Resources/skip_previous_active.png \
221 extras/MacOSX/Resources/skip_previous_blue.png \
222 extras/MacOSX/Resources/volume_high.png \
223 extras/MacOSX/Resources/volume_low.png \
224 extras/MacOSX/Resources/volumeslider_blue.png \
225 extras/MacOSX/Resources/volumeslider_normal.png \
226 extras/MacOSX/Resources/volumetrack.png \
227 extras/MacOSX/Resources/about_bg.png \
228 extras/MacOSX/Resources/vlc.scriptSuite \
229 extras/MacOSX/Resources/vlc.scriptTerminology \
230 extras/MacOSX/Resources/README \
231 extras/MacOSX/vlc.pbproj/project.pbxproj \
232 extras/MacOSX/macosx-dmg \
235 ###############################################################################
236 # MS Visual Studio and eMbedded Visual Studio projects
237 ###############################################################################
242 msvc/plugins.dsp.in \
245 msvc/modules_builtin_msvc.h \
252 evc/modules_builtin_evc.h \
256 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
257 distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
259 ###############################################################################
261 ###############################################################################
263 bin_SCRIPTS = vlc-config
264 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
265 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
266 -cd $(top_builddir) && chmod 0755 $@
268 $(SOURCES): vlc-config
270 CLEANFILES = $(BUILT_SOURCES)
272 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
274 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
275 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
276 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
277 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
278 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
280 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
281 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
282 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
283 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
286 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
289 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
292 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
295 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
298 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
301 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
305 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
310 $(SOURCES_libvlc_beos) \
311 $(SOURCES_libvlc_darwin) \
312 $(SOURCES_libvlc_win32) \
313 $(SOURCES_libvlc_dirent) \
314 $(SOURCES_libvlc_getopt) \
317 SOURCES_libvlc_beos = \
318 src/misc/beos_specific.cpp \
321 SOURCES_libvlc_darwin = \
322 src/misc/darwin_specific.m \
325 SOURCES_libvlc_win32 = \
326 src/misc/win32_specific.c \
329 SOURCES_libvlc_dirent = \
330 src/extras/dirent.c \
333 SOURCES_libvlc_getopt = \
334 src/extras/getopt.c \
335 src/extras/getopt.h \
336 src/extras/getopt1.c \
339 SOURCES_libvlc_common = \
342 src/interface/interface.c \
343 src/interface/intf_eject.c \
344 src/playlist/playlist.c \
345 src/playlist/sort.c \
346 src/playlist/loadsave.c \
347 src/playlist/view.c \
348 src/playlist/item.c \
349 src/playlist/item-ext.c \
350 src/playlist/services_discovery.c \
353 src/input/control.c \
354 src/input/decoder.c \
358 src/input/input_internal.h \
360 src/input/mem_stream.c \
361 src/input/subtitles.c \
363 src/video_output/video_output.c \
364 src/video_output/vout_pictures.c \
365 src/video_output/vout_pictures.h \
366 src/video_output/video_text.c \
367 src/video_output/video_widgets.c \
368 src/video_output/vout_subpictures.c \
369 src/video_output/vout_synchro.c \
370 src/video_output/vout_intf.c \
371 src/audio_output/common.c \
372 src/audio_output/dec.c \
373 src/audio_output/filters.c \
374 src/audio_output/input.c \
375 src/audio_output/mixer.c \
376 src/audio_output/output.c \
377 src/audio_output/intf.c \
378 src/stream_output/stream_output.c \
379 src/stream_output/announce.c \
380 src/stream_output/sap.c \
389 src/misc/configuration.c \
391 src/misc/iso_lang.c \
392 src/misc/iso-639_def.h \
393 src/misc/messages.c \
395 src/misc/variables.c \
398 src/misc/getaddrinfo.c \
405 $(SOURCES_libvlc_common) \
406 $(OPT_SOURCES_libvlc_beos) \
407 $(OPT_SOURCES_libvlc_darwin) \
408 $(OPT_SOURCES_libvlc_win32) \
409 $(OPT_SOURCES_libvlc_dirent) \
410 $(OPT_SOURCES_libvlc_getopt) \
413 ###############################################################################
415 ###############################################################################
419 vlc_SOURCES = src/vlc.c
421 # Work around a bug in the arm-wince-pe linker
423 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
426 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
427 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
428 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
430 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
431 # old automake-1.5 bug (automake/279).
432 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
434 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
435 @rm -f $(top_builddir)/vlc$(EXEEXT)
436 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
437 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
438 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
439 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
443 noinst_DATA = vlc-bundle
445 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
446 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
447 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
448 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
449 if test -n "$$i" ; then \
450 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
451 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
454 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
455 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
456 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
457 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
460 for i in $(ALL_LINGUAS); do \
461 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
462 cp "$(top_builddir)/po/$$i.gmo" \
463 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
465 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
468 # Install the modules and the symlinks
470 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
471 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
472 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
474 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
475 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
476 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
479 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
480 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
481 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
484 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
485 rm -f "$(DESTDIR)$(bindir)/$$i" && \
486 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
490 # Create the MacOS X app
491 vlc_app_DATA = VLC.app
492 vlc_appdir = $(bindir)
493 # VLC-release.app is the old VLC.app target
495 @if test -e "$(top_builddir)/tmp"; then \
496 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
499 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
501 rm -Rf $(top_builddir)/VLC-release.app
502 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
503 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
504 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
506 mkdir -p $(top_builddir)/tmp/modules/audio_output
507 cp $(srcdir)/modules/audio_output/coreaudio.c \
508 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
509 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
540 cp "$(srcdir)/modules/gui/macosx/$$i" \
541 $(top_builddir)/tmp/modules/gui/macosx; \
543 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
544 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
545 $(top_builddir)/VLC-release.app
546 rm -Rf $(top_builddir)/tmp
547 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
548 $(INSTALL) $(top_builddir)/vlc \
549 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
550 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
551 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
552 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
554 then $(INSTALL) "$$i$(LIBEXT)" \
555 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
557 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
558 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
559 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
560 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
563 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
564 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
565 for i in $(srcdir)/share/http/* ; do \
566 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
568 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
569 for i in $(srcdir)/share/http/vlm/* ; do \
570 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
572 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
573 for i in $(srcdir)/share/http/admin/* ; do \
574 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
576 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
577 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
578 for i in $(ALL_LINGUAS); do \
579 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
580 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
581 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
582 ln -sf ../English.lproj/InfoPlist.strings \
583 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
584 ln -sf ../English.lproj/MainMenu.nib \
585 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
586 ln -sf ../English.lproj/vlc.scriptTerminology \
587 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
589 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
592 @if test -e "$(top_builddir)/tmp"; then \
593 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
596 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
598 rm -Rf $(top_builddir)/VLC.app
599 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
600 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
601 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
603 mkdir -p $(top_builddir)/tmp/modules/audio_output
604 cp $(srcdir)/modules/audio_output/coreaudio.c \
605 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
606 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
637 cp "$(srcdir)/modules/gui/macosx/$$i" \
638 $(top_builddir)/tmp/modules/gui/macosx; \
640 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
641 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
642 $(top_builddir)/VLC.app
643 rm -Rf $(top_builddir)/tmp
644 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
645 $(INSTALL) $(top_builddir)/vlc \
646 $(top_builddir)/VLC.app/Contents/MacOS/VLC
647 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
648 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
649 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
651 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
652 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
654 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
655 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
656 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
657 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
660 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
661 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
662 for i in $(ALL_LINGUAS); do \
663 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
664 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
665 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
666 ln -sf ../English.lproj/InfoPlist.strings \
667 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
668 ln -sf ../English.lproj/MainMenu.nib \
669 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
671 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
675 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
676 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
677 noinst_share_vlc_win32_rcdir = $(libdir)
678 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
679 $(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 $@
682 ###############################################################################
683 # Building specific source packages
684 ###############################################################################
687 $(remove_distdir_woody)
688 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
689 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
690 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
691 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
692 $(remove_distdir_woody)
694 remove_distdir_woody = \
695 { test ! -d $(PACKAGE)-woody-$(VERSION) \
696 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
697 -exec chmod u+w {} ';' \
698 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
700 ###############################################################################
701 # Building architecture-specific binary packages
702 ###############################################################################
704 # XXX: this rule is probably only useful to you if you have exactly
705 # the same setup as me. Contact sam@zoy.org if you need to use it.
708 # Check that tmp isn't in the way
709 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
710 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
713 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
716 # Copy relevant files
717 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
718 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
719 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
720 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
722 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
723 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
724 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
726 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
727 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
728 if test -n "$$i" ; then \
729 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
730 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
733 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
734 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
736 mkdir $(top_builddir)/vlc-${VERSION}/locale
737 for i in $(ALL_LINGUAS); do \
738 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
739 cp "$(srcdir)/po/$${i}.gmo" \
740 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
744 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
745 for i in $(srcdir)/share/skins2/fonts/*.*; do \
746 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
748 for i in $(srcdir)/share/skins2/*.*; do \
749 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
752 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
753 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
754 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
755 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
756 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
757 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
758 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
759 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
760 cp $(srcdir)/share/http/admin/*.html \
761 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
762 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
763 cp $(srcdir)/share/http/admin/.access \
764 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
765 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
766 cp $(srcdir)/share/http/vlm/*.html \
767 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
768 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
770 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
772 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
774 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
775 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
776 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
779 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
781 cp $(top_builddir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
782 cp $(top_builddir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
783 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
785 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
786 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
788 # Rebase all those DLLs to speed up loading (need cygwin rebase)
789 if [ -x rebase ]; then \
790 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
793 package-win32-base-exe:
795 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
796 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
798 package-win32-base-exe-cygwin:
800 C:/Program\ Files/NSIS/makensis.exe \
801 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
803 package-win32-base-exe-linux:
805 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
807 package-win32-base-zip:
809 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
811 package-win32-exe: package-win32-base package-win32-base-exe
813 rm -Rf $(top_builddir)/vlc-${VERSION}
815 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
817 rm -Rf $(top_builddir)/vlc-${VERSION}
819 package-win32-zip: package-win32-base package-win32-base-zip
821 rm -Rf $(top_builddir)/vlc-${VERSION}
823 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
825 rm -Rf $(top_builddir)/vlc-${VERSION}
828 # Check that tmp isn't in the way
829 @if test -e $(srcdir)/tmp; then \
830 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
833 echo "OK." ; mkdir $(srcdir)/tmp ; \
836 # Copy relevant files
837 mkdir -p $(srcdir)/tmp/vlc ;
838 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
839 THANKS NEWS tmp/vlc/ ;
841 # Create debug package
842 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
843 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
844 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
845 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
846 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
847 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
849 # Create normal package
850 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
851 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
852 --strip-debug --strip-unneeded "{}" \; ;
853 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
854 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
855 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
856 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
857 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
860 rm -Rf $(srcdir)/tmp ;
863 # Check that tmp isn't in the way
864 @if test -e "$(top_builddir)/tmp"; then \
865 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
868 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
871 # Copy relevant files
872 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
873 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
876 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
879 rm -Rf $(top_builddir)/tmp
881 package-translations:
882 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
883 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
886 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
889 for i in $(ALL_LINGUAS); do \
890 cp "$(srcdir)/po/$${i}.po" \
891 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
894 cp "$(srcdir)/doc/translations.txt" \
895 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
897 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
898 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
899 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
900 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
901 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
902 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
903 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
904 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
906 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
907 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
909 ###############################################################################
911 ###############################################################################
912 clean: clean-stamp clean-recursive
917 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
918 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
923 @if test ! -f $@; then printf "" > $@; fi
925 ###############################################################################
927 ###############################################################################