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)
280 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
282 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
283 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
284 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
285 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
287 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
288 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
289 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
290 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
293 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
296 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
299 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
302 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
305 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
308 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
312 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
317 $(SOURCES_libvlc_beos) \
318 $(SOURCES_libvlc_darwin) \
319 $(SOURCES_libvlc_win32) \
320 $(SOURCES_libvlc_dirent) \
321 $(SOURCES_libvlc_getopt) \
324 SOURCES_libvlc_beos = \
325 src/misc/beos_specific.cpp \
328 SOURCES_libvlc_darwin = \
329 src/misc/darwin_specific.m \
332 SOURCES_libvlc_win32 = \
333 src/misc/win32_specific.c \
336 SOURCES_libvlc_dirent = \
337 src/extras/dirent.c \
340 SOURCES_libvlc_getopt = \
341 src/extras/getopt.c \
342 src/extras/getopt.h \
343 src/extras/getopt1.c \
346 SOURCES_libvlc_common = \
349 src/interface/interface.c \
350 src/interface/intf_eject.c \
351 src/playlist/playlist.c \
352 src/playlist/sort.c \
353 src/playlist/loadsave.c \
354 src/playlist/view.c \
355 src/playlist/item.c \
356 src/playlist/item-ext.c \
357 src/playlist/services_discovery.c \
360 src/input/control.c \
361 src/input/decoder.c \
365 src/input/input_internal.h \
367 src/input/mem_stream.c \
368 src/input/subtitles.c \
370 src/video_output/video_output.c \
371 src/video_output/vout_pictures.c \
372 src/video_output/vout_pictures.h \
373 src/video_output/video_text.c \
374 src/video_output/video_widgets.c \
375 src/video_output/vout_subpictures.c \
376 src/video_output/vout_synchro.c \
377 src/video_output/vout_intf.c \
378 src/audio_output/common.c \
379 src/audio_output/dec.c \
380 src/audio_output/filters.c \
381 src/audio_output/input.c \
382 src/audio_output/mixer.c \
383 src/audio_output/output.c \
384 src/audio_output/intf.c \
385 src/stream_output/stream_output.c \
386 src/stream_output/announce.c \
387 src/stream_output/sap.c \
388 src/stream_output/acl.c \
390 src/osd/osd_widgets.c \
391 src/osd/osd_parser.c \
402 src/misc/configuration.c \
404 src/misc/iso_lang.c \
405 src/misc/iso-639_def.h \
406 src/misc/messages.c \
408 src/misc/variables.c \
411 src/misc/getaddrinfo.c \
417 src/control/audio_video.c \
421 $(SOURCES_libvlc_common) \
422 $(OPT_SOURCES_libvlc_beos) \
423 $(OPT_SOURCES_libvlc_darwin) \
424 $(OPT_SOURCES_libvlc_win32) \
425 $(OPT_SOURCES_libvlc_dirent) \
426 $(OPT_SOURCES_libvlc_getopt) \
429 ###############################################################################
431 ###############################################################################
435 vlc_SOURCES = src/vlc.c
437 # Work around a bug in the arm-wince-pe linker
439 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
442 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
443 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
444 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
446 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
447 # old automake-1.5 bug (automake/279).
448 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
450 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
451 @rm -f $(top_builddir)/vlc$(EXEEXT)
452 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
453 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
454 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
455 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
459 noinst_DATA = vlc-bundle
461 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
462 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
463 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
464 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
465 if test -n "$$i" ; then \
466 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
467 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
470 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
471 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
472 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
473 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
476 for i in $(ALL_LINGUAS); do \
477 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
478 cp "$(top_builddir)/po/$$i.gmo" \
479 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
481 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
484 # Install the modules and the symlinks
486 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
487 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
488 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
490 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
491 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
492 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
495 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
496 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
497 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
500 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
501 rm -f "$(DESTDIR)$(bindir)/$$i" && \
502 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
505 # the opposite of install-{data,exec}-local
507 @for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
508 echo rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
509 rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
511 @for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
512 echo rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
513 rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
516 @for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
517 echo rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
518 rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
521 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
522 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
526 # Create the MacOS X app
527 vlc_app_DATA = VLC.app
528 vlc_appdir = $(bindir)
529 # VLC-release.app is the old VLC.app target
531 @if test -e "$(top_builddir)/tmp"; then \
532 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
535 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
537 rm -Rf $(top_builddir)/VLC-release.app
538 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
539 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
540 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
542 mkdir -p $(top_builddir)/tmp/modules/audio_output
543 cp $(srcdir)/modules/audio_output/coreaudio.c \
544 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
545 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
582 cp "$(srcdir)/modules/gui/macosx/$$i" \
583 $(top_builddir)/tmp/modules/gui/macosx; \
585 case $(target_triplet) in \
586 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
588 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
589 $(top_builddir)/VLC-release.app;; \
590 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
592 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
593 $(top_builddir)/VLC-release.app;; \
594 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
596 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
597 $(top_builddir)/VLC-release.app;; \
599 rm -Rf $(top_builddir)/tmp
600 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
601 $(INSTALL) $(top_builddir)/vlc \
602 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
603 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
604 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
605 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
607 then $(INSTALL) "$$i$(LIBEXT)" \
608 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
610 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
611 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
612 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
613 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
616 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
617 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
618 for i in $(srcdir)/share/http/* ; do \
619 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
621 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
622 for i in $(srcdir)/share/http/vlm/* ; do \
623 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
625 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
626 for i in $(srcdir)/share/http/admin/* ; do \
627 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
629 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
630 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
631 for i in $(ALL_LINGUAS); do \
632 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
633 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
634 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
635 ln -sf ../English.lproj/InfoPlist.strings \
636 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
637 ln -sf ../English.lproj/MainMenu.nib \
638 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
639 ln -sf ../English.lproj/vlc.scriptTerminology \
640 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
642 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
645 @if test -e "$(top_builddir)/tmp"; then \
646 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
649 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
651 rm -Rf $(top_builddir)/VLC.app
652 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
653 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
654 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
656 mkdir -p $(top_builddir)/tmp/modules/audio_output
657 cp $(srcdir)/modules/audio_output/coreaudio.c \
658 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
659 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
696 cp "$(srcdir)/modules/gui/macosx/$$i" \
697 $(top_builddir)/tmp/modules/gui/macosx; \
699 case $(target_triplet) in \
700 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
702 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
703 $(top_builddir)/VLC.app;; \
704 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
706 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
707 $(top_builddir)/VLC.app;; \
708 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
710 cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
711 $(top_builddir)/VLC.app;; \
713 rm -Rf $(top_builddir)/tmp
714 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
715 $(INSTALL) $(top_builddir)/vlc \
716 $(top_builddir)/VLC.app/Contents/MacOS/VLC
717 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
718 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
719 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
721 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
722 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
724 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
725 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
726 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
727 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
730 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
731 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
732 for i in $(ALL_LINGUAS); do \
733 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
734 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
735 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
736 ln -sf ../English.lproj/InfoPlist.strings \
737 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
738 ln -sf ../English.lproj/MainMenu.nib \
739 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
741 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
745 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
746 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
747 noinst_share_vlc_win32_rcdir = $(libdir)
748 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
749 $(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 $@
753 ###############################################################################
754 # Building specific source packages
755 ###############################################################################
758 $(remove_distdir_woody)
759 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
760 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
761 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
762 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
763 $(remove_distdir_woody)
765 remove_distdir_woody = \
766 { test ! -d $(PACKAGE)-woody-$(VERSION) \
767 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
768 -exec chmod u+w {} ';' \
769 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
771 ###############################################################################
772 # Building architecture-specific binary packages
773 ###############################################################################
775 # XXX: this rule is probably only useful to you if you have exactly
776 # the same setup as me. Contact sam@zoy.org if you need to use it.
779 # Check that tmp isn't in the way
780 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
781 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
784 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
787 # Copy relevant files
788 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
789 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
790 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
791 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
793 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
794 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
795 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
797 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
798 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
799 if test -n "$$i" ; then \
800 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
801 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
804 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
805 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
807 mkdir $(top_builddir)/vlc-${VERSION}/locale
808 for i in $(ALL_LINGUAS); do \
809 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
810 cp "$(srcdir)/po/$${i}.gmo" \
811 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
815 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
816 for i in $(srcdir)/share/skins2/fonts/*.*; do \
817 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
819 for i in $(srcdir)/share/skins2/*.*; do \
820 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
823 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
824 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd"
825 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected"
826 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect"
827 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection"
828 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume"
829 for i in $(srcdir)/share/osdmenu/*.*; do \
830 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/ || true ; \
831 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/`basename $$i` ; \
833 for i in $(srcdir)/share/osdmenu/dvd/*.*; do \
834 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd || true ; \
836 for i in $(srcdir)/share/osdmenu/dvd/unselect/*.*; do \
837 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/unselect || true ; \
839 for i in $(srcdir)/share/osdmenu/dvd/selected/*.*; do \
840 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selected/ || true ; \
842 for i in $(srcdir)/share/osdmenu/dvd/selection/*.*; do \
843 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/selection/ || true ; \
845 for i in $(srcdir)/share/osdmenu/dvd/volume/*.*; do \
846 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/dvd/volume/ || true ; \
849 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default"
850 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selected"
851 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/selection"
852 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/default/volume"
853 for i in $(srcdir)/share/osdmenu/default/*.*; do \
854 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default || true ; \
856 for i in $(srcdir)/share/osdmenu/default/selected/*.*; do \
857 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selected/ || true ; \
859 for i in $(srcdir)/share/osdmenu/default/selection/*.*; do \
860 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/selection/ || true ; \
862 for i in $(srcdir)/share/osdmenu/default/volume/*.*; do \
863 cp $$i $(top_builddir)/vlc-${VERSION}/osdmenu/default/volume/ || true ; \
866 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
867 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
868 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
869 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
870 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
871 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
872 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
873 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
874 cp $(srcdir)/share/http/admin/*.html \
875 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
876 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
877 cp $(srcdir)/share/http/admin/dboxfiles.html \
878 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
879 cp $(srcdir)/share/http/admin/.access \
880 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
881 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
882 cp $(srcdir)/share/http/vlm/*.html \
883 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
884 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
886 cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
888 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
890 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
891 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
892 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
895 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
897 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
898 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
899 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
901 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
902 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
904 # Rebase all those DLLs to speed up loading (need cygwin rebase)
905 if [ -x rebase ]; then \
906 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
909 package-win32-base-exe:
911 wine C:/Program\ Files/NSIS/makensis.exe \
912 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
914 package-win32-base-exe-cygwin:
916 C:/Program\ Files/NSIS/makensis.exe \
917 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
919 package-win32-base-exe-linux:
921 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
923 package-win32-base-zip:
925 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
927 package-win32-exe: package-win32-base package-win32-base-exe
929 rm -Rf $(top_builddir)/vlc-${VERSION}
931 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
933 rm -Rf $(top_builddir)/vlc-${VERSION}
935 package-win32-zip: package-win32-base package-win32-base-zip
937 rm -Rf $(top_builddir)/vlc-${VERSION}
939 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
941 rm -Rf $(top_builddir)/vlc-${VERSION}
944 # Check that tmp isn't in the way
945 @if test -e $(srcdir)/tmp; then \
946 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
949 echo "OK." ; mkdir $(srcdir)/tmp ; \
952 # Copy relevant files
953 mkdir -p $(srcdir)/tmp/vlc ;
954 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
955 THANKS NEWS tmp/vlc/ ;
957 # Create debug package
958 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
959 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
960 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
961 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
962 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
963 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
965 # Create normal package
966 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
967 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
968 --strip-debug --strip-unneeded "{}" \; ;
969 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
970 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
971 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
972 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
973 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
976 rm -Rf $(srcdir)/tmp ;
979 # Check that tmp isn't in the way
980 @if test -e "$(top_builddir)/tmp"; then \
981 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
984 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
987 # Copy relevant files
988 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
989 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
992 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
995 rm -Rf $(top_builddir)/tmp
997 package-translations:
998 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
999 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
1002 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
1005 for i in $(ALL_LINGUAS); do \
1006 cp "$(srcdir)/po/$${i}.po" \
1007 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
1010 cp "$(srcdir)/doc/translations.txt" \
1011 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
1013 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1014 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1015 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1016 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1017 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1018 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1019 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1020 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1022 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1023 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1025 ###############################################################################
1026 # PO translation files update
1027 ###############################################################################
1031 rm -f $(top_srcdir)/po/POTFILES.in
1033 cd $(top_srcdir) ; \
1034 echo "# automatically created by make update-po" ; \
1036 echo "# main sources" ; \
1037 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
1038 | grep -v '\(vlc_symbols\|misc/modules_\)' \
1041 echo "# modules" ; \
1042 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
1043 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
1045 } > $(top_srcdir)/po/POTFILES.in
1046 rm -f $(top_srcdir)/po/vlc.pot
1047 cd po && $(MAKE) POTFILES $(top_srcdir)/../po/vlc.pot update-po
1049 #cd po && $(MAKE) update-po
1051 ###############################################################################
1053 ###############################################################################
1054 clean: clean-stamp clean-recursive
1056 rm -f stamp-builtin stamp-api
1058 stamp-builtin: FORCE
1059 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
1060 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
1065 @if test ! -f $@; then printf "" > $@; fi
1067 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl src/misc/modules_builtin.h.in
1068 ( cd $(srcdir) && cat $(HEADERS_include) ) | \
1069 top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
1072 ###############################################################################
1074 ###############################################################################