2007-05-20 10:38:20 +02:00
|
|
|
###############################################################################
|
2006-02-19 14:11:21 +01:00
|
|
|
# Automake targets and declarations
|
|
|
|
###############################################################################
|
|
|
|
|
2006-03-10 18:21:33 +01:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
2006-02-19 14:11:21 +01:00
|
|
|
NULL =
|
2007-04-14 17:19:03 +02:00
|
|
|
EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym
|
2006-02-19 14:11:21 +01:00
|
|
|
|
2007-10-30 00:35:47 +01:00
|
|
|
BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h
|
2008-02-08 17:13:58 +01:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2006-02-19 14:11:21 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Headers
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
pkgincludedir = $(includedir)/vlc
|
|
|
|
|
|
|
|
dist_pkginclude_HEADERS = \
|
|
|
|
../include/vlc/vlc.h \
|
|
|
|
../include/vlc/libvlc.h \
|
2007-05-20 01:11:39 +02:00
|
|
|
../include/vlc/libvlc_structures.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc/mediacontrol.h \
|
|
|
|
../include/vlc/mediacontrol_structures.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
noinst_HEADERS = $(HEADERS_include)
|
|
|
|
|
|
|
|
HEADERS_include = \
|
|
|
|
../include/iso_lang.h \
|
|
|
|
../include/main.h \
|
|
|
|
../include/mmx.h \
|
|
|
|
../include/vlc_access.h \
|
|
|
|
../include/vlc_acl.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_aout.h \
|
|
|
|
../include/vlc_arrays.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_bits.h \
|
|
|
|
../include/vlc_block.h \
|
|
|
|
../include/vlc_block_helper.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_charset.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_codec.h \
|
2007-10-02 20:43:23 +02:00
|
|
|
../include/vlc_codec_synchro.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_codecs.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_common.h \
|
|
|
|
../include/vlc_config.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_config_cat.h \
|
|
|
|
../include/vlc_configuration.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_demux.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_devices.h \
|
|
|
|
../include/vlc_epg.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_es.h \
|
|
|
|
../include/vlc_es_out.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_events.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_filter.h \
|
2008-01-27 18:05:30 +01:00
|
|
|
../include/vlc_fixups.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_httpd.h \
|
|
|
|
../include/vlc_image.h \
|
|
|
|
../include/vlc_input.h \
|
|
|
|
../include/vlc_interface.h \
|
2006-08-29 11:14:34 +02:00
|
|
|
../include/vlc_intf_strings.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_keys.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_md5.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_messages.h \
|
|
|
|
../include/vlc_meta.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_modules.h \
|
|
|
|
../include/vlc_modules_macros.h \
|
|
|
|
../include/vlc_mtime.h \
|
|
|
|
../include/vlc_network.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_objects.h \
|
|
|
|
../include/vlc_osd.h \
|
2008-01-24 18:34:52 +01:00
|
|
|
../include/vlc_pgpkey.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_playlist.h \
|
2008-02-07 23:51:30 +01:00
|
|
|
../include/vlc_plugin.h \
|
2007-09-01 17:32:45 +02:00
|
|
|
../include/vlc_rand.h \
|
2007-10-12 01:31:55 +02:00
|
|
|
../include/vlc_services_discovery.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_sout.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_stream.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_streaming.h \
|
2006-03-12 00:19:59 +01:00
|
|
|
../include/vlc_strings.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_threads.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_threads_funcs.h \
|
|
|
|
../include/vlc_tls.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_update.h \
|
2006-03-02 14:02:37 +01:00
|
|
|
../include/vlc_url.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_variables.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
../include/vlc_vlm.h \
|
|
|
|
../include/vlc_vod.h \
|
2007-08-17 18:33:59 +02:00
|
|
|
../include/vlc_vout.h \
|
|
|
|
../include/vlc_xml.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
$(NULL)
|
|
|
|
|
2007-08-15 19:15:56 +02:00
|
|
|
modules/builtin.h: modules/builtin.h.in ../vlc-config Makefile.am
|
|
|
|
rm -f -- "$@.tmp"
|
2007-09-03 18:01:40 +02:00
|
|
|
cat "$(srcdir)/modules/builtin.h.in" > "$@.tmp"
|
2007-08-15 19:15:56 +02:00
|
|
|
if !HAVE_PLUGINS
|
|
|
|
plugins="$$($(VLC_CONFIG) --list plugin)" ; \
|
|
|
|
test -n "$${plugins}" && \
|
|
|
|
for p in $${plugins}; do \
|
|
|
|
echo "int vlc_entry__$$p (module_t *);" ; \
|
|
|
|
done >> "$@.tmp"
|
|
|
|
endif
|
|
|
|
echo "#define ALLOCATE_ALL_BUILTINS() \\" >> "$@.tmp"
|
|
|
|
echo " do \\" >> "$@.tmp"
|
|
|
|
echo " { \\" >> "$@.tmp"
|
|
|
|
if !HAVE_PLUGINS
|
|
|
|
plugins="$$($(VLC_CONFIG) --list plugin)" ; \
|
|
|
|
test -n "$${plugins}" && \
|
|
|
|
for p in $${plugins}; do \
|
|
|
|
echo " ALLOCATE_BUILTIN($$p); \\" ; \
|
|
|
|
done >> "$@.tmp"
|
|
|
|
endif
|
|
|
|
echo ' } while( 0 );' >> "$@.tmp"
|
|
|
|
mv -f -- "$@.tmp" "$@"
|
2006-02-19 14:11:21 +01:00
|
|
|
|
2007-04-14 17:19:03 +02:00
|
|
|
modules/modules.c: modules/builtin.h
|
2006-02-19 14:11:21 +01:00
|
|
|
|
2007-10-30 00:35:47 +01:00
|
|
|
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
|
|
|
|
rm -f -- "$@.tmp"
|
|
|
|
mkdir -p -- ../include
|
|
|
|
echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
|
|
|
|
echo "static const char psz_license[] =" >> "$@.tmp"
|
|
|
|
cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
|
|
|
|
echo ";" >> "$@.tmp"
|
|
|
|
echo "static const char psz_thanks[] =" >> "$@.tmp"
|
|
|
|
grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
|
|
|
|
echo ";" >> "$@.tmp"
|
|
|
|
echo "static const char psz_authors[] =" >> "$@.tmp"
|
|
|
|
grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
|
|
|
|
echo ";" >> "$@.tmp"
|
|
|
|
mv -f -- "$@.tmp" "$@"
|
2008-02-25 18:32:54 +01:00
|
|
|
|
2006-02-19 14:11:21 +01:00
|
|
|
###############################################################################
|
|
|
|
# Building libvlc
|
|
|
|
###############################################################################
|
|
|
|
|
2007-09-01 00:40:32 +02:00
|
|
|
nice:
|
|
|
|
$(top_builddir)/compile
|
|
|
|
|
2007-07-19 18:32:23 +02:00
|
|
|
lib_LTLIBRARIES = libvlc.la libvlc-control.la
|
|
|
|
|
2007-09-16 15:05:50 +02:00
|
|
|
AM_LDFLAGS = -no-undefined -no-install
|
2007-07-19 18:32:23 +02:00
|
|
|
if HAVE_WIN32
|
2007-07-24 19:32:33 +02:00
|
|
|
AM_LDFLAGS += -avoid-version
|
2007-07-19 18:32:23 +02:00
|
|
|
endif
|
2006-02-19 14:11:21 +01:00
|
|
|
|
2006-02-23 20:41:36 +01:00
|
|
|
libvlc_la_SOURCES = $(SOURCES_libvlc)
|
2007-05-20 10:38:20 +02:00
|
|
|
nodist_libvlc_la_SOURCES = misc/revision.c
|
2008-02-10 13:34:34 +01:00
|
|
|
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
|
|
|
|
-DDATA_PATH=\"$(pkgdatadir)\"
|
2006-12-03 14:48:21 +01:00
|
|
|
libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
|
|
|
|
libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
|
2007-10-15 18:29:17 +02:00
|
|
|
libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
|
2007-07-31 15:00:20 +02:00
|
|
|
-version-info 1:0:0
|
|
|
|
if HAVE_COMPILER_EXPORT
|
|
|
|
libvlc_la_LDFLAGS += -export-dynamic
|
|
|
|
else
|
|
|
|
libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym
|
|
|
|
endif
|
2007-10-15 18:29:17 +02:00
|
|
|
libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
|
2007-07-31 15:00:20 +02:00
|
|
|
|
2006-11-22 14:04:00 +01:00
|
|
|
libvlc_la_DEPENDENCIES = libvlc.sym
|
2006-02-23 20:41:36 +01:00
|
|
|
|
2006-11-11 18:48:01 +01:00
|
|
|
libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
|
2006-11-11 13:30:16 +01:00
|
|
|
libvlc_control_la_LIBADD = libvlc.la
|
2006-12-03 14:48:21 +01:00
|
|
|
libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
|
2007-10-20 09:43:40 +02:00
|
|
|
libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0
|
2007-07-31 15:00:20 +02:00
|
|
|
if HAVE_COMPILER_EXPORT
|
|
|
|
libvlc_control_la_LDFLAGS += -export-dynamic
|
|
|
|
else
|
|
|
|
libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
|
|
|
|
endif
|
|
|
|
|
2007-07-19 18:32:23 +02:00
|
|
|
EXTRA_libvlc_la_SOURCES = \
|
|
|
|
$(SOURCES_libvlc_beos) \
|
|
|
|
$(SOURCES_libvlc_darwin) \
|
|
|
|
$(SOURCES_libvlc_win32) \
|
|
|
|
$(SOURCES_libvlc_dirent) \
|
|
|
|
$(SOURCES_libvlc_getopt) \
|
|
|
|
$(NULL)
|
2006-02-19 14:11:21 +01:00
|
|
|
if HAVE_BEOS
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
|
2006-02-19 14:11:21 +01:00
|
|
|
endif
|
|
|
|
if HAVE_DARWIN
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
|
2006-02-19 14:11:21 +01:00
|
|
|
endif
|
|
|
|
if HAVE_WIN32
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
|
2006-02-19 14:11:21 +01:00
|
|
|
endif
|
|
|
|
if HAVE_WINCE
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
|
2006-02-19 14:11:21 +01:00
|
|
|
endif
|
|
|
|
if BUILD_DIRENT
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
|
2006-02-19 14:11:21 +01:00
|
|
|
endif
|
|
|
|
if BUILD_GETOPT
|
2007-07-19 18:32:23 +02:00
|
|
|
libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
|
2006-02-23 22:41:05 +01:00
|
|
|
endif
|
|
|
|
|
2006-02-19 14:11:21 +01:00
|
|
|
SOURCES_libvlc_beos = \
|
|
|
|
misc/beos_specific.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc_darwin = \
|
2007-02-23 16:38:43 +01:00
|
|
|
misc/darwin_specific.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc_win32 = \
|
|
|
|
misc/win32_specific.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc_dirent = \
|
|
|
|
extras/dirent.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc_getopt = \
|
|
|
|
extras/getopt.c \
|
|
|
|
extras/getopt.h \
|
|
|
|
extras/getopt1.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc_common = \
|
|
|
|
libvlc.c \
|
2006-09-15 21:48:42 +02:00
|
|
|
libvlc-common.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
libvlc.h \
|
2006-12-01 21:13:46 +01:00
|
|
|
libvlc-module.c \
|
2006-11-26 15:20:34 +01:00
|
|
|
interface/interface.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
interface/interface.c \
|
|
|
|
interface/intf_eject.c \
|
|
|
|
interface/interaction.c \
|
2006-09-05 08:09:42 +02:00
|
|
|
playlist/playlist_internal.h \
|
2006-05-14 20:29:00 +02:00
|
|
|
playlist/thread.c \
|
|
|
|
playlist/control.c \
|
|
|
|
playlist/engine.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
playlist/sort.c \
|
|
|
|
playlist/loadsave.c \
|
2006-05-14 20:29:00 +02:00
|
|
|
playlist/tree.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
playlist/item.c \
|
2006-05-14 20:29:00 +02:00
|
|
|
playlist/search.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
playlist/services_discovery.c \
|
2006-05-14 20:29:00 +02:00
|
|
|
input/item.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
input/access.c \
|
|
|
|
input/clock.c \
|
|
|
|
input/control.c \
|
|
|
|
input/decoder.c \
|
2007-10-02 20:43:23 +02:00
|
|
|
input/decoder_synchro.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
input/demux.c \
|
|
|
|
input/es_out.c \
|
|
|
|
input/input.c \
|
2006-09-24 19:11:25 +02:00
|
|
|
input/meta.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
input/input_internal.h \
|
2007-03-11 20:40:05 +01:00
|
|
|
input/vlm_internal.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
input/stream.c \
|
|
|
|
input/mem_stream.c \
|
|
|
|
input/subtitles.c \
|
|
|
|
input/var.c \
|
|
|
|
video_output/video_output.c \
|
|
|
|
video_output/vout_pictures.c \
|
|
|
|
video_output/vout_pictures.h \
|
|
|
|
video_output/video_text.c \
|
|
|
|
video_output/video_widgets.c \
|
|
|
|
video_output/vout_subpictures.c \
|
|
|
|
video_output/vout_intf.c \
|
2006-11-26 15:20:34 +01:00
|
|
|
audio_output/aout_internal.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
audio_output/common.c \
|
|
|
|
audio_output/dec.c \
|
|
|
|
audio_output/filters.c \
|
2006-03-10 18:21:33 +01:00
|
|
|
audio_output/input.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
audio_output/mixer.c \
|
|
|
|
audio_output/output.c \
|
|
|
|
audio_output/intf.c \
|
|
|
|
stream_output/stream_output.c \
|
2006-11-26 15:20:34 +01:00
|
|
|
stream_output/stream_output.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
stream_output/announce.c \
|
2006-07-28 15:28:08 +02:00
|
|
|
stream_output/profiles.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
stream_output/sap.c \
|
2007-02-09 20:15:38 +01:00
|
|
|
stream_output/sdp.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
osd/osd.c \
|
|
|
|
osd/osd_text.c \
|
|
|
|
osd/osd_widgets.c \
|
|
|
|
network/acl.c \
|
|
|
|
network/getaddrinfo.c \
|
|
|
|
network/io.c \
|
2006-03-10 18:31:15 +01:00
|
|
|
network/error.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
network/tcp.c \
|
|
|
|
network/udp.c \
|
|
|
|
network/httpd.c \
|
|
|
|
network/rootwrap.c \
|
|
|
|
network/tls.c \
|
2007-02-12 18:27:59 +01:00
|
|
|
network/poll.c \
|
2006-11-22 21:00:19 +01:00
|
|
|
text/charset.c \
|
|
|
|
text/strings.c \
|
|
|
|
text/unicode.c \
|
2007-03-13 22:37:55 +01:00
|
|
|
text/wincp.c \
|
2006-11-22 21:00:19 +01:00
|
|
|
text/iso_lang.c \
|
|
|
|
text/iso-639_def.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/md5.c \
|
2007-09-01 17:32:45 +02:00
|
|
|
misc/rand.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/mtime.c \
|
|
|
|
misc/block.c \
|
2007-04-14 17:19:03 +02:00
|
|
|
modules/modules.h \
|
|
|
|
modules/modules.c \
|
2007-12-12 17:43:52 +01:00
|
|
|
modules/cache.c \
|
2007-04-14 18:15:37 +02:00
|
|
|
modules/entry.c \
|
2007-12-12 17:43:52 +01:00
|
|
|
modules/os.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/threads.c \
|
|
|
|
misc/stats.c \
|
|
|
|
misc/cpu.c \
|
2008-01-23 22:50:58 +01:00
|
|
|
config/configuration.h \
|
2007-12-09 20:33:51 +01:00
|
|
|
config/core.c \
|
|
|
|
config/chain.c \
|
|
|
|
config/file.c \
|
2008-02-07 23:51:30 +01:00
|
|
|
config/intf.c \
|
2007-12-09 20:33:51 +01:00
|
|
|
config/cmdline.c \
|
2007-08-13 21:08:15 +02:00
|
|
|
misc/events.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/image.c \
|
|
|
|
misc/messages.c \
|
|
|
|
misc/objects.c \
|
2006-11-26 15:20:34 +01:00
|
|
|
misc/variables.h \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/variables.c \
|
|
|
|
misc/error.c \
|
|
|
|
misc/update.c \
|
2006-12-03 15:23:40 +01:00
|
|
|
input/vlm.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
misc/xml.c \
|
2006-06-22 12:03:32 +02:00
|
|
|
misc/devices.c \
|
2006-02-19 14:11:21 +01:00
|
|
|
extras/libc.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SOURCES_libvlc = \
|
|
|
|
$(SOURCES_libvlc_common) \
|
|
|
|
$(OPT_SOURCES_libvlc_beos) \
|
|
|
|
$(OPT_SOURCES_libvlc_darwin) \
|
|
|
|
$(OPT_SOURCES_libvlc_win32) \
|
|
|
|
$(OPT_SOURCES_libvlc_dirent) \
|
|
|
|
$(OPT_SOURCES_libvlc_getopt) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-11-11 18:48:01 +01:00
|
|
|
SOURCES_libvlc_control = \
|
2006-11-26 15:20:34 +01:00
|
|
|
control/libvlc_internal.h \
|
2006-11-11 18:48:01 +01:00
|
|
|
control/core.c \
|
|
|
|
control/log.c \
|
|
|
|
control/playlist.c \
|
|
|
|
control/vlm.c \
|
|
|
|
control/video.c \
|
|
|
|
control/audio.c \
|
2007-08-20 03:30:14 +02:00
|
|
|
control/dynamic_media_list.c \
|
2007-05-20 19:29:55 +02:00
|
|
|
control/event.c \
|
2007-10-15 18:34:29 +02:00
|
|
|
control/flat_media_list_view.c \
|
2007-11-20 15:12:57 +01:00
|
|
|
control/hierarchical_media_list_view.c \
|
2007-12-30 02:17:15 +01:00
|
|
|
control/hierarchical_node_media_list_view.c \
|
2007-06-17 18:24:49 +02:00
|
|
|
control/media_descriptor.c \
|
2007-06-17 23:17:13 +02:00
|
|
|
control/media_instance.c \
|
2007-08-10 15:19:57 +02:00
|
|
|
control/media_list.c \
|
2007-09-05 20:12:06 +02:00
|
|
|
control/media_list_path.h \
|
2007-08-10 15:19:57 +02:00
|
|
|
control/media_list_player.c \
|
2007-09-20 11:08:03 +02:00
|
|
|
control/media_list_view.c \
|
2007-08-19 23:54:49 +02:00
|
|
|
control/media_library.c \
|
2006-11-26 15:20:34 +01:00
|
|
|
control/mediacontrol_internal.h \
|
2006-11-11 18:48:01 +01:00
|
|
|
control/mediacontrol_core.c \
|
|
|
|
control/mediacontrol_util.c \
|
2007-08-10 16:04:51 +02:00
|
|
|
control/mediacontrol_audio_video.c \
|
2007-08-17 10:10:42 +02:00
|
|
|
control/media_discoverer.c \
|
2007-08-28 04:41:46 +02:00
|
|
|
control/tag_query.c
|
2006-11-11 18:48:01 +01:00
|
|
|
|
2006-02-19 14:11:21 +01:00
|
|
|
###############################################################################
|
|
|
|
# Stamp rules
|
|
|
|
###############################################################################
|
2006-12-03 15:52:21 +01:00
|
|
|
|
2007-05-20 10:38:20 +02:00
|
|
|
misc/revision.c:
|
|
|
|
rm -f $@ $@.tmp
|
|
|
|
echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
|
|
|
|
REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
|
|
|
|
echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
|
|
|
|
mv -f $@.tmp $@
|
|
|
|
|
2008-02-25 18:32:54 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Building vlc
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
bin_PROGRAMS = vlc
|
|
|
|
#
|
|
|
|
vlc_SOURCES = vlc.c
|
2008-02-25 18:57:58 +01:00
|
|
|
vlc_DEPENDENCIES = $(DATA_win32_rc) libvlc.la
|
2008-02-25 18:32:54 +01:00
|
|
|
|
|
|
|
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
|
|
|
|
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
|
|
|
|
vlc_LDADD = $(DATA_win32_rc) libvlc.la $(LTLIBINTL) `$(VLC_CONFIG) -libs vlc`
|
|
|
|
|
|
|
|
vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES)
|
|
|
|
@rm -f vlc$(EXEEXT)
|
|
|
|
@case `$(VLC_CONFIG) --linkage vlc builtin` in \
|
|
|
|
c++) cmd="$(CXXLINK)" ;; \
|
|
|
|
objc) cmd="$(OBJCLINK)" ;; \
|
|
|
|
c|*) cmd="$(LINK)" ;; \
|
|
|
|
esac ; \
|
|
|
|
cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS)" ; \
|
|
|
|
echo $$cmd ; \
|
|
|
|
eval $$cmd
|
|
|
|
|
|
|
|
if HAVE_WIN32
|
|
|
|
DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
|
|
|
|
noinst_DATA = vlc_win32_rc.$(OBJEXT)
|
|
|
|
|
|
|
|
vlc_win32_rc.$(OBJEXT): $(top_srcdir)/share/vlc_win32_rc.rc
|
|
|
|
$(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 $@
|
|
|
|
endif
|
|
|
|
|
2006-03-08 12:32:34 +01:00
|
|
|
###############################################################################
|
|
|
|
# Unit/regression test
|
|
|
|
###############################################################################
|
2008-01-24 18:53:34 +01:00
|
|
|
check_PROGRAMS = \
|
2008-02-15 23:21:04 +01:00
|
|
|
test_dictionary \
|
2008-01-24 18:53:34 +01:00
|
|
|
test_i18n_atof \
|
|
|
|
test_url \
|
|
|
|
test_utf8 \
|
|
|
|
test_headers \
|
|
|
|
test_control \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-01-25 18:12:08 +01:00
|
|
|
dist_check_SCRIPTS = check_symbols
|
2007-12-12 18:46:15 +01:00
|
|
|
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
|
2006-03-08 12:32:34 +01:00
|
|
|
|
2006-12-03 14:48:21 +01:00
|
|
|
CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
|
2006-03-08 12:32:34 +01:00
|
|
|
|
2008-02-15 23:21:04 +01:00
|
|
|
test_dictionary_SOURCES = test/dictionary.c
|
|
|
|
test_dictionary_LDADD = libvlc.la
|
|
|
|
test_dictionary_CFLAGS = $(CFLAGS_tests)
|
|
|
|
|
2007-04-15 19:38:19 +02:00
|
|
|
test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
|
2008-02-01 11:43:20 +01:00
|
|
|
test_i18n_atof_LDADD = libvlc.la
|
2006-03-08 12:32:34 +01:00
|
|
|
test_i18n_atof_CFLAGS = $(CFLAGS_tests)
|
2006-04-09 20:33:22 +02:00
|
|
|
|
|
|
|
test_url_SOURCES = test/url.c
|
|
|
|
test_url_LDADD = libvlc.la
|
|
|
|
test_url_CFLAGS = $(CFLAGS_tests)
|
2006-12-15 15:16:08 +01:00
|
|
|
|
|
|
|
test_utf8_SOURCES = test/utf8.c
|
|
|
|
test_utf8_LDADD = libvlc.la
|
|
|
|
test_utf8_CFLAGS = $(CFLAGS_tests)
|
2006-03-08 12:32:34 +01:00
|
|
|
|
2008-01-24 18:53:34 +01:00
|
|
|
test_headers_SOURCES = test/headers.c
|
|
|
|
test_headers_CFLAGS = $(CFLAGS_tests)
|
|
|
|
|
2007-10-20 12:41:53 +02:00
|
|
|
test_control_SOURCES = control/testapi.c
|
|
|
|
test_control_LDADD = libvlc-control.la
|
|
|
|
test_control_CFLAGS = $(CFLAGS_tests)
|
|
|
|
|
2008-01-24 18:53:34 +01:00
|
|
|
check-local:
|
|
|
|
for h in `echo $(dist_pkginclude_HEADERS) $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
|
|
|
|
do \
|
|
|
|
echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
|
|
|
|
if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
|
|
|
|
then \
|
|
|
|
echo "Header $$h not included in test/headers.c!"; \
|
|
|
|
exit 1; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
|
2006-07-13 17:25:56 +02:00
|
|
|
FORCE:
|
2007-05-20 10:38:20 +02:00
|
|
|
@echo "Generated source cannot be phony. Go away." >&2
|
|
|
|
@exit 1
|
|
|
|
|
|
|
|
.PHONY: FORCE
|