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/bindings 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 bindings 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 DISTCHECK_CONFIGURE_FLAGS = --disable-dvd --disable-mad --disable-libmpeg2 \
48 --disable-ffmpeg --disable-faad --disable-skins2
50 # Tell aclocal to use -I m4. Wonder if it really works.
51 ACLOCAL_AMFLAGS = -I m4
53 # XXX: these flags could be set in configure.ac, but we set them here
54 # because old versions of automake don't support them in configure.ac.
55 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
57 ###############################################################################
59 ###############################################################################
61 pkgincludedir = $(includedir)/vlc
63 dist_pkginclude_HEADERS = \
68 include/vlc/decoder.h \
71 include/vlc/control.h \
72 include/vlc/control_structures.h \
75 noinst_HEADERS = $(HEADERS_include)
76 noinst_DATA = $(DATA_noinst_beos) $(DATA_noinst_libvlc)
79 include/aout_internal.h \
80 include/audio_output.h \
81 include/beos_specific.h \
84 include/configuration.h \
85 include/darwin_specific.h \
86 include/intf_eject.h \
91 include/modules_inner.h \
94 include/os_specific.h \
96 include/stream_output.h \
98 include/video_output.h \
99 include/vlc_access.h \
102 include/vlc_block.h \
103 include/vlc_block_helper.h \
104 include/vlc_codec.h \
105 include/vlc_common.h \
106 include/vlc_config.h \
108 include/vlc_demux.h \
109 include/vlc_error.h \
111 include/vlc_es_out.h \
112 include/vlc_filter.h \
113 include/vlc_config_cat.h \
114 include/vlc_httpd.h \
117 include/vlc_image.h \
118 include/vlc_input.h \
119 include/vlc_interaction.h \
120 include/vlc_interface.h \
122 include/vlc_messages.h \
124 include/vlc_objects.h \
126 include/vlc_playlist.h \
128 include/vlc_stream.h \
129 include/vlc_symbols.h \
130 include/vlc_threads_funcs.h \
131 include/vlc_threads.h \
132 include/vlc_video.h \
136 include/vout_synchro.h \
137 include/win32_specific.h \
140 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
141 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
142 touch src/misc/modules_builtin.h
144 src/misc/modules.c: src/misc/modules_builtin.h
146 src/misc/version.c: FORCE
147 srcdir=$(srcdir) $(srcdir)/toolbox --update-version
149 # These dependencies are mandatory
150 $(SOURCES_libvlc): $(LIB_intl)
152 ###############################################################################
153 # Optional libintl - FIXME, bad dependencies
154 ###############################################################################
156 intl/libintl.a: FORCE
157 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
160 LIB_intl = intl/libintl.a
163 ###############################################################################
165 ###############################################################################
168 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
169 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
170 extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
171 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
172 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
173 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
174 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
175 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
176 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
177 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
178 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
179 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
180 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
181 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
182 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
183 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
184 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
185 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
186 extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib \
187 extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib \
188 extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
189 extras/MacOSX/Resources/English.lproj/SFilters.nib/classes.nib \
190 extras/MacOSX/Resources/English.lproj/SFilters.nib/info.nib \
191 extras/MacOSX/Resources/English.lproj/SFilters.nib/keyedobjects.nib \
192 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
193 extras/MacOSX/Resources/a52.icns \
194 extras/MacOSX/Resources/aac.icns \
195 extras/MacOSX/Resources/asf.icns \
196 extras/MacOSX/Resources/asx.icns \
197 extras/MacOSX/Resources/avi.icns \
198 extras/MacOSX/Resources/bin.icns \
199 extras/MacOSX/Resources/cue.icns \
200 extras/MacOSX/Resources/dat.icns \
201 extras/MacOSX/Resources/divx.icns \
202 extras/MacOSX/Resources/dv.icns \
203 extras/MacOSX/Resources/generic.icns \
204 extras/MacOSX/Resources/m3u.icns \
205 extras/MacOSX/Resources/mov.icns \
206 extras/MacOSX/Resources/mp3.icns \
207 extras/MacOSX/Resources/mp4.icns \
208 extras/MacOSX/Resources/mpeg.icns \
209 extras/MacOSX/Resources/mpeg1.icns \
210 extras/MacOSX/Resources/mpeg2.icns \
211 extras/MacOSX/Resources/mpeg4.icns \
212 extras/MacOSX/Resources/mpg.icns \
213 extras/MacOSX/Resources/ogg.icns \
214 extras/MacOSX/Resources/ogm.icns \
215 extras/MacOSX/Resources/pls.icns \
216 extras/MacOSX/Resources/srt.icns \
217 extras/MacOSX/Resources/sub.icns \
218 extras/MacOSX/Resources/vlc.icns \
219 extras/MacOSX/Resources/vob.icns \
220 extras/MacOSX/Resources/wma.icns \
221 extras/MacOSX/Resources/wmv.icns \
222 extras/MacOSX/Resources/pause.png \
223 extras/MacOSX/Resources/pause_blue.png \
224 extras/MacOSX/Resources/play.png \
225 extras/MacOSX/Resources/play_blue.png \
226 extras/MacOSX/Resources/stop.png \
227 extras/MacOSX/Resources/stop_blue.png \
228 extras/MacOSX/Resources/display.png \
229 extras/MacOSX/Resources/display_slider.png \
230 extras/MacOSX/Resources/display_track.png \
231 extras/MacOSX/Resources/equalizerdrawer_active.png \
232 extras/MacOSX/Resources/equalizerdrawer_blue.png \
233 extras/MacOSX/Resources/fullscreen_active.png \
234 extras/MacOSX/Resources/fullscreen_blue.png \
235 extras/MacOSX/Resources/next_active.png \
236 extras/MacOSX/Resources/next_blue.png \
237 extras/MacOSX/Resources/playlistdrawer_active.png \
238 extras/MacOSX/Resources/playlistdrawer_blue.png \
239 extras/MacOSX/Resources/previous_active.png \
240 extras/MacOSX/Resources/previous_blue.png \
241 extras/MacOSX/Resources/skip_forward_active.png \
242 extras/MacOSX/Resources/skip_forward_blue.png \
243 extras/MacOSX/Resources/skip_previous_active.png \
244 extras/MacOSX/Resources/skip_previous_blue.png \
245 extras/MacOSX/Resources/volume_high.png \
246 extras/MacOSX/Resources/volume_low.png \
247 extras/MacOSX/Resources/volumeslider_blue.png \
248 extras/MacOSX/Resources/volumeslider_normal.png \
249 extras/MacOSX/Resources/volumetrack.png \
250 extras/MacOSX/Resources/about_bg.png \
251 extras/MacOSX/Resources/vlc.scriptSuite \
252 extras/MacOSX/Resources/vlc.scriptTerminology \
253 extras/MacOSX/Resources/README \
254 extras/MacOSX/vlc.pbproj/project.pbxproj \
255 extras/MacOSX/macosx-dmg \
256 extras/MacOSX/Delete_Preferences.app/Contents/Info.plist \
257 extras/MacOSX/Delete_Preferences.app/Contents/PkgInfo \
258 extras/MacOSX/Delete_Preferences.app/Contents/MacOS/applet \
259 extras/MacOSX/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
260 extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.icns \
261 extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.rsrc \
262 extras/MacOSX/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
267 ###############################################################################
268 # MS Visual Studio and eMbedded Visual Studio projects
269 ###############################################################################
274 msvc/plugins.dsp.in \
277 msvc/modules_builtin_msvc.h \
284 evc/modules_builtin_evc.h \
288 cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
289 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
291 ###############################################################################
293 ###############################################################################
295 bin_SCRIPTS = vlc-config
296 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
297 $(SHELL) ./config.status --file=vlc-config
298 chmod 0755 vlc-config
300 vlc-config.in: vlc-config.in.in
301 ./config.status --recheck
303 MOSTLYCLEANFILES = $(DATA_noinst_libvlc)
304 CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
305 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
308 lib_LIBRARIES = lib/libvlc.a
310 lib_LIBRARIES = lib/libvlc.a
312 lib_LIBRARIES += lib/libvlc_pic.a
317 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
318 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
319 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
320 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
322 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
323 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
324 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
325 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
328 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
331 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
334 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
337 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
340 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
343 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
346 # Build libvlc as a shared library
348 DATA_noinst_libvlc = libvlc$(LIBEXT)
350 OBJECTS_libvlc_so = $(lib_libvlc_a_OBJECTS)
352 OBJECTS_libvlc_so = $(lib_libvlc_pic_a_OBJECTS)
356 libvlc$(LIBEXT): $(OBJECTS_libvlc_so)
357 @ldfl="`$(VLC_CONFIG) --libs plugin vlc $(pic) builtin`" ; \
358 case `$(VLC_CONFIG) --linkage vlc` in \
359 c++) ld="$(CXXLINK)" ;; \
360 objc) ld="$(OBJCLINK)" ;; \
361 c|*) ld="$(LINK)" ;; \
363 echo $$ld $(OBJECTS_libvlc_so) $$ldfl ; \
364 $$ld $(OBJECTS_libvlc_so) $$ldfl
367 $(SOURCES_libvlc_beos) \
368 $(SOURCES_libvlc_darwin) \
369 $(SOURCES_libvlc_win32) \
370 $(SOURCES_libvlc_dirent) \
371 $(SOURCES_libvlc_getopt) \
374 SOURCES_libvlc_beos = \
375 src/misc/beos_specific.cpp \
378 SOURCES_libvlc_darwin = \
379 src/misc/darwin_specific.m \
382 SOURCES_libvlc_win32 = \
383 src/misc/win32_specific.c \
386 SOURCES_libvlc_dirent = \
387 src/extras/dirent.c \
390 SOURCES_libvlc_getopt = \
391 src/extras/getopt.c \
392 src/extras/getopt.h \
393 src/extras/getopt1.c \
396 SOURCES_libvlc_common = \
399 src/interface/interface.c \
400 src/interface/intf_eject.c \
401 src/interface/interaction.c \
402 src/playlist/playlist.c \
403 src/playlist/sort.c \
404 src/playlist/loadsave.c \
405 src/playlist/view.c \
406 src/playlist/item.c \
407 src/playlist/item-ext.c \
408 src/playlist/services_discovery.c \
411 src/input/control.c \
412 src/input/decoder.c \
416 src/input/input_internal.h \
418 src/input/mem_stream.c \
419 src/input/subtitles.c \
421 src/video_output/video_output.c \
422 src/video_output/vout_pictures.c \
423 src/video_output/vout_pictures.h \
424 src/video_output/video_text.c \
425 src/video_output/video_widgets.c \
426 src/video_output/vout_subpictures.c \
427 src/video_output/vout_synchro.c \
428 src/video_output/vout_intf.c \
429 src/audio_output/common.c \
430 src/audio_output/dec.c \
431 src/audio_output/filters.c \
432 src/audio_output/input.c \
433 src/audio_output/mixer.c \
434 src/audio_output/output.c \
435 src/audio_output/intf.c \
436 src/stream_output/stream_output.c \
437 src/stream_output/announce.c \
438 src/stream_output/sap.c \
440 src/osd/osd_parser.c \
442 src/osd/osd_widgets.c \
444 src/network/getaddrinfo.c \
448 src/network/httpd.c \
458 src/misc/configuration.c \
460 src/misc/iso_lang.c \
461 src/misc/iso-639_def.h \
462 src/misc/messages.c \
464 src/misc/variables.c \
472 src/control/audio_video.c \
475 # These should be distributed, but not compiled
476 EXTRA_DIST += src/control/init.c src/control/plugin.c
479 $(SOURCES_libvlc_common) \
480 $(OPT_SOURCES_libvlc_beos) \
481 $(OPT_SOURCES_libvlc_darwin) \
482 $(OPT_SOURCES_libvlc_win32) \
483 $(OPT_SOURCES_libvlc_dirent) \
484 $(OPT_SOURCES_libvlc_getopt) \
487 ###############################################################################
489 ###############################################################################
493 vlc_SOURCES = src/vlc.c
495 # Work around a bug in the arm-wince-pe linker
497 vlc_WORKAROUNDLDFLAGS = $(LIB_libvlc)
501 ### libvlc.so cannot be created into lib/
502 LIB_libvlc = libvlc$(LIBEXT)
504 #-Wl,-rpath $(libdir)
506 LIB_libvlc = lib/libvlc.a
507 LDFLAGS_libvlc = `$(VLC_CONFIG) --libs vlc builtin`
510 vlc_LDFLAGS = $(LDFLAGS_libvlc) $(vlc_WORKAROUNDLDFLAGS)
511 vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
512 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
514 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
515 # old automake-1.5 bug (automake/279).
516 DEPENDENCIES_vlc = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
518 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
520 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
521 c++) cmd="$(CXXLINK)" ;; \
522 objc) cmd="$(OBJCLINK)" ;; \
523 c|*) cmd="$(LINK)" ;; \
525 cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS)" ; \
530 DATA_noinst_beos = vlc-bundle
532 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
533 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
534 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
535 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
536 if test -n "$$i" ; then \
537 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
538 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
541 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
542 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
543 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
544 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
547 for i in $(ALL_LINGUAS); do \
548 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
549 cp "$(top_builddir)/po/$$i.gmo" \
550 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
552 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
555 # Install the symlinks and shared libvlc
557 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
558 rm -f "$(DESTDIR)$(bindir)/$$i" && \
559 ln -sf vlc "$(DESTDIR)$(bindir)/$$i" ; \
561 test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)"
563 # the opposite of install-{data,exec}-local
565 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
566 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
568 test -z "$(DATA_noinst_libvlc)" || rm -f "$(DESTDIR)$(libdir)/$(DATA_noinst_libvlc)"
571 # Create the MacOS X app
572 vlc_app_DATA = VLC.app
573 vlc_appdir = $(bindir)
574 # VLC-release.app is the old VLC.app target
576 @if test -e "$(top_builddir)/tmp"; then \
577 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
580 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
582 rm -Rf $(top_builddir)/VLC-release.app
583 cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
584 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
585 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
587 mkdir -p $(top_builddir)/tmp/modules/audio_output
588 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
627 cp "$(srcdir)/modules/gui/macosx/$$i" \
628 $(top_builddir)/tmp/modules/gui/macosx; \
630 case $(target_triplet) in \
631 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
633 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
634 $(top_builddir)/VLC-release.app;; \
635 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
637 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
638 $(top_builddir)/VLC-release.app;; \
639 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
641 cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
642 $(top_builddir)/VLC-release.app;; \
644 rm -Rf $(top_builddir)/tmp
645 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
646 $(INSTALL) $(top_builddir)/vlc \
647 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
648 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
649 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
650 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
652 then $(INSTALL) "$$i$(LIBEXT)" \
653 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
655 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
656 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
657 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
658 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
661 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
662 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
663 for i in $(srcdir)/share/http/* ; do \
664 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
666 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
667 for i in $(ALL_LINGUAS); do \
668 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
669 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
670 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
671 ln -sf ../English.lproj/InfoPlist.strings \
672 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
673 ln -sf ../English.lproj/MainMenu.nib \
674 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
675 ln -sf ../English.lproj/vlc.scriptTerminology \
676 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
678 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
681 @if test -e "$(top_builddir)/tmp"; then \
682 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
685 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
687 rm -Rf $(top_builddir)/VLC.app
688 cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
689 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
690 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
692 mkdir -p $(top_builddir)/tmp/modules/audio_output
693 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
732 cp "$(srcdir)/modules/gui/macosx/$$i" \
733 $(top_builddir)/tmp/modules/gui/macosx; \
735 case $(target_triplet) in \
736 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
738 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
739 $(top_builddir)/VLC.app;; \
740 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
742 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
743 $(top_builddir)/VLC.app;; \
744 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
746 cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
747 $(top_builddir)/VLC.app;; \
749 rm -Rf $(top_builddir)/tmp
750 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
751 $(INSTALL) $(top_builddir)/vlc \
752 $(top_builddir)/VLC.app/Contents/MacOS/VLC
753 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
754 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
755 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
757 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
758 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
760 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
761 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
762 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
763 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
766 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
767 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
768 for i in $(ALL_LINGUAS); do \
769 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
770 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
771 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
772 ln -sf ../English.lproj/InfoPlist.strings \
773 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
774 ln -sf ../English.lproj/MainMenu.nib \
775 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
777 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
781 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
782 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
783 noinst_share_vlc_win32_rcdir = $(libdir)
784 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
785 $(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 $@
789 ###############################################################################
790 # Building specific source packages
791 ###############################################################################
794 $(remove_distdir_woody)
795 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
796 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
797 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
798 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
799 $(remove_distdir_woody)
801 remove_distdir_woody = \
802 { test ! -d $(PACKAGE)-woody-$(VERSION) \
803 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
804 -exec chmod u+w {} ';' \
805 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
807 ###############################################################################
808 # Building architecture-specific binary packages
809 ###############################################################################
811 # XXX: this rule is probably only useful to you if you have exactly
812 # the same setup as me. Contact sam@zoy.org if you need to use it.
815 # Check that tmp isn't in the way
816 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
817 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
820 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
823 # Copy relevant files
824 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
825 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
826 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
827 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
829 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
830 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
831 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
833 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
834 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
835 if test -n "$$i" ; then \
836 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
837 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
840 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
841 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
843 mkdir $(top_builddir)/vlc-${VERSION}/locale
844 for i in $(ALL_LINGUAS); do \
845 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
846 cp "$(srcdir)/po/$${i}.gmo" \
847 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
851 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
852 for i in $(srcdir)/share/skins2/fonts/*.*; do \
853 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
855 for i in $(srcdir)/share/skins2/*.*; do \
856 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
859 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
860 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-${VERSION}/osdmenu"
861 for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume;do \
862 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir"; \
863 for file in $(srcdir)/share/osdmenu/$${dir}/*.*;do \
864 cp $$file "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir" || true; \
867 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg;
868 sed -i 's%share/osdmenu%osdmenu%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
869 sed -i 's%/%\\%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
871 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
872 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
873 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
874 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
875 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
876 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
877 cp $(srcdir)/share/http/*.js $(top_builddir)/vlc-${VERSION}/http/ ;
878 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.js ;
879 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
880 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
881 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
882 unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
884 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
886 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
888 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
889 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
890 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
893 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
895 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
896 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
897 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
899 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
900 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
902 # Rebase all those DLLs to speed up loading (need cygwin rebase)
903 if [ -x rebase ]; then \
904 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
907 package-win32-base-exe:
909 if [ -x makensis ]; then \
911 elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
912 MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis"; \
913 elif [ -x wine ]; then \
914 MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"; \
916 echo 'Error: cannot locate makensis tool'; exit 1; \
918 eval "$$MAKENSIS /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi"
920 package-win32-base-exe-cygwin: package-win32-base-exe
923 package-win32-base-exe-linux:
925 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
927 package-win32-base-zip:
929 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
931 package-win32-exe: package-win32-base package-win32-base-exe
933 rm -Rf $(top_builddir)/vlc-${VERSION}
935 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
937 rm -Rf $(top_builddir)/vlc-${VERSION}
939 package-win32-zip: package-win32-base package-win32-base-zip
941 rm -Rf $(top_builddir)/vlc-${VERSION}
943 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
945 rm -Rf $(top_builddir)/vlc-${VERSION}
948 # Check that tmp isn't in the way
949 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
950 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
953 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
956 # Copy relevant files
957 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
958 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
959 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
961 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
962 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
963 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
965 mkdir $(top_builddir)/vlc-${VERSION}/locale
966 for i in $(ALL_LINGUAS); do \
967 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
968 cp "$(srcdir)/po/$${i}.gmo" \
969 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
974 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
975 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
976 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
977 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
978 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
979 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
980 cp $(srcdir)/share/http/*.js $(top_builddir)/vlc-${VERSION}/http/ ;
981 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.js ;
982 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
983 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
984 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
985 unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
987 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
990 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
991 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
992 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
993 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
997 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
998 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
999 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
1000 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
1002 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
1003 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
1005 # Rebase all those DLLs to speed up loading (need cygwin rebase)
1006 if [ -x rebase ]; then \
1007 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
1010 package-wince-base-zip:
1012 zip -r vlc-${VERSION}-wince.zip vlc-${VERSION}
1014 package-wince: package-wince-base package-wince-base-zip
1016 rm -Rf $(top_builddir)/vlc-${VERSION}
1020 # Check that tmp isn't in the way
1021 @if test -e $(srcdir)/tmp; then \
1022 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
1025 echo "OK." ; mkdir $(srcdir)/tmp ; \
1028 # Copy relevant files
1029 mkdir -p $(srcdir)/tmp/vlc ;
1030 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
1031 THANKS NEWS tmp/vlc/ ;
1033 # Create debug package
1034 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
1035 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
1036 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
1037 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
1038 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
1039 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
1041 # Create normal package
1042 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
1043 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1044 --strip-debug --strip-unneeded "{}" \; ;
1045 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
1046 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
1047 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
1048 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
1049 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
1052 rm -Rf $(srcdir)/tmp ;
1055 # Check that tmp isn't in the way
1056 @if test -e "$(top_builddir)/tmp"; then \
1057 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
1060 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
1063 # Copy relevant files
1064 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
1065 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/
1068 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
1071 rm -Rf $(top_builddir)/tmp
1073 package-translations:
1074 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
1075 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
1078 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
1081 for i in $(ALL_LINGUAS); do \
1082 cp "$(srcdir)/po/$${i}.po" \
1083 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
1086 cp "$(srcdir)/doc/translations.txt" \
1087 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
1089 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1090 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1091 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1092 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1093 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1094 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1095 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1096 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1098 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1099 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1101 ###############################################################################
1102 # PO translation files update
1103 ###############################################################################
1107 rm -f $(top_srcdir)/po/POTFILES.in
1109 cd $(top_srcdir) ; \
1110 echo "# automatically created by make update-po" ; \
1112 echo "# main sources" ; \
1113 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
1114 | grep -v '\(vlc_symbols\|misc/modules_\|src/misc/version.c\)' \
1117 echo "# modules" ; \
1118 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
1119 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
1121 } > $(top_srcdir)/po/POTFILES.in
1122 rm -f $(top_srcdir)/po/vlc.pot
1123 cd po && $(MAKE) POTFILES vlc.pot update-po
1125 #cd po && $(MAKE) update-po
1127 ###############################################################################
1129 ###############################################################################
1130 stamp-builtin: FORCE
1131 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
1132 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
1137 @if test ! -f $@; then printf "" > $@; fi
1139 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl
1140 ( cd $(srcdir) && cat $(HEADERS_include) ) | \
1141 top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
1144 ###############################################################################
1146 ###############################################################################