1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
7 # SUBDIRS stores the directories where a "make" is required when building
8 # something. DIST_SUBDIRS stores the directories where nothing is built but
9 # which have makefiles with distribution information.
10 # - intl should come before modules and . because all the code uses gettext
11 # - modules should come before . because vlc needs the builtins
12 # - . should come before mozilla because the plugin needs libvlc_pic.a
13 # - po should come before . because VLC.app needs the pofiles
14 # - loader should come before modules because some plugins need it
15 SUBDIRS = intl loader modules po . mozilla activex share m4 doc
16 DIST_SUBDIRS = $(SUBDIRS) debian ipkg lib
32 src/misc/modules_builtin.h.in \
35 BUILT_SOURCES_distclean = vlc-config
36 BUILT_SOURCES_clean = \
38 src/misc/modules_builtin.h \
42 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
46 # Tell aclocal to use -I m4. Wonder if it really works.
47 ACLOCAL_AMFLAGS = -I m4
49 # XXX: these flags could be set in configure.ac, but we set them here
50 # because old versions of automake don't support them in configure.ac.
51 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
53 ###############################################################################
55 ###############################################################################
57 pkgincludedir = $(includedir)/vlc
59 dist_pkginclude_HEADERS = \
64 include/vlc/decoder.h \
67 include/vlc/control.h \
70 noinst_HEADERS = $(HEADERS_include)
71 noinst_DATA = $(DATA_noinst_beos) $(DATA_noinst_libvlc)
74 include/aout_internal.h \
75 include/audio_output.h \
76 include/beos_specific.h \
79 include/configuration.h \
80 include/darwin_specific.h \
81 include/intf_eject.h \
86 include/modules_inner.h \
89 include/os_specific.h \
91 include/stream_output.h \
93 include/video_output.h \
94 include/vlc_access.h \
98 include/vlc_block_helper.h \
100 include/vlc_common.h \
101 include/vlc_config.h \
103 include/vlc_demux.h \
104 include/vlc_error.h \
106 include/vlc_es_out.h \
107 include/vlc_filter.h \
108 include/vlc_config_cat.h \
109 include/vlc_httpd.h \
112 include/vlc_image.h \
113 include/vlc_input.h \
114 include/vlc_interface.h \
116 include/vlc_messages.h \
118 include/vlc_objects.h \
120 include/vlc_playlist.h \
122 include/vlc_stream.h \
123 include/vlc_symbols.h \
124 include/vlc_threads_funcs.h \
125 include/vlc_threads.h \
126 include/vlc_video.h \
130 include/vout_synchro.h \
131 include/win32_specific.h \
134 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
135 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
136 touch src/misc/modules_builtin.h
138 src/misc/modules.c: src/misc/modules_builtin.h
140 src/misc/version.c: FORCE
141 srcdir=$(srcdir) $(srcdir)/toolbox --update-version
143 # These dependencies are mandatory
144 $(SOURCES_libvlc): $(LIB_intl)
146 ###############################################################################
147 # Optional libintl - FIXME, bad dependencies
148 ###############################################################################
150 intl/libintl.a: FORCE
151 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
154 LIB_intl = intl/libintl.a
157 ###############################################################################
159 ###############################################################################
162 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
163 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
164 extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
165 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
166 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
167 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
168 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
169 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
170 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
171 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
172 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
173 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
174 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
175 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
176 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
177 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
178 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
179 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
180 extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib \
181 extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib \
182 extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
183 extras/MacOSX/Resources/English.lproj/Update.nib/classes.nib \
184 extras/MacOSX/Resources/English.lproj/Update.nib/info.nib \
185 extras/MacOSX/Resources/English.lproj/Update.nib/keyedobjects.nib \
186 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
187 extras/MacOSX/Resources/a52.icns \
188 extras/MacOSX/Resources/aac.icns \
189 extras/MacOSX/Resources/asf.icns \
190 extras/MacOSX/Resources/asx.icns \
191 extras/MacOSX/Resources/avi.icns \
192 extras/MacOSX/Resources/bin.icns \
193 extras/MacOSX/Resources/cue.icns \
194 extras/MacOSX/Resources/dat.icns \
195 extras/MacOSX/Resources/divx.icns \
196 extras/MacOSX/Resources/dv.icns \
197 extras/MacOSX/Resources/generic.icns \
198 extras/MacOSX/Resources/m3u.icns \
199 extras/MacOSX/Resources/mov.icns \
200 extras/MacOSX/Resources/mp3.icns \
201 extras/MacOSX/Resources/mp4.icns \
202 extras/MacOSX/Resources/mpeg.icns \
203 extras/MacOSX/Resources/mpeg1.icns \
204 extras/MacOSX/Resources/mpeg2.icns \
205 extras/MacOSX/Resources/mpeg4.icns \
206 extras/MacOSX/Resources/mpg.icns \
207 extras/MacOSX/Resources/ogg.icns \
208 extras/MacOSX/Resources/ogm.icns \
209 extras/MacOSX/Resources/pls.icns \
210 extras/MacOSX/Resources/srt.icns \
211 extras/MacOSX/Resources/sub.icns \
212 extras/MacOSX/Resources/vlc.icns \
213 extras/MacOSX/Resources/vob.icns \
214 extras/MacOSX/Resources/wma.icns \
215 extras/MacOSX/Resources/wmv.icns \
216 extras/MacOSX/Resources/pause.png \
217 extras/MacOSX/Resources/pause_blue.png \
218 extras/MacOSX/Resources/play.png \
219 extras/MacOSX/Resources/play_blue.png \
220 extras/MacOSX/Resources/stop.png \
221 extras/MacOSX/Resources/stop_blue.png \
222 extras/MacOSX/Resources/display.png \
223 extras/MacOSX/Resources/display_slider.png \
224 extras/MacOSX/Resources/display_track.png \
225 extras/MacOSX/Resources/equalizerdrawer_active.png \
226 extras/MacOSX/Resources/equalizerdrawer_blue.png \
227 extras/MacOSX/Resources/fullscreen_active.png \
228 extras/MacOSX/Resources/fullscreen_blue.png \
229 extras/MacOSX/Resources/next_active.png \
230 extras/MacOSX/Resources/next_blue.png \
231 extras/MacOSX/Resources/playlistdrawer_active.png \
232 extras/MacOSX/Resources/playlistdrawer_blue.png \
233 extras/MacOSX/Resources/previous_active.png \
234 extras/MacOSX/Resources/previous_blue.png \
235 extras/MacOSX/Resources/skip_forward_active.png \
236 extras/MacOSX/Resources/skip_forward_blue.png \
237 extras/MacOSX/Resources/skip_previous_active.png \
238 extras/MacOSX/Resources/skip_previous_blue.png \
239 extras/MacOSX/Resources/volume_high.png \
240 extras/MacOSX/Resources/volume_low.png \
241 extras/MacOSX/Resources/volumeslider_blue.png \
242 extras/MacOSX/Resources/volumeslider_normal.png \
243 extras/MacOSX/Resources/volumetrack.png \
244 extras/MacOSX/Resources/about_bg.png \
245 extras/MacOSX/Resources/vlc.scriptSuite \
246 extras/MacOSX/Resources/vlc.scriptTerminology \
247 extras/MacOSX/Resources/README \
248 extras/MacOSX/vlc.pbproj/project.pbxproj \
249 extras/MacOSX/macosx-dmg \
255 ###############################################################################
256 # MS Visual Studio and eMbedded Visual Studio projects
257 ###############################################################################
262 msvc/plugins.dsp.in \
265 msvc/modules_builtin_msvc.h \
272 evc/modules_builtin_evc.h \
276 cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
277 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
279 ###############################################################################
281 ###############################################################################
283 bin_SCRIPTS = vlc-config
284 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
285 $(SHELL) ./config.status --file=vlc-config
286 chmod 0755 vlc-config
288 vlc-config.in: vlc-config.in.in
289 ./config.status --recheck
291 MOSTLYCLEANFILES = $(DATA_noinst_libvlc)
292 CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
293 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in
296 lib_LIBRARIES = lib/libvlc.a
299 lib_LIBRARIES = lib/libvlc_pic.a
301 lib_LIBRARIES = lib/libvlc.a
303 lib_LIBRARIES += lib/libvlc_pic.a
308 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
309 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
310 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
311 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
313 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
314 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
315 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
316 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
319 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
322 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
325 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
328 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
331 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
334 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
337 # Build libvlc as a shared library
339 DATA_noinst_libvlc = libvlc$(LIBEXT)
341 OBJECTS_libvlc_so = $(lib_libvlc_a_OBJECTS)
343 OBJECTS_libvlc_so = $(lib_libvlc_pic_a_OBJECTS)
347 libvlc$(LIBEXT): $(OBJECTS_libvlc_so)
348 @ldfl="`$(VLC_CONFIG) --libs plugin vlc $(pic) builtin`" ; \
349 case `$(VLC_CONFIG) --linkage vlc` in \
350 c++) ld="$(CXXLINK)" ;; \
351 objc) ld="$(OBJCLINK)" ;; \
352 c|*) ld="$(LINK)" ;; \
354 echo $$ld $(OBJECTS_libvlc_so) $$ldfl ; \
355 $$ld $(OBJECTS_libvlc_so) $$ldfl
358 $(SOURCES_libvlc_beos) \
359 $(SOURCES_libvlc_darwin) \
360 $(SOURCES_libvlc_win32) \
361 $(SOURCES_libvlc_dirent) \
362 $(SOURCES_libvlc_getopt) \
365 SOURCES_libvlc_beos = \
366 src/misc/beos_specific.cpp \
369 SOURCES_libvlc_darwin = \
370 src/misc/darwin_specific.m \
373 SOURCES_libvlc_win32 = \
374 src/misc/win32_specific.c \
377 SOURCES_libvlc_dirent = \
378 src/extras/dirent.c \
381 SOURCES_libvlc_getopt = \
382 src/extras/getopt.c \
383 src/extras/getopt.h \
384 src/extras/getopt1.c \
387 SOURCES_libvlc_common = \
390 src/interface/interface.c \
391 src/interface/intf_eject.c \
392 src/playlist/playlist.c \
393 src/playlist/sort.c \
394 src/playlist/loadsave.c \
395 src/playlist/view.c \
396 src/playlist/item.c \
397 src/playlist/item-ext.c \
398 src/playlist/services_discovery.c \
401 src/input/control.c \
402 src/input/decoder.c \
406 src/input/input_internal.h \
408 src/input/mem_stream.c \
409 src/input/subtitles.c \
411 src/video_output/video_output.c \
412 src/video_output/vout_pictures.c \
413 src/video_output/vout_pictures.h \
414 src/video_output/video_text.c \
415 src/video_output/video_widgets.c \
416 src/video_output/vout_subpictures.c \
417 src/video_output/vout_synchro.c \
418 src/video_output/vout_intf.c \
419 src/audio_output/common.c \
420 src/audio_output/dec.c \
421 src/audio_output/filters.c \
422 src/audio_output/input.c \
423 src/audio_output/mixer.c \
424 src/audio_output/output.c \
425 src/audio_output/intf.c \
426 src/stream_output/stream_output.c \
427 src/stream_output/announce.c \
428 src/stream_output/sap.c \
429 src/stream_output/acl.c \
431 src/osd/osd_parser.c \
433 src/osd/osd_widgets.c \
444 src/misc/configuration.c \
446 src/misc/iso_lang.c \
447 src/misc/iso-639_def.h \
448 src/misc/messages.c \
450 src/misc/variables.c \
453 src/misc/getaddrinfo.c \
460 src/control/audio_video.c \
464 $(SOURCES_libvlc_common) \
465 $(OPT_SOURCES_libvlc_beos) \
466 $(OPT_SOURCES_libvlc_darwin) \
467 $(OPT_SOURCES_libvlc_win32) \
468 $(OPT_SOURCES_libvlc_dirent) \
469 $(OPT_SOURCES_libvlc_getopt) \
472 ###############################################################################
474 ###############################################################################
478 vlc_SOURCES = src/vlc.c
480 # Work around a bug in the arm-wince-pe linker
482 vlc_WORKAROUNDLDFLAGS = $(LIB_libvlc)
486 ### libvlc.so cannot be created into lib/
487 LIB_libvlc = libvlc$(LIBEXT)
489 #-Wl,-rpath $(libdir)
491 LIB_libvlc = lib/libvlc.a
492 LDFLAGS_libvlc = `$(VLC_CONFIG) --libs vlc builtin`
495 vlc_LDFLAGS = $(LDFLAGS_libvlc) $(vlc_WORKAROUNDLDFLAGS)
496 vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
497 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
499 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
500 # old automake-1.5 bug (automake/279).
501 DEPENDENCIES_vlc = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl)
503 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
505 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
506 c++) cmd="$(CXXLINK)" ;; \
507 objc) cmd="$(OBJCLINK)" ;; \
508 c|*) cmd="$(LINK)" ;; \
510 cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS)" ; \
515 DATA_noinst_beos = vlc-bundle
517 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
518 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
519 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
520 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
521 if test -n "$$i" ; then \
522 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
523 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
526 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
527 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
528 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
529 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
532 for i in $(ALL_LINGUAS); do \
533 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
534 cp "$(top_builddir)/po/$$i.gmo" \
535 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
537 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
540 # Install the symlinks and shared libvlc
542 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
543 rm -f "$(DESTDIR)$(bindir)/$$i" && \
544 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
546 test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)"
548 # the opposite of install-{data,exec}-local
550 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
551 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
553 test -z "$(DATA_noinst_libvlc)" || rm -f "$(DESTDIR)$(libdir)/$(DATA_noinst_libvlc)"
556 # Create the MacOS X app
557 vlc_app_DATA = VLC.app
558 vlc_appdir = $(bindir)
559 # VLC-release.app is the old VLC.app target
561 @if test -e "$(top_builddir)/tmp"; then \
562 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
565 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
567 rm -Rf $(top_builddir)/VLC-release.app
568 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
569 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
570 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
572 mkdir -p $(top_builddir)/tmp/modules/audio_output
573 cp $(srcdir)/modules/audio_output/coreaudio.c \
574 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
575 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
614 cp "$(srcdir)/modules/gui/macosx/$$i" \
615 $(top_builddir)/tmp/modules/gui/macosx; \
617 case $(target_triplet) in \
618 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
620 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
621 $(top_builddir)/VLC-release.app;; \
622 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
624 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
625 $(top_builddir)/VLC-release.app;; \
626 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
628 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
629 $(top_builddir)/VLC-release.app;; \
631 rm -Rf $(top_builddir)/tmp
632 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
633 $(INSTALL) $(top_builddir)/vlc \
634 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
635 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
636 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
637 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
639 then $(INSTALL) "$$i$(LIBEXT)" \
640 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
642 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
643 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
644 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
645 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
648 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
649 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
650 for i in $(srcdir)/share/http/* ; do \
651 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
653 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
654 for i in $(srcdir)/share/http/vlm/* ; do \
655 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
657 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
658 for i in $(srcdir)/share/http/admin/* ; do \
659 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
661 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
662 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
663 for i in $(ALL_LINGUAS); do \
664 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
665 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
666 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
667 ln -sf ../English.lproj/InfoPlist.strings \
668 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
669 ln -sf ../English.lproj/MainMenu.nib \
670 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
671 ln -sf ../English.lproj/vlc.scriptTerminology \
672 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
674 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
677 @if test -e "$(top_builddir)/tmp"; then \
678 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
681 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
683 rm -Rf $(top_builddir)/VLC.app
684 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
685 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
686 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
688 mkdir -p $(top_builddir)/tmp/modules/audio_output
689 cp $(srcdir)/modules/audio_output/coreaudio.c \
690 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
691 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
730 cp "$(srcdir)/modules/gui/macosx/$$i" \
731 $(top_builddir)/tmp/modules/gui/macosx; \
733 case $(target_triplet) in \
734 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
736 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
737 $(top_builddir)/VLC.app;; \
738 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
740 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
741 $(top_builddir)/VLC.app;; \
742 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
744 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
745 $(top_builddir)/VLC.app;; \
747 rm -Rf $(top_builddir)/tmp
748 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
749 $(INSTALL) $(top_builddir)/vlc \
750 $(top_builddir)/VLC.app/Contents/MacOS/VLC
751 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
752 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
753 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
755 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
756 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
758 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
759 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
760 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
761 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
764 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
765 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
766 for i in $(ALL_LINGUAS); do \
767 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
768 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
769 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
770 ln -sf ../English.lproj/InfoPlist.strings \
771 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
772 ln -sf ../English.lproj/MainMenu.nib \
773 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
775 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
779 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
780 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
781 noinst_share_vlc_win32_rcdir = $(libdir)
782 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
783 $(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 $@
787 ###############################################################################
788 # Building specific source packages
789 ###############################################################################
792 $(remove_distdir_woody)
793 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
794 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
795 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
796 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
797 $(remove_distdir_woody)
799 remove_distdir_woody = \
800 { test ! -d $(PACKAGE)-woody-$(VERSION) \
801 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
802 -exec chmod u+w {} ';' \
803 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
805 ###############################################################################
806 # Building architecture-specific binary packages
807 ###############################################################################
809 # XXX: this rule is probably only useful to you if you have exactly
810 # the same setup as me. Contact sam@zoy.org if you need to use it.
813 # Check that tmp isn't in the way
814 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
815 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
818 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
821 # Copy relevant files
822 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
823 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
824 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
825 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
827 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
828 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
829 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
831 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
832 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
833 if test -n "$$i" ; then \
834 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
835 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
838 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
839 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
841 mkdir $(top_builddir)/vlc-${VERSION}/locale
842 for i in $(ALL_LINGUAS); do \
843 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
844 cp "$(srcdir)/po/$${i}.gmo" \
845 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
849 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
850 for i in $(srcdir)/share/skins2/fonts/*.*; do \
851 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
853 for i in $(srcdir)/share/skins2/*.*; do \
854 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
857 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
858 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd"
859 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected"
860 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect"
861 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection"
862 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume"
863 for i in $(srcdir)/share/osdmenu/*.*; do \
864 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/ || true ; \
865 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/`basename $$i` ; \
867 for i in $(srcdir)/share/osdmenu/dvd/*.*; do \
868 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd || true ; \
870 for i in $(srcdir)/share/osdmenu/dvd/unselect/*.*; do \
871 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect || true ; \
873 for i in $(srcdir)/share/osdmenu/dvd/selected/*.*; do \
874 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected/ || true ; \
876 for i in $(srcdir)/share/osdmenu/dvd/selection/*.*; do \
877 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection/ || true ; \
879 for i in $(srcdir)/share/osdmenu/dvd/volume/*.*; do \
880 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume/ || true ; \
883 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default"
884 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selected"
885 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selection"
886 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/volume"
887 for i in $(srcdir)/share/osdmenu/default/*.*; do \
888 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default || true ; \
890 for i in $(srcdir)/share/osdmenu/default/selected/*.*; do \
891 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selected/ || true ; \
893 for i in $(srcdir)/share/osdmenu/default/selection/*.*; do \
894 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selection/ || true ; \
896 for i in $(srcdir)/share/osdmenu/default/volume/*.*; do \
897 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/volume/ || true ; \
900 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
901 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
902 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
903 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
904 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
905 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
906 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
907 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
908 cp $(srcdir)/share/http/admin/*.html \
909 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
910 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
911 cp $(srcdir)/share/http/admin/dboxfiles.html \
912 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
913 cp $(srcdir)/share/http/admin/.access \
914 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
915 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
916 cp $(srcdir)/share/http/vlm/*.html \
917 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
918 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
920 cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
922 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
924 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
925 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
926 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
929 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
931 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
932 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
933 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
935 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
936 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
938 # Rebase all those DLLs to speed up loading (need cygwin rebase)
939 if [ -x rebase ]; then \
940 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
943 package-win32-base-exe:
945 wine C:/Program\ Files/NSIS/makensis.exe \
946 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
948 package-win32-base-exe-cygwin:
950 C:/Program\ Files/NSIS/makensis.exe \
951 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
953 package-win32-base-exe-linux:
955 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
957 package-win32-base-zip:
959 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
961 package-win32-exe: package-win32-base package-win32-base-exe
963 rm -Rf $(top_builddir)/vlc-${VERSION}
965 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
967 rm -Rf $(top_builddir)/vlc-${VERSION}
969 package-win32-zip: package-win32-base package-win32-base-zip
971 rm -Rf $(top_builddir)/vlc-${VERSION}
973 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
975 rm -Rf $(top_builddir)/vlc-${VERSION}
978 # Check that tmp isn't in the way
979 @if test -e $(srcdir)/tmp; then \
980 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
983 echo "OK." ; mkdir $(srcdir)/tmp ; \
986 # Copy relevant files
987 mkdir -p $(srcdir)/tmp/vlc ;
988 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
989 THANKS NEWS tmp/vlc/ ;
991 # Create debug package
992 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
993 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
994 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
995 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
996 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
997 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
999 # Create normal package
1000 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
1001 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1002 --strip-debug --strip-unneeded "{}" \; ;
1003 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
1004 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
1005 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
1006 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
1007 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
1010 rm -Rf $(srcdir)/tmp ;
1013 # Check that tmp isn't in the way
1014 @if test -e "$(top_builddir)/tmp"; then \
1015 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
1018 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
1021 # Copy relevant files
1022 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
1023 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
1026 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
1029 rm -Rf $(top_builddir)/tmp
1031 package-translations:
1032 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
1033 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
1036 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
1039 for i in $(ALL_LINGUAS); do \
1040 cp "$(srcdir)/po/$${i}.po" \
1041 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
1044 cp "$(srcdir)/doc/translations.txt" \
1045 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
1047 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1048 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1049 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1050 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1051 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1052 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1053 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1054 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1056 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1057 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1059 ###############################################################################
1060 # PO translation files update
1061 ###############################################################################
1065 rm -f $(top_srcdir)/po/POTFILES.in
1067 cd $(top_srcdir) ; \
1068 echo "# automatically created by make update-po" ; \
1070 echo "# main sources" ; \
1071 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
1072 | grep -v '\(vlc_symbols\|misc/modules_\)' \
1075 echo "# modules" ; \
1076 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
1077 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
1079 } > $(top_srcdir)/po/POTFILES.in
1080 rm -f $(top_srcdir)/po/vlc.pot
1081 cd po && $(MAKE) POTFILES vlc.pot update-po
1083 #cd po && $(MAKE) update-po
1085 ###############################################################################
1087 ###############################################################################
1088 stamp-builtin: FORCE
1089 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
1090 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
1095 @if test ! -f $@; then printf "" > $@; fi
1097 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl
1098 ( cd $(srcdir) && cat $(HEADERS_include) ) | \
1099 top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
1102 ###############################################################################
1104 ###############################################################################