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) src debian ipkg lib
37 # Tell aclocal to use -I m4. Wonder if it really works.
38 ACLOCAL_AMFLAGS = -I m4
40 # XXX: these flags could be set in configure.ac, but we set them here
41 # because old versions of automake don't support them in configure.ac.
42 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
44 ###############################################################################
46 ###############################################################################
50 src/misc/modules_builtin.h \
53 pkgincludedir = $(includedir)/vlc
55 dist_pkginclude_HEADERS = \
60 include/vlc/decoder.h \
63 include/vlc/control.h \
66 noinst_HEADERS = $(HEADERS_include)
69 include/aout_internal.h \
70 include/audio_output.h \
71 include/beos_specific.h \
74 include/configuration.h \
75 include/darwin_specific.h \
76 include/intf_eject.h \
81 include/modules_inner.h \
85 include/os_specific.h \
87 include/stream_output.h \
89 include/video_output.h \
90 include/vlc_access.h \
94 include/vlc_block_helper.h \
96 include/vlc_common.h \
97 include/vlc_config.h \
100 include/vlc_error.h \
102 include/vlc_es_out.h \
103 include/vlc_filter.h \
104 include/vlc_config_cat.h \
105 include/vlc_httpd.h \
108 include/vlc_image.h \
109 include/vlc_input.h \
110 include/vlc_interface.h \
112 include/vlc_messages.h \
114 include/vlc_objects.h \
116 include/vlc_playlist.h \
118 include/vlc_stream.h \
119 include/vlc_symbols.h \
120 include/vlc_threads_funcs.h \
121 include/vlc_threads.h \
122 include/vlc_video.h \
126 include/vout_synchro.h \
127 include/win32_specific.h \
130 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
131 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
134 # These dependencies are mandatory
135 $(SOURCES_libvlc): src/misc/modules_builtin.h $(LIB_intl)
137 ###############################################################################
138 # Optional libintl - FIXME, bad dependencies
139 ###############################################################################
141 intl/libintl.a: FORCE
142 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
145 LIB_intl = intl/libintl.a
148 ###############################################################################
150 ###############################################################################
153 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
154 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
155 extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
156 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
157 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
158 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
159 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
160 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
161 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
162 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
163 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
164 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
165 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
166 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
167 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
168 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
169 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
170 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
171 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
172 extras/MacOSX/Resources/a52.icns \
173 extras/MacOSX/Resources/aac.icns \
174 extras/MacOSX/Resources/asf.icns \
175 extras/MacOSX/Resources/asx.icns \
176 extras/MacOSX/Resources/avi.icns \
177 extras/MacOSX/Resources/bin.icns \
178 extras/MacOSX/Resources/cue.icns \
179 extras/MacOSX/Resources/dat.icns \
180 extras/MacOSX/Resources/divx.icns \
181 extras/MacOSX/Resources/dv.icns \
182 extras/MacOSX/Resources/generic.icns \
183 extras/MacOSX/Resources/m3u.icns \
184 extras/MacOSX/Resources/mov.icns \
185 extras/MacOSX/Resources/mp3.icns \
186 extras/MacOSX/Resources/mp4.icns \
187 extras/MacOSX/Resources/mpeg.icns \
188 extras/MacOSX/Resources/mpeg1.icns \
189 extras/MacOSX/Resources/mpeg2.icns \
190 extras/MacOSX/Resources/mpeg4.icns \
191 extras/MacOSX/Resources/mpg.icns \
192 extras/MacOSX/Resources/ogg.icns \
193 extras/MacOSX/Resources/ogm.icns \
194 extras/MacOSX/Resources/pls.icns \
195 extras/MacOSX/Resources/srt.icns \
196 extras/MacOSX/Resources/sub.icns \
197 extras/MacOSX/Resources/vlc.icns \
198 extras/MacOSX/Resources/vob.icns \
199 extras/MacOSX/Resources/wma.icns \
200 extras/MacOSX/Resources/wmv.icns \
201 extras/MacOSX/Resources/pause.png \
202 extras/MacOSX/Resources/pause_blue.png \
203 extras/MacOSX/Resources/play.png \
204 extras/MacOSX/Resources/play_blue.png \
205 extras/MacOSX/Resources/stop.png \
206 extras/MacOSX/Resources/stop_blue.png \
207 extras/MacOSX/Resources/display.png \
208 extras/MacOSX/Resources/display_slider.png \
209 extras/MacOSX/Resources/display_track.png \
210 extras/MacOSX/Resources/equalizerdrawer_active.png \
211 extras/MacOSX/Resources/equalizerdrawer_blue.png \
212 extras/MacOSX/Resources/fullscreen_active.png \
213 extras/MacOSX/Resources/fullscreen_blue.png \
214 extras/MacOSX/Resources/next_active.png \
215 extras/MacOSX/Resources/next_blue.png \
216 extras/MacOSX/Resources/playlistdrawer_active.png \
217 extras/MacOSX/Resources/playlistdrawer_blue.png \
218 extras/MacOSX/Resources/previous_active.png \
219 extras/MacOSX/Resources/previous_blue.png \
220 extras/MacOSX/Resources/skip_forward_active.png \
221 extras/MacOSX/Resources/skip_forward_blue.png \
222 extras/MacOSX/Resources/skip_previous_active.png \
223 extras/MacOSX/Resources/skip_previous_blue.png \
224 extras/MacOSX/Resources/volume_high.png \
225 extras/MacOSX/Resources/volume_low.png \
226 extras/MacOSX/Resources/volumeslider_blue.png \
227 extras/MacOSX/Resources/volumeslider_normal.png \
228 extras/MacOSX/Resources/volumetrack.png \
229 extras/MacOSX/Resources/about_bg.png \
230 extras/MacOSX/Resources/vlc.scriptSuite \
231 extras/MacOSX/Resources/vlc.scriptTerminology \
232 extras/MacOSX/Resources/README \
233 extras/MacOSX/vlc.pbproj/project.pbxproj \
234 extras/MacOSX/macosx-dmg \
240 ###############################################################################
241 # MS Visual Studio and eMbedded Visual Studio projects
242 ###############################################################################
247 msvc/plugins.dsp.in \
250 msvc/modules_builtin_msvc.h \
257 evc/modules_builtin_evc.h \
261 cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
262 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
264 ###############################################################################
266 ###############################################################################
268 bin_SCRIPTS = vlc-config
269 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
270 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
271 -cd $(top_builddir) && chmod 0755 $@
273 vlc-config.in: vlc-config.in.in
274 ./config.status --recheck
276 $(SOURCES): vlc-config
278 CLEANFILES = $(BUILT_SOURCES) stamp-builtin
279 DISTCLEANFILES = vlc-config.in vlc-config
281 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
283 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
284 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
285 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
286 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
288 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
289 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
290 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
291 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
294 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
297 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
300 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
303 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
306 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
309 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
313 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
318 $(SOURCES_libvlc_beos) \
319 $(SOURCES_libvlc_darwin) \
320 $(SOURCES_libvlc_win32) \
321 $(SOURCES_libvlc_dirent) \
322 $(SOURCES_libvlc_getopt) \
325 SOURCES_libvlc_beos = \
326 src/misc/beos_specific.cpp \
329 SOURCES_libvlc_darwin = \
330 src/misc/darwin_specific.m \
333 SOURCES_libvlc_win32 = \
334 src/misc/win32_specific.c \
337 SOURCES_libvlc_dirent = \
338 src/extras/dirent.c \
341 SOURCES_libvlc_getopt = \
342 src/extras/getopt.c \
343 src/extras/getopt.h \
344 src/extras/getopt1.c \
347 SOURCES_libvlc_common = \
350 src/interface/interface.c \
351 src/interface/intf_eject.c \
352 src/playlist/playlist.c \
353 src/playlist/sort.c \
354 src/playlist/loadsave.c \
355 src/playlist/view.c \
356 src/playlist/item.c \
357 src/playlist/item-ext.c \
358 src/playlist/services_discovery.c \
361 src/input/control.c \
362 src/input/decoder.c \
366 src/input/input_internal.h \
368 src/input/mem_stream.c \
369 src/input/subtitles.c \
371 src/video_output/video_output.c \
372 src/video_output/vout_pictures.c \
373 src/video_output/vout_pictures.h \
374 src/video_output/video_text.c \
375 src/video_output/video_widgets.c \
376 src/video_output/vout_subpictures.c \
377 src/video_output/vout_synchro.c \
378 src/video_output/vout_intf.c \
379 src/audio_output/common.c \
380 src/audio_output/dec.c \
381 src/audio_output/filters.c \
382 src/audio_output/input.c \
383 src/audio_output/mixer.c \
384 src/audio_output/output.c \
385 src/audio_output/intf.c \
386 src/stream_output/stream_output.c \
387 src/stream_output/announce.c \
388 src/stream_output/sap.c \
389 src/stream_output/acl.c \
391 src/osd/osd_widgets.c \
392 src/osd/osd_parser.c \
403 src/misc/configuration.c \
405 src/misc/iso_lang.c \
406 src/misc/iso-639_def.h \
407 src/misc/messages.c \
409 src/misc/variables.c \
412 src/misc/getaddrinfo.c \
418 src/control/audio_video.c \
422 $(SOURCES_libvlc_common) \
423 $(OPT_SOURCES_libvlc_beos) \
424 $(OPT_SOURCES_libvlc_darwin) \
425 $(OPT_SOURCES_libvlc_win32) \
426 $(OPT_SOURCES_libvlc_dirent) \
427 $(OPT_SOURCES_libvlc_getopt) \
430 ###############################################################################
432 ###############################################################################
436 vlc_SOURCES = src/vlc.c
438 # Work around a bug in the arm-wince-pe linker
440 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
443 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
444 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
445 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
447 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
448 # old automake-1.5 bug (automake/279).
449 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
451 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
452 @rm -f $(top_builddir)/vlc$(EXEEXT)
453 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
454 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
455 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
456 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
460 noinst_DATA = vlc-bundle
462 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
463 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
464 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
465 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
466 if test -n "$$i" ; then \
467 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
468 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
471 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
472 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
473 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
474 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
477 for i in $(ALL_LINGUAS); do \
478 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
479 cp "$(top_builddir)/po/$$i.gmo" \
480 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
482 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
485 # Install the modules and the symlinks
487 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
488 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
489 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
491 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
492 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
493 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
496 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
497 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
498 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
501 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
502 rm -f "$(DESTDIR)$(bindir)/$$i" && \
503 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
506 # the opposite of install-{data,exec}-local
508 @for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
509 echo rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
510 rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
512 @for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
513 echo rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
514 rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
517 @for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
518 echo rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
519 rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
522 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
523 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
527 # Create the MacOS X app
528 vlc_app_DATA = VLC.app
529 vlc_appdir = $(bindir)
530 # VLC-release.app is the old VLC.app target
532 @if test -e "$(top_builddir)/tmp"; then \
533 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
536 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
538 rm -Rf $(top_builddir)/VLC-release.app
539 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
540 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
541 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
543 mkdir -p $(top_builddir)/tmp/modules/audio_output
544 cp $(srcdir)/modules/audio_output/coreaudio.c \
545 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
546 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
583 cp "$(srcdir)/modules/gui/macosx/$$i" \
584 $(top_builddir)/tmp/modules/gui/macosx; \
586 case $(target_triplet) in \
587 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
589 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
590 $(top_builddir)/VLC-release.app;; \
591 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
593 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
594 $(top_builddir)/VLC-release.app;; \
595 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
597 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
598 $(top_builddir)/VLC-release.app;; \
600 rm -Rf $(top_builddir)/tmp
601 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
602 $(INSTALL) $(top_builddir)/vlc \
603 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
604 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
605 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
606 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
608 then $(INSTALL) "$$i$(LIBEXT)" \
609 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
611 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
612 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
613 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
614 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
617 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
618 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
619 for i in $(srcdir)/share/http/* ; do \
620 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
622 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
623 for i in $(srcdir)/share/http/vlm/* ; do \
624 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
626 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
627 for i in $(srcdir)/share/http/admin/* ; do \
628 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
630 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
631 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
632 for i in $(ALL_LINGUAS); do \
633 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
634 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
635 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
636 ln -sf ../English.lproj/InfoPlist.strings \
637 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
638 ln -sf ../English.lproj/MainMenu.nib \
639 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
640 ln -sf ../English.lproj/vlc.scriptTerminology \
641 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
643 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
646 @if test -e "$(top_builddir)/tmp"; then \
647 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
650 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
652 rm -Rf $(top_builddir)/VLC.app
653 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
654 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
655 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
657 mkdir -p $(top_builddir)/tmp/modules/audio_output
658 cp $(srcdir)/modules/audio_output/coreaudio.c \
659 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
660 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
697 cp "$(srcdir)/modules/gui/macosx/$$i" \
698 $(top_builddir)/tmp/modules/gui/macosx; \
700 case $(target_triplet) in \
701 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
703 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
704 $(top_builddir)/VLC.app;; \
705 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
707 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
708 $(top_builddir)/VLC.app;; \
709 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
711 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
712 $(top_builddir)/VLC.app;; \
714 rm -Rf $(top_builddir)/tmp
715 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
716 $(INSTALL) $(top_builddir)/vlc \
717 $(top_builddir)/VLC.app/Contents/MacOS/VLC
718 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
719 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
720 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
722 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
723 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
725 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
726 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
727 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
728 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
731 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
732 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
733 for i in $(ALL_LINGUAS); do \
734 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
735 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
736 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
737 ln -sf ../English.lproj/InfoPlist.strings \
738 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
739 ln -sf ../English.lproj/MainMenu.nib \
740 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
742 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
746 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
747 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
748 noinst_share_vlc_win32_rcdir = $(libdir)
749 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
750 $(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 $@
754 ###############################################################################
755 # Building specific source packages
756 ###############################################################################
759 $(remove_distdir_woody)
760 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
761 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
762 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
763 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
764 $(remove_distdir_woody)
766 remove_distdir_woody = \
767 { test ! -d $(PACKAGE)-woody-$(VERSION) \
768 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
769 -exec chmod u+w {} ';' \
770 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
772 ###############################################################################
773 # Building architecture-specific binary packages
774 ###############################################################################
776 # XXX: this rule is probably only useful to you if you have exactly
777 # the same setup as me. Contact sam@zoy.org if you need to use it.
780 # Check that tmp isn't in the way
781 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
782 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
785 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
788 # Copy relevant files
789 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
790 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
791 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
792 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
794 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
795 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
796 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
798 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
799 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
800 if test -n "$$i" ; then \
801 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
802 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
805 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
806 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
808 mkdir $(top_builddir)/vlc-${VERSION}/locale
809 for i in $(ALL_LINGUAS); do \
810 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
811 cp "$(srcdir)/po/$${i}.gmo" \
812 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
816 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
817 for i in $(srcdir)/share/skins2/fonts/*.*; do \
818 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
820 for i in $(srcdir)/share/skins2/*.*; do \
821 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
824 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
825 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd"
826 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected"
827 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect"
828 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection"
829 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume"
830 for i in $(srcdir)/share/osdmenu/*.*; do \
831 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/ || true ; \
832 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/`basename $$i` ; \
834 for i in $(srcdir)/share/osdmenu/dvd/*.*; do \
835 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd || true ; \
837 for i in $(srcdir)/share/osdmenu/dvd/unselect/*.*; do \
838 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect || true ; \
840 for i in $(srcdir)/share/osdmenu/dvd/selected/*.*; do \
841 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected/ || true ; \
843 for i in $(srcdir)/share/osdmenu/dvd/selection/*.*; do \
844 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection/ || true ; \
846 for i in $(srcdir)/share/osdmenu/dvd/volume/*.*; do \
847 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume/ || true ; \
850 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default"
851 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selected"
852 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selection"
853 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/volume"
854 for i in $(srcdir)/share/osdmenu/default/*.*; do \
855 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default || true ; \
857 for i in $(srcdir)/share/osdmenu/default/selected/*.*; do \
858 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selected/ || true ; \
860 for i in $(srcdir)/share/osdmenu/default/selection/*.*; do \
861 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selection/ || true ; \
863 for i in $(srcdir)/share/osdmenu/default/volume/*.*; do \
864 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/volume/ || true ; \
867 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
868 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
869 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
870 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
871 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
872 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
873 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
874 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
875 cp $(srcdir)/share/http/admin/*.html \
876 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
877 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
878 cp $(srcdir)/share/http/admin/dboxfiles.html \
879 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
880 cp $(srcdir)/share/http/admin/.access \
881 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
882 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
883 cp $(srcdir)/share/http/vlm/*.html \
884 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
885 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
887 cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
889 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
891 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
892 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
893 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
896 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
898 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
899 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
900 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
902 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
903 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
905 # Rebase all those DLLs to speed up loading (need cygwin rebase)
906 if [ -x rebase ]; then \
907 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
910 package-win32-base-exe:
912 wine C:/Program\ Files/NSIS/makensis.exe \
913 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
915 package-win32-base-exe-cygwin:
917 C:/Program\ Files/NSIS/makensis.exe \
918 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
920 package-win32-base-exe-linux:
922 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
924 package-win32-base-zip:
926 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
928 package-win32-exe: package-win32-base package-win32-base-exe
930 rm -Rf $(top_builddir)/vlc-${VERSION}
932 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
934 rm -Rf $(top_builddir)/vlc-${VERSION}
936 package-win32-zip: package-win32-base package-win32-base-zip
938 rm -Rf $(top_builddir)/vlc-${VERSION}
940 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
942 rm -Rf $(top_builddir)/vlc-${VERSION}
945 # Check that tmp isn't in the way
946 @if test -e $(srcdir)/tmp; then \
947 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
950 echo "OK." ; mkdir $(srcdir)/tmp ; \
953 # Copy relevant files
954 mkdir -p $(srcdir)/tmp/vlc ;
955 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
956 THANKS NEWS tmp/vlc/ ;
958 # Create debug package
959 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
960 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
961 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
962 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
963 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
964 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
966 # Create normal package
967 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
968 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
969 --strip-debug --strip-unneeded "{}" \; ;
970 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
971 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
972 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
973 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
974 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
977 rm -Rf $(srcdir)/tmp ;
980 # Check that tmp isn't in the way
981 @if test -e "$(top_builddir)/tmp"; then \
982 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
985 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
988 # Copy relevant files
989 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
990 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
993 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
996 rm -Rf $(top_builddir)/tmp
998 package-translations:
999 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
1000 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
1003 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
1006 for i in $(ALL_LINGUAS); do \
1007 cp "$(srcdir)/po/$${i}.po" \
1008 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
1011 cp "$(srcdir)/doc/translations.txt" \
1012 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
1014 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1015 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1016 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1017 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1018 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1019 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1020 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1021 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1023 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1024 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1026 ###############################################################################
1027 # PO translation files update
1028 ###############################################################################
1032 rm -f $(top_srcdir)/po/POTFILES.in
1034 cd $(top_srcdir) ; \
1035 echo "# automatically created by make update-po" ; \
1037 echo "# main sources" ; \
1038 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
1039 | grep -v '\(vlc_symbols\|misc/modules_\)' \
1042 echo "# modules" ; \
1043 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
1044 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
1046 } > $(top_srcdir)/po/POTFILES.in
1047 rm -f $(top_srcdir)/po/vlc.pot
1048 cd po && $(MAKE) POTFILES $(top_srcdir)/../po/vlc.pot update-po
1050 #cd po && $(MAKE) update-po
1052 ###############################################################################
1054 ###############################################################################
1055 stamp-builtin: FORCE
1056 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
1057 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
1062 @if test ! -f $@; then printf "" > $@; fi
1064 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl src/misc/modules_builtin.h.in
1065 ( cd $(srcdir) && cat $(HEADERS_include) ) | \
1066 top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
1069 ###############################################################################
1071 ###############################################################################