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
35 # Tell aclocal to use -I m4. Wonder if it really works.
36 ACLOCAL_AMFLAGS = -I m4
38 # XXX: these flags could be set in configure.ac, but we set them here
39 # because old versions of automake don't support them in configure.ac.
40 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
42 ###############################################################################
44 ###############################################################################
48 include/vlc_symbols.h \
49 src/misc/modules_builtin.h \
50 src/misc/modules_plugin.h \
53 pkgincludedir = $(includedir)/vlc
55 dist_pkginclude_HEADERS = \
60 include/vlc/decoder.h \
65 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
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_threads_funcs.h \
117 include/vlc_threads.h \
118 include/vlc_video.h \
122 include/vout_synchro.h \
123 include/win32_specific.h \
126 HEADERS_include_built = \
127 include/vlc_symbols.h \
130 # Common dependencies for these 3 files : Makefile vlc-config
131 # Real specific dependencies :
133 #include/vlc_symbols.h: $(HEADERS_include)
134 #src/misc/modules_plugin.h: src/misc/modules_plugin.h.in $(HEADERS_include)
135 #src/misc/modules_builtin.h: src/misc/modules_builtin.h.in vlc-config
137 include/vlc_symbols.h:
138 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
140 # for some strange reasons (??) modules_plugin.h depends on vlc_symbols.h
141 # so we have to touch it :(
142 src/misc/modules_plugin.h: src/misc/modules_plugin.h.in
143 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
144 touch src/misc/modules_plugin.h
146 src/misc/modules_builtin.h: src/misc/modules_builtin.h.in
147 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
149 # These dependencies are mandatory
150 $(SOURCES): include/vlc_symbols.h
151 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
153 ###############################################################################
154 # Optional libintl - FIXME, bad dependencies
155 ###############################################################################
157 intl/libintl.a: FORCE
158 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
161 LIB_intl = intl/libintl.a
164 ###############################################################################
166 ###############################################################################
169 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
170 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
171 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
172 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
173 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
174 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
175 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
176 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
177 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
178 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
179 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
180 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
181 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
182 extras/MacOSX/Resources/a52.icns \
183 extras/MacOSX/Resources/aac.icns \
184 extras/MacOSX/Resources/asf.icns \
185 extras/MacOSX/Resources/asx.icns \
186 extras/MacOSX/Resources/avi.icns \
187 extras/MacOSX/Resources/bin.icns \
188 extras/MacOSX/Resources/cue.icns \
189 extras/MacOSX/Resources/dat.icns \
190 extras/MacOSX/Resources/divx.icns \
191 extras/MacOSX/Resources/dv.icns \
192 extras/MacOSX/Resources/generic.icns \
193 extras/MacOSX/Resources/m3u.icns \
194 extras/MacOSX/Resources/mov.icns \
195 extras/MacOSX/Resources/mp3.icns \
196 extras/MacOSX/Resources/mp4.icns \
197 extras/MacOSX/Resources/mpeg.icns \
198 extras/MacOSX/Resources/mpeg1.icns \
199 extras/MacOSX/Resources/mpeg2.icns \
200 extras/MacOSX/Resources/mpeg4.icns \
201 extras/MacOSX/Resources/mpg.icns \
202 extras/MacOSX/Resources/ogg.icns \
203 extras/MacOSX/Resources/ogm.icns \
204 extras/MacOSX/Resources/pls.icns \
205 extras/MacOSX/Resources/srt.icns \
206 extras/MacOSX/Resources/sub.icns \
207 extras/MacOSX/Resources/vlc.icns \
208 extras/MacOSX/Resources/vob.icns \
209 extras/MacOSX/Resources/wma.icns \
210 extras/MacOSX/Resources/wmv.icns \
211 extras/MacOSX/Resources/pause.png \
212 extras/MacOSX/Resources/pause_blue.png \
213 extras/MacOSX/Resources/play.png \
214 extras/MacOSX/Resources/play_blue.png \
215 extras/MacOSX/Resources/stop.png \
216 extras/MacOSX/Resources/stop_blue.png \
217 extras/MacOSX/Resources/display.png \
218 extras/MacOSX/Resources/display_slider.png \
219 extras/MacOSX/Resources/display_track.png \
220 extras/MacOSX/Resources/equalizerdrawer_active.png \
221 extras/MacOSX/Resources/equalizerdrawer_blue.png \
222 extras/MacOSX/Resources/fullscreen_active.png \
223 extras/MacOSX/Resources/fullscreen_blue.png \
224 extras/MacOSX/Resources/next_active.png \
225 extras/MacOSX/Resources/next_blue.png \
226 extras/MacOSX/Resources/playlistdrawer_active.png \
227 extras/MacOSX/Resources/playlistdrawer_blue.png \
228 extras/MacOSX/Resources/previous_active.png \
229 extras/MacOSX/Resources/previous_blue.png \
230 extras/MacOSX/Resources/skip_forward_active.png \
231 extras/MacOSX/Resources/skip_forward_blue.png \
232 extras/MacOSX/Resources/skip_previous_active.png \
233 extras/MacOSX/Resources/skip_previous_blue.png \
234 extras/MacOSX/Resources/volume_high.png \
235 extras/MacOSX/Resources/volume_low.png \
236 extras/MacOSX/Resources/volumeslider_blue.png \
237 extras/MacOSX/Resources/volumeslider_normal.png \
238 extras/MacOSX/Resources/volumetrack.png \
239 extras/MacOSX/Resources/about_bg.png \
240 extras/MacOSX/Resources/vlc.scriptSuite \
241 extras/MacOSX/Resources/vlc.scriptTerminology \
242 extras/MacOSX/Resources/README \
243 extras/MacOSX/vlc.pbproj/project.pbxproj \
244 extras/MacOSX/macosx-dmg \
247 ###############################################################################
248 # MS Visual Studio and eMbedded Visual Studio projects
249 ###############################################################################
254 msvc/plugins.dsp.in \
257 msvc/modules_builtin_msvc.h \
264 evc/modules_builtin_evc.h \
268 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
269 distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
271 ###############################################################################
273 ###############################################################################
275 bin_SCRIPTS = vlc-config
276 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
277 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
278 -cd $(top_builddir) && chmod 0755 $@
280 $(SOURCES): vlc-config
282 CLEANFILES = $(BUILT_SOURCES)
284 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
286 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
287 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
288 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
289 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
290 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
292 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
293 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
294 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
295 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
298 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
301 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
304 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
307 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
310 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
313 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
317 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
322 $(SOURCES_libvlc_beos) \
323 $(SOURCES_libvlc_darwin) \
324 $(SOURCES_libvlc_win32) \
325 $(SOURCES_libvlc_dirent) \
326 $(SOURCES_libvlc_getopt) \
329 SOURCES_libvlc_beos = \
330 src/misc/beos_specific.cpp \
333 SOURCES_libvlc_darwin = \
334 src/misc/darwin_specific.m \
337 SOURCES_libvlc_win32 = \
338 src/misc/win32_specific.c \
341 SOURCES_libvlc_dirent = \
342 src/extras/dirent.c \
345 SOURCES_libvlc_getopt = \
346 src/extras/getopt.c \
347 src/extras/getopt.h \
348 src/extras/getopt1.c \
351 SOURCES_libvlc_common = \
354 src/interface/interface.c \
355 src/interface/intf_eject.c \
356 src/playlist/playlist.c \
357 src/playlist/sort.c \
358 src/playlist/loadsave.c \
359 src/playlist/view.c \
360 src/playlist/item.c \
361 src/playlist/item-ext.c \
362 src/playlist/services_discovery.c \
365 src/input/control.c \
366 src/input/decoder.c \
370 src/input/input_internal.h \
372 src/input/mem_stream.c \
373 src/input/subtitles.c \
375 src/video_output/video_output.c \
376 src/video_output/vout_pictures.c \
377 src/video_output/vout_pictures.h \
378 src/video_output/video_text.c \
379 src/video_output/video_widgets.c \
380 src/video_output/vout_subpictures.c \
381 src/video_output/vout_synchro.c \
382 src/video_output/vout_intf.c \
383 src/audio_output/common.c \
384 src/audio_output/dec.c \
385 src/audio_output/filters.c \
386 src/audio_output/input.c \
387 src/audio_output/mixer.c \
388 src/audio_output/output.c \
389 src/audio_output/intf.c \
390 src/stream_output/stream_output.c \
391 src/stream_output/announce.c \
392 src/stream_output/sap.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 \
418 $(SOURCES_libvlc_common) \
419 $(OPT_SOURCES_libvlc_beos) \
420 $(OPT_SOURCES_libvlc_darwin) \
421 $(OPT_SOURCES_libvlc_win32) \
422 $(OPT_SOURCES_libvlc_dirent) \
423 $(OPT_SOURCES_libvlc_getopt) \
426 ###############################################################################
428 ###############################################################################
432 vlc_SOURCES = src/vlc.c
434 # Work around a bug in the arm-wince-pe linker
436 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
439 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
440 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
441 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
443 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
444 # old automake-1.5 bug (automake/279).
445 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
447 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
448 @rm -f $(top_builddir)/vlc$(EXEEXT)
449 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
450 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
451 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
452 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
456 noinst_DATA = vlc-bundle
458 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
459 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
460 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
461 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
462 if test -n "$$i" ; then \
463 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
464 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
467 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
468 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
469 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
470 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
473 for i in $(ALL_LINGUAS); do \
474 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
475 cp "$(top_builddir)/po/$$i.gmo" \
476 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
478 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
481 # Install the modules and the symlinks
483 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
484 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
485 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
487 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
488 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
489 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
492 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
493 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
494 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
497 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
498 rm -f "$(DESTDIR)$(bindir)/$$i" && \
499 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
503 # Create the MacOS X app
504 vlc_app_DATA = VLC.app
505 vlc_appdir = $(bindir)
506 # VLC-release.app is the old VLC.app target
508 @if test -e "$(top_builddir)/tmp"; then \
509 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
512 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
514 rm -Rf $(top_builddir)/VLC-release.app
515 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
516 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
517 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
519 mkdir -p $(top_builddir)/tmp/modules/audio_output
520 cp $(srcdir)/modules/audio_output/coreaudio.c \
521 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
522 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
553 cp "$(srcdir)/modules/gui/macosx/$$i" \
554 $(top_builddir)/tmp/modules/gui/macosx; \
556 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
557 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
558 $(top_builddir)/VLC-release.app
559 rm -Rf $(top_builddir)/tmp
560 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
561 $(INSTALL) $(top_builddir)/vlc \
562 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
563 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
564 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
565 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
567 then $(INSTALL) "$$i$(LIBEXT)" \
568 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
570 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
571 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
572 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
573 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
576 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
577 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
578 for i in $(srcdir)/share/http/* ; do \
579 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
581 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
582 for i in $(srcdir)/share/http/vlm/* ; do \
583 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
585 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
586 for i in $(srcdir)/share/http/admin/* ; do \
587 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
589 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
590 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
591 for i in $(ALL_LINGUAS); do \
592 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
593 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
594 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
595 ln -sf ../English.lproj/InfoPlist.strings \
596 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
597 ln -sf ../English.lproj/MainMenu.nib \
598 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
599 ln -sf ../English.lproj/vlc.scriptTerminology \
600 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
602 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
605 @if test -e "$(top_builddir)/tmp"; then \
606 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
609 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
611 rm -Rf $(top_builddir)/VLC.app
612 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
613 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
614 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
616 mkdir -p $(top_builddir)/tmp/modules/audio_output
617 cp $(srcdir)/modules/audio_output/coreaudio.c \
618 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
619 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
650 cp "$(srcdir)/modules/gui/macosx/$$i" \
651 $(top_builddir)/tmp/modules/gui/macosx; \
653 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
654 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
655 $(top_builddir)/VLC.app
656 rm -Rf $(top_builddir)/tmp
657 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
658 $(INSTALL) $(top_builddir)/vlc \
659 $(top_builddir)/VLC.app/Contents/MacOS/VLC
660 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
661 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
662 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
664 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
665 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
667 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
668 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
669 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
670 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
673 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
674 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
675 for i in $(ALL_LINGUAS); do \
676 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
677 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
678 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
679 ln -sf ../English.lproj/InfoPlist.strings \
680 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
681 ln -sf ../English.lproj/MainMenu.nib \
682 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
684 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
688 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
689 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
690 noinst_share_vlc_win32_rcdir = $(libdir)
691 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
692 $(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 $@
695 ###############################################################################
696 # Building specific source packages
697 ###############################################################################
700 $(remove_distdir_woody)
701 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
702 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
703 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
704 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
705 $(remove_distdir_woody)
707 remove_distdir_woody = \
708 { test ! -d $(PACKAGE)-woody-$(VERSION) \
709 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
710 -exec chmod u+w {} ';' \
711 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
713 ###############################################################################
714 # Building architecture-specific binary packages
715 ###############################################################################
717 # XXX: this rule is probably only useful to you if you have exactly
718 # the same setup as me. Contact sam@zoy.org if you need to use it.
721 # Check that tmp isn't in the way
722 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
723 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
726 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
729 # Copy relevant files
730 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
731 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
732 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
733 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
735 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
736 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
737 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
739 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
740 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
741 if test -n "$$i" ; then \
742 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
743 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
746 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
747 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
749 mkdir $(top_builddir)/vlc-${VERSION}/locale
750 for i in $(ALL_LINGUAS); do \
751 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
752 cp "$(srcdir)/po/$${i}.gmo" \
753 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
757 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
758 for i in $(srcdir)/share/skins2/fonts/*.*; do \
759 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
761 for i in $(srcdir)/share/skins2/*.*; do \
762 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
765 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
766 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
767 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
768 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
769 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
770 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
771 cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
772 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
773 cp $(srcdir)/share/http/admin/*.html \
774 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
775 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
776 cp $(srcdir)/share/http/admin/.access \
777 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
778 unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
779 cp $(srcdir)/share/http/vlm/*.html \
780 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
781 unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
783 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
785 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
787 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
788 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
789 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
792 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
794 cp $(top_builddir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
795 cp $(top_builddir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
796 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
798 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
799 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
801 # Rebase all those DLLs to speed up loading (need cygwin rebase)
802 if [ -x rebase ]; then \
803 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
806 package-win32-base-exe:
808 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
809 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
811 package-win32-base-exe-cygwin:
813 C:/Program\ Files/NSIS/makensis.exe \
814 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
816 package-win32-base-exe-linux:
818 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
820 package-win32-base-zip:
822 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
824 package-win32-exe: package-win32-base package-win32-base-exe
826 rm -Rf $(top_builddir)/vlc-${VERSION}
828 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
830 rm -Rf $(top_builddir)/vlc-${VERSION}
832 package-win32-zip: package-win32-base package-win32-base-zip
834 rm -Rf $(top_builddir)/vlc-${VERSION}
836 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
838 rm -Rf $(top_builddir)/vlc-${VERSION}
841 # Check that tmp isn't in the way
842 @if test -e $(srcdir)/tmp; then \
843 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
846 echo "OK." ; mkdir $(srcdir)/tmp ; \
849 # Copy relevant files
850 mkdir -p $(srcdir)/tmp/vlc ;
851 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
852 THANKS NEWS tmp/vlc/ ;
854 # Create debug package
855 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
856 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
857 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
858 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
859 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
860 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
862 # Create normal package
863 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
864 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
865 --strip-debug --strip-unneeded "{}" \; ;
866 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
867 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
868 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
869 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
870 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
873 rm -Rf $(srcdir)/tmp ;
876 # Check that tmp isn't in the way
877 @if test -e "$(top_builddir)/tmp"; then \
878 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
881 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
884 # Copy relevant files
885 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
886 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
889 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
892 rm -Rf $(top_builddir)/tmp
894 package-translations:
895 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
896 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
899 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
902 for i in $(ALL_LINGUAS); do \
903 cp "$(srcdir)/po/$${i}.po" \
904 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
907 cp "$(srcdir)/doc/translations.txt" \
908 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
910 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
911 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
912 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
913 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
914 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
915 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
916 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
917 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
919 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
920 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
922 ###############################################################################
924 ###############################################################################
925 clean: clean-stamp clean-recursive
927 rm -f stamp-builtin stamp-api
930 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
931 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
936 @if test ! -f $@; then printf "" > $@; fi
938 stamp-api: Makefile $(HEADERS_include) vlc-config src/misc/modules_plugin.h.in src/misc/modules_builtin.h.in
939 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
942 ###############################################################################
944 ###############################################################################