1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
7 # SUBDIRS stores the directories where a "make" is required when building
8 # something. DIST_SUBDIRS stores the directories where nothing is built but
9 # which have makefiles with distribution information.
10 # - intl should come before modules and . because all the code uses gettext
11 # - modules should come before . because vlc needs the builtins
12 # - . should come before mozilla because the plugin needs libvlc_pic.a
13 # - po should come before . because VLC.app needs the pofiles
14 SUBDIRS = intl modules po . mozilla activex share m4 doc
15 DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib
36 # Tell aclocal to use -I m4. Wonder if it really works.
37 ACLOCAL_AMFLAGS = -I m4
39 # XXX: these flags could be set in configure.ac, but we set them here
40 # because old versions of automake don't support them in configure.ac.
41 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
43 ###############################################################################
45 ###############################################################################
49 src/misc/modules_builtin.h \
52 pkgincludedir = $(includedir)/vlc
54 dist_pkginclude_HEADERS = \
59 include/vlc/decoder.h \
62 include/vlc/control.h \
65 noinst_HEADERS = $(HEADERS_include)
68 include/aout_internal.h \
69 include/audio_output.h \
70 include/beos_specific.h \
73 include/configuration.h \
74 include/darwin_specific.h \
75 include/intf_eject.h \
80 include/modules_inner.h \
84 include/os_specific.h \
86 include/stream_output.h \
88 include/video_output.h \
89 include/vlc_access.h \
92 include/vlc_block_helper.h \
94 include/vlc_common.h \
95 include/vlc_config.h \
100 include/vlc_es_out.h \
101 include/vlc_filter.h \
102 include/vlc_config_cat.h \
103 include/vlc_httpd.h \
106 include/vlc_image.h \
107 include/vlc_input.h \
108 include/vlc_interface.h \
110 include/vlc_messages.h \
112 include/vlc_objects.h \
113 include/vlc_playlist.h \
115 include/vlc_stream.h \
116 include/vlc_symbols.h \
117 include/vlc_threads_funcs.h \
118 include/vlc_threads.h \
119 include/vlc_video.h \
123 include/vout_synchro.h \
124 include/win32_specific.h \
127 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
128 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
131 # These dependencies are mandatory
132 $(SOURCES_libvlc): src/misc/modules_builtin.h $(LIB_intl)
134 ###############################################################################
135 # Optional libintl - FIXME, bad dependencies
136 ###############################################################################
138 intl/libintl.a: FORCE
139 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
142 LIB_intl = intl/libintl.a
145 ###############################################################################
147 ###############################################################################
150 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
151 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
152 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
153 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
154 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
155 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
156 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
157 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
158 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
159 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
160 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
161 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
162 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
163 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
164 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
165 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
166 extras/MacOSX/Resources/a52.icns \
167 extras/MacOSX/Resources/aac.icns \
168 extras/MacOSX/Resources/asf.icns \
169 extras/MacOSX/Resources/asx.icns \
170 extras/MacOSX/Resources/avi.icns \
171 extras/MacOSX/Resources/bin.icns \
172 extras/MacOSX/Resources/cue.icns \
173 extras/MacOSX/Resources/dat.icns \
174 extras/MacOSX/Resources/divx.icns \
175 extras/MacOSX/Resources/dv.icns \
176 extras/MacOSX/Resources/generic.icns \
177 extras/MacOSX/Resources/m3u.icns \
178 extras/MacOSX/Resources/mov.icns \
179 extras/MacOSX/Resources/mp3.icns \
180 extras/MacOSX/Resources/mp4.icns \
181 extras/MacOSX/Resources/mpeg.icns \
182 extras/MacOSX/Resources/mpeg1.icns \
183 extras/MacOSX/Resources/mpeg2.icns \
184 extras/MacOSX/Resources/mpeg4.icns \
185 extras/MacOSX/Resources/mpg.icns \
186 extras/MacOSX/Resources/ogg.icns \
187 extras/MacOSX/Resources/ogm.icns \
188 extras/MacOSX/Resources/pls.icns \
189 extras/MacOSX/Resources/srt.icns \
190 extras/MacOSX/Resources/sub.icns \
191 extras/MacOSX/Resources/vlc.icns \
192 extras/MacOSX/Resources/vob.icns \
193 extras/MacOSX/Resources/wma.icns \
194 extras/MacOSX/Resources/wmv.icns \
195 extras/MacOSX/Resources/pause.png \
196 extras/MacOSX/Resources/pause_blue.png \
197 extras/MacOSX/Resources/play.png \
198 extras/MacOSX/Resources/play_blue.png \
199 extras/MacOSX/Resources/stop.png \
200 extras/MacOSX/Resources/stop_blue.png \
201 extras/MacOSX/Resources/display.png \
202 extras/MacOSX/Resources/display_slider.png \
203 extras/MacOSX/Resources/display_track.png \
204 extras/MacOSX/Resources/equalizerdrawer_active.png \
205 extras/MacOSX/Resources/equalizerdrawer_blue.png \
206 extras/MacOSX/Resources/fullscreen_active.png \
207 extras/MacOSX/Resources/fullscreen_blue.png \
208 extras/MacOSX/Resources/next_active.png \
209 extras/MacOSX/Resources/next_blue.png \
210 extras/MacOSX/Resources/playlistdrawer_active.png \
211 extras/MacOSX/Resources/playlistdrawer_blue.png \
212 extras/MacOSX/Resources/previous_active.png \
213 extras/MacOSX/Resources/previous_blue.png \
214 extras/MacOSX/Resources/skip_forward_active.png \
215 extras/MacOSX/Resources/skip_forward_blue.png \
216 extras/MacOSX/Resources/skip_previous_active.png \
217 extras/MacOSX/Resources/skip_previous_blue.png \
218 extras/MacOSX/Resources/volume_high.png \
219 extras/MacOSX/Resources/volume_low.png \
220 extras/MacOSX/Resources/volumeslider_blue.png \
221 extras/MacOSX/Resources/volumeslider_normal.png \
222 extras/MacOSX/Resources/volumetrack.png \
223 extras/MacOSX/Resources/about_bg.png \
224 extras/MacOSX/Resources/vlc.scriptSuite \
225 extras/MacOSX/Resources/vlc.scriptTerminology \
226 extras/MacOSX/Resources/README \
227 extras/MacOSX/vlc.pbproj/project.pbxproj \
228 extras/MacOSX/macosx-dmg \
231 ###############################################################################
232 # MS Visual Studio and eMbedded Visual Studio projects
233 ###############################################################################
238 msvc/plugins.dsp.in \
241 msvc/modules_builtin_msvc.h \
248 evc/modules_builtin_evc.h \
252 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
253 distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
255 ###############################################################################
257 ###############################################################################
259 bin_SCRIPTS = vlc-config
260 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
261 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
262 -cd $(top_builddir) && chmod 0755 $@
264 $(SOURCES): vlc-config
266 CLEANFILES = $(BUILT_SOURCES)
268 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
270 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
271 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
272 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
273 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
275 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
276 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
277 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
278 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
281 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
284 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
287 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
290 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
293 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
296 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
300 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
305 $(SOURCES_libvlc_beos) \
306 $(SOURCES_libvlc_darwin) \
307 $(SOURCES_libvlc_win32) \
308 $(SOURCES_libvlc_dirent) \
309 $(SOURCES_libvlc_getopt) \
312 SOURCES_libvlc_beos = \
313 src/misc/beos_specific.cpp \
316 SOURCES_libvlc_darwin = \
317 src/misc/darwin_specific.m \
320 SOURCES_libvlc_win32 = \
321 src/misc/win32_specific.c \
324 SOURCES_libvlc_dirent = \
325 src/extras/dirent.c \
328 SOURCES_libvlc_getopt = \
329 src/extras/getopt.c \
330 src/extras/getopt.h \
331 src/extras/getopt1.c \
334 SOURCES_libvlc_common = \
337 src/interface/interface.c \
338 src/interface/intf_eject.c \
339 src/playlist/playlist.c \
340 src/playlist/sort.c \
341 src/playlist/loadsave.c \
342 src/playlist/view.c \
343 src/playlist/item.c \
344 src/playlist/item-ext.c \
345 src/playlist/services_discovery.c \
348 src/input/control.c \
349 src/input/decoder.c \
353 src/input/input_internal.h \
355 src/input/mem_stream.c \
356 src/input/subtitles.c \
358 src/video_output/video_output.c \
359 src/video_output/vout_pictures.c \
360 src/video_output/vout_pictures.h \
361 src/video_output/video_text.c \
362 src/video_output/video_widgets.c \
363 src/video_output/vout_subpictures.c \
364 src/video_output/vout_synchro.c \
365 src/video_output/vout_intf.c \
366 src/audio_output/common.c \
367 src/audio_output/dec.c \
368 src/audio_output/filters.c \
369 src/audio_output/input.c \
370 src/audio_output/mixer.c \
371 src/audio_output/output.c \
372 src/audio_output/intf.c \
373 src/stream_output/stream_output.c \
374 src/stream_output/announce.c \
375 src/stream_output/sap.c \
385 src/misc/configuration.c \
387 src/misc/iso_lang.c \
388 src/misc/iso-639_def.h \
389 src/misc/messages.c \
391 src/misc/variables.c \
394 src/misc/getaddrinfo.c \
400 src/control/audio_video.c \
404 $(SOURCES_libvlc_common) \
405 $(OPT_SOURCES_libvlc_beos) \
406 $(OPT_SOURCES_libvlc_darwin) \
407 $(OPT_SOURCES_libvlc_win32) \
408 $(OPT_SOURCES_libvlc_dirent) \
409 $(OPT_SOURCES_libvlc_getopt) \
412 ###############################################################################
414 ###############################################################################
418 vlc_SOURCES = src/vlc.c
420 # Work around a bug in the arm-wince-pe linker
422 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
425 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
426 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
427 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
429 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
430 # old automake-1.5 bug (automake/279).
431 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
433 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
434 @rm -f $(top_builddir)/vlc$(EXEEXT)
435 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
436 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
437 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
438 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
442 noinst_DATA = vlc-bundle
444 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
445 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
446 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
447 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
448 if test -n "$$i" ; then \
449 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
450 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
453 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
454 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
455 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
456 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
459 for i in $(ALL_LINGUAS); do \
460 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
461 cp "$(top_builddir)/po/$$i.gmo" \
462 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
464 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
467 # Install the modules and the symlinks
469 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
470 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
471 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
473 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
474 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
475 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
478 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
479 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
480 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
483 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
484 rm -f "$(DESTDIR)$(bindir)/$$i" && \
485 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
488 # the opposite of install-{data,exec}-local
490 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
491 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
495 # Create the MacOS X app
496 vlc_app_DATA = VLC.app
497 vlc_appdir = $(bindir)
498 # VLC-release.app is the old VLC.app target
500 @if test -e "$(top_builddir)/tmp"; then \
501 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
504 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
506 rm -Rf $(top_builddir)/VLC-release.app
507 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
508 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
509 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
511 mkdir -p $(top_builddir)/tmp/modules/audio_output
512 cp $(srcdir)/modules/audio_output/coreaudio.c \
513 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
514 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
547 cp "$(srcdir)/modules/gui/macosx/$$i" \
548 $(top_builddir)/tmp/modules/gui/macosx; \
550 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
551 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
552 $(top_builddir)/VLC-release.app
553 rm -Rf $(top_builddir)/tmp
554 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
555 $(INSTALL) $(top_builddir)/vlc \
556 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
557 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
558 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
559 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
561 then $(INSTALL) "$$i$(LIBEXT)" \
562 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
564 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
565 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
566 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
567 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
570 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
571 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
572 for i in $(srcdir)/share/http/* ; do \
573 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
575 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
576 for i in $(srcdir)/share/http/vlm/* ; do \
577 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
579 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
580 for i in $(srcdir)/share/http/admin/* ; do \
581 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
583 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
584 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
585 for i in $(ALL_LINGUAS); do \
586 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
587 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
588 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
589 ln -sf ../English.lproj/InfoPlist.strings \
590 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
591 ln -sf ../English.lproj/MainMenu.nib \
592 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
593 ln -sf ../English.lproj/vlc.scriptTerminology \
594 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
596 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
599 @if test -e "$(top_builddir)/tmp"; then \
600 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
603 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
605 rm -Rf $(top_builddir)/VLC.app
606 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
607 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
608 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
610 mkdir -p $(top_builddir)/tmp/modules/audio_output
611 cp $(srcdir)/modules/audio_output/coreaudio.c \
612 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
613 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
646 cp "$(srcdir)/modules/gui/macosx/$$i" \
647 $(top_builddir)/tmp/modules/gui/macosx; \
649 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
650 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
651 $(top_builddir)/VLC.app
652 rm -Rf $(top_builddir)/tmp
653 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
654 $(INSTALL) $(top_builddir)/vlc \
655 $(top_builddir)/VLC.app/Contents/MacOS/VLC
656 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
657 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
658 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
660 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
661 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
663 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
664 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
665 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
666 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
669 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
670 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
671 for i in $(ALL_LINGUAS); do \
672 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
673 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
674 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
675 ln -sf ../English.lproj/InfoPlist.strings \
676 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
677 ln -sf ../English.lproj/MainMenu.nib \
678 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
680 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
684 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
685 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
686 noinst_share_vlc_win32_rcdir = $(libdir)
687 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
688 $(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 $@
691 ###############################################################################
692 # Building specific source packages
693 ###############################################################################
696 $(remove_distdir_woody)
697 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
698 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
699 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
700 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
701 $(remove_distdir_woody)
703 remove_distdir_woody = \
704 { test ! -d $(PACKAGE)-woody-$(VERSION) \
705 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
706 -exec chmod u+w {} ';' \
707 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
709 ###############################################################################
710 # Building architecture-specific binary packages
711 ###############################################################################
713 # XXX: this rule is probably only useful to you if you have exactly
714 # the same setup as me. Contact sam@zoy.org if you need to use it.
717 # Check that tmp isn't in the way
718 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
719 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
722 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
725 # Copy relevant files
726 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
727 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
728 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
729 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
731 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
732 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
733 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
735 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
736 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
737 if test -n "$$i" ; then \
738 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
739 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
742 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
743 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
745 mkdir $(top_builddir)/vlc-${VERSION}/locale
746 for i in $(ALL_LINGUAS); do \
747 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
748 cp "$(srcdir)/po/$${i}.gmo" \
749 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
753 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
754 for i in $(srcdir)/share/skins2/fonts/*.*; do \
755 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
757 for i in $(srcdir)/share/skins2/*.*; do \
758 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
761 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
762 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
763 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
764 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
765 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
766 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
767 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
768 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
769 cp $(srcdir)/share/http/admin/*.html \
770 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
771 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
772 cp $(srcdir)/share/http/admin/dboxfiles.html \
773 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
774 cp $(srcdir)/share/http/admin/.access \
775 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
776 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
777 cp $(srcdir)/share/http/vlm/*.html \
778 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
779 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
781 cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
783 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
785 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
786 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
787 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
790 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
792 cp $(top_builddir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
793 cp $(top_builddir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
794 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
796 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
797 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
799 # Rebase all those DLLs to speed up loading (need cygwin rebase)
800 if [ -x rebase ]; then \
801 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
804 package-win32-base-exe:
806 wine C:/Program\ Files/NSIS/makensis.exe \
807 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
809 package-win32-base-exe-cygwin:
811 C:/Program\ Files/NSIS/makensis.exe \
812 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
814 package-win32-base-exe-linux:
816 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
818 package-win32-base-zip:
820 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
822 package-win32-exe: package-win32-base package-win32-base-exe
824 rm -Rf $(top_builddir)/vlc-${VERSION}
826 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
828 rm -Rf $(top_builddir)/vlc-${VERSION}
830 package-win32-zip: package-win32-base package-win32-base-zip
832 rm -Rf $(top_builddir)/vlc-${VERSION}
834 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
836 rm -Rf $(top_builddir)/vlc-${VERSION}
839 # Check that tmp isn't in the way
840 @if test -e $(srcdir)/tmp; then \
841 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
844 echo "OK." ; mkdir $(srcdir)/tmp ; \
847 # Copy relevant files
848 mkdir -p $(srcdir)/tmp/vlc ;
849 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
850 THANKS NEWS tmp/vlc/ ;
852 # Create debug package
853 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
854 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
855 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
856 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
857 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
858 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
860 # Create normal package
861 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
862 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
863 --strip-debug --strip-unneeded "{}" \; ;
864 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
865 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
866 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
867 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
868 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
871 rm -Rf $(srcdir)/tmp ;
874 # Check that tmp isn't in the way
875 @if test -e "$(top_builddir)/tmp"; then \
876 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
879 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
882 # Copy relevant files
883 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
884 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
887 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
890 rm -Rf $(top_builddir)/tmp
892 package-translations:
893 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
894 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
897 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
900 for i in $(ALL_LINGUAS); do \
901 cp "$(srcdir)/po/$${i}.po" \
902 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
905 cp "$(srcdir)/doc/translations.txt" \
906 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
908 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
909 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
910 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
911 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
912 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
913 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
914 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
915 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
917 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
918 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
920 ###############################################################################
922 ###############################################################################
923 clean: clean-stamp clean-recursive
925 rm -f stamp-builtin stamp-api
928 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
929 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
934 @if test ! -f $@; then printf "" > $@; fi
936 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl src/misc/modules_builtin.h.in
937 cd $(srcdir) && cat $(HEADERS_include) | perl ./vlc-api.pl
940 ###############################################################################
942 ###############################################################################