vlc/src/Makefile.am

496 lines
12 KiB
Makefile
Raw Normal View History

###############################################################################
# Automake targets and declarations
###############################################################################
AUTOMAKE_OPTIONS = subdir-objects
2008-08-23 16:50:25 +02:00
SUBDIRS = . test
NULL =
EXTRA_DIST = extras/COPYING \
misc/beos_specific.cpp \
2008-06-01 22:13:13 +02:00
libvlc.pc.in \
2008-03-27 17:09:56 +01:00
vlc-plugin.pc.in \
libvlc.sym \
2008-05-15 18:40:44 +02:00
libvlccore.sym
BUILT_SOURCES = ../include/vlc_about.h
2008-02-08 17:13:58 +01:00
CLEANFILES = $(BUILT_SOURCES)
SUFFIXES = .pc.in .pc
###############################################################################
# Headers
###############################################################################
2008-05-01 22:00:05 +02:00
pluginsincludedir = $(pkgincludedir)/plugins
2008-05-01 22:00:46 +02:00
pkginclude_HEADERS = \
../include/vlc/vlc.h \
2008-03-26 21:52:11 +01:00
../include/vlc/deprecated.h \
../include/vlc/libvlc.h \
2008-03-26 21:52:11 +01:00
../include/vlc/libvlc_events.h \
../include/vlc/libvlc_media_list.h \
../include/vlc/libvlc_media.h \
../include/vlc/libvlc_media_discoverer.h \
../include/vlc/libvlc_media_library.h \
../include/vlc/libvlc_media_list.h \
../include/vlc/libvlc_media_list_player.h \
../include/vlc/libvlc_media_list_view.h \
../include/vlc/libvlc_media_player.h \
../include/vlc/libvlc_structures.h \
2008-03-26 21:52:11 +01:00
../include/vlc/libvlc_vlm.h \
../include/vlc/mediacontrol.h \
../include/vlc/mediacontrol_structures.h \
$(NULL)
2008-05-01 22:00:05 +02:00
pluginsinclude_HEADERS = \
2008-05-26 20:01:00 +02:00
../include/vlc_access.h \
../include/vlc_acl.h \
../include/vlc_aout.h \
2008-05-01 22:00:05 +02:00
../include/vlc_arrays.h \
../include/vlc_avcodec.h \
2008-05-26 20:01:00 +02:00
../include/vlc_bits.h \
../include/vlc_block.h \
../include/vlc_block_helper.h \
../include/vlc_charset.h \
../include/vlc_codec.h \
2008-05-01 22:00:05 +02:00
../include/vlc_common.h \
../include/vlc_config.h \
2008-05-26 20:01:00 +02:00
../include/vlc_config_cat.h \
2008-05-01 22:00:05 +02:00
../include/vlc_configuration.h \
../include/vlc_dialog.h \
../include/vlc_demux.h \
2008-05-26 20:01:00 +02:00
../include/vlc_epg.h \
../include/vlc_es.h \
2008-05-26 20:01:00 +02:00
../include/vlc_es_out.h \
../include/vlc_events.h \
../include/vlc_filter.h \
../include/vlc_fourcc.h \
2008-05-26 20:01:00 +02:00
../include/vlc_gcrypt.h \
../include/vlc_httpd.h \
../include/vlc_image.h \
../include/vlc_input.h \
../include/vlc_input_item.h \
2008-05-02 18:06:43 +02:00
../include/vlc_main.h \
2008-05-26 20:01:00 +02:00
../include/vlc_md5.h \
2008-05-01 22:00:05 +02:00
../include/vlc_messages.h \
2008-05-26 20:01:00 +02:00
../include/vlc_meta.h \
2008-05-01 22:00:05 +02:00
../include/vlc_modules.h \
../include/vlc_mtime.h \
../include/vlc_objects.h \
../include/vlc_picture.h \
../include/vlc_picture_fifo.h \
../include/vlc_picture_pool.h \
../include/vlc_playlist.h \
2008-05-08 17:55:18 +02:00
../include/vlc_plugin.h \
../include/vlc_rand.h \
../include/vlc_services_discovery.h \
../include/vlc_sout.h \
2008-05-26 20:01:00 +02:00
../include/vlc_stream.h \
../include/vlc_strings.h \
../include/vlc_subpicture.h \
2008-05-01 22:00:05 +02:00
../include/vlc_threads.h \
2008-05-26 20:01:00 +02:00
../include/vlc_url.h \
../include/vlc_variables.h \
../include/vlc_vlm.h \
../include/vlc_vout.h \
2008-06-21 10:31:09 +02:00
../include/vlc_window.h \
2008-05-26 20:01:00 +02:00
../include/vlc_xml.h \
2008-05-01 22:00:05 +02:00
$(NULL)
2008-05-01 22:00:05 +02:00
noinst_HEADERS = \
../include/mmx.h \
2007-10-02 20:43:23 +02:00
../include/vlc_codec_synchro.h \
../include/vlc_codecs.h \
../include/vlc_devices.h \
2008-01-27 18:05:30 +01:00
../include/vlc_fixups.h \
../include/vlc_interface.h \
../include/vlc_intf_strings.h \
../include/vlc_iso_lang.h \
../include/vlc_keys.h \
../include/vlc_network.h \
../include/vlc_osd.h \
2008-01-24 18:34:52 +01:00
../include/vlc_pgpkey.h \
../include/vlc_tls.h \
../include/vlc_update.h \
../include/vlc_vod.h \
$(NULL)
../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" "$@"
###############################################################################
# pkg-config integration
###############################################################################
pkgconfigdir = $(libdir)/pkgconfig
2008-06-01 22:13:13 +02:00
pkgconfig_DATA = libvlc.pc vlc-plugin.pc
CLEANFILES += $(pkgconfig_DATA)
.pc.in.pc: $(top_builddir)/config.status
cd "$(top_builddir)" && \
$(SHELL) ./config.status --file="src/$@"
###############################################################################
# Building libvlc
###############################################################################
2007-09-01 00:40:32 +02:00
nice:
$(top_builddir)/compile
2008-05-15 18:40:44 +02:00
lib_LTLIBRARIES = libvlccore.la libvlc.la
2007-07-19 18:32:23 +02:00
2008-08-02 08:33:36 +02:00
AM_LDFLAGS = -no-undefined
2007-07-19 18:32:23 +02:00
if HAVE_WIN32
AM_LDFLAGS += -avoid-version
2007-07-19 18:32:23 +02:00
endif
if HAVE_WINCE
AM_LDFLAGS += -avoid-version
endif
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES = $(SOURCES_libvlc)
2009-04-25 23:02:29 +02:00
libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
2008-05-08 17:55:18 +02:00
-DMODULE_STRING=\"main\" \
-DLOCALEDIR=\"$(localedir)\" \
2008-05-05 22:53:12 +02:00
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATA_PATH=\"$(vlcdatadir)\" \
-DLIBDIR=\"$(libdir)\" \
-DPLUGIN_PATH=\"$(vlclibdir)\"
libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
-no-undefined \
-export-symbols $(srcdir)/libvlccore.sym \
2009-05-16 12:47:52 +02:00
-version-info 3:0:0
libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
$(LTLIBINTL) ../compat/libcompat.la
2008-05-15 18:40:44 +02:00
libvlccore_la_DEPENDENCIES = libvlccore.sym
if HAVE_WIN32
libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
endif
libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
$(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
2008-05-15 18:40:44 +02:00
libvlc_la_SOURCES = $(SOURCES_libvlc_control)
libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
libvlccore.la ../compat/libcompat.la
2009-04-26 10:45:06 +02:00
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
-version-info 5:0:0 \
-export-symbols $(srcdir)/libvlc.sym
2008-05-31 17:38:59 +02:00
libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
if HAVE_WIN32
libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
endif
2008-05-15 18:40:44 +02:00
EXTRA_libvlccore_la_SOURCES = \
2007-07-19 18:32:23 +02:00
$(SOURCES_libvlc_beos) \
$(SOURCES_libvlc_darwin) \
$(SOURCES_libvlc_linux) \
2007-07-19 18:32:23 +02:00
$(SOURCES_libvlc_win32) \
$(SOURCES_libvlc_other) \
2007-07-19 18:32:23 +02:00
$(SOURCES_libvlc_dirent) \
$(SOURCES_libvlc_getopt) \
2008-10-22 19:24:07 +02:00
$(SOURCES_libvlc_httpd) \
$(SOURCES_libvlc_sout) \
$(SOURCES_libvlc_vlm) \
2007-07-19 18:32:23 +02:00
$(NULL)
if HAVE_BEOS
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
else
if HAVE_DARWIN
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
else
if HAVE_LINUX
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
else
if HAVE_WIN32
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
else
if HAVE_WINCE
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
else
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
endif
endif
endif
endif
endif
if BUILD_DIRENT
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
endif
if BUILD_GETOPT
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
endif
2008-10-22 19:24:07 +02:00
if BUILD_HTTPD
libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
endif
if ENABLE_SOUT
2008-05-15 18:40:44 +02:00
libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
if ENABLE_VLM
libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
endif
endif
SOURCES_libvlc_beos = \
misc/pthread.c \
$(NULL)
SOURCES_libvlc_darwin = \
misc/pthread.c \
misc/darwin_specific.c \
$(NULL)
SOURCES_libvlc_linux = \
misc/pthread.c \
misc/linux_specific.c \
$(NULL)
SOURCES_libvlc_win32 = \
misc/w32thread.c \
misc/win32_specific.c \
network/winsock.c \
$(NULL)
SOURCES_libvlc_other = \
misc/pthread.c \
misc/not_specific.c
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 \
libvlc.h \
libvlc-module.c \
2008-10-22 19:24:07 +02:00
missing.c \
version.c \
interface/dialog.c \
interface/interface.c \
interface/intf_eject.c \
playlist/playlist_internal.h \
playlist/art.c \
2009-01-07 18:44:07 +01:00
playlist/art.h \
playlist/thread.c \
playlist/control.c \
playlist/engine.c \
playlist/fetcher.c \
2009-01-07 18:44:07 +01:00
playlist/fetcher.h \
playlist/sort.c \
playlist/loadsave.c \
playlist/preparser.c \
2009-01-07 18:44:07 +01:00
playlist/preparser.h \
playlist/tree.c \
playlist/item.c \
playlist/search.c \
playlist/services_discovery.c \
input/item.c \
input/access.c \
input/clock.c \
input/control.c \
input/decoder.c \
2007-10-02 20:43:23 +02:00
input/decoder_synchro.c \
input/demux.c \
input/es_out.c \
input/es_out_timeshift.c \
input/event.c \
input/input.c \
input/meta.c \
2008-10-13 20:10:03 +02:00
input/access.h \
2008-10-13 19:52:33 +02:00
input/clock.h \
input/decoder.h \
2008-10-13 19:57:51 +02:00
input/demux.h \
2008-10-13 19:52:33 +02:00
input/es_out.h \
input/es_out_timeshift.h \
input/event.h \
input/item.h \
2008-10-13 20:20:54 +02:00
input/stream.h \
input/input_internal.h \
input/input_interface.h \
2007-03-11 20:40:05 +01:00
input/vlm_internal.h \
input/vlm_event.h \
2009-03-01 09:40:11 +01:00
input/resource.h \
input/resource.c \
input/stream.c \
2008-12-08 22:11:16 +01:00
input/stream_demux.c \
input/stream_filter.c \
2008-10-13 20:20:54 +02:00
input/stream_memory.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 \
2008-09-28 08:59:04 +02:00
video_output/vout_internal.h \
video_output/vout_control.h \
audio_output/aout_internal.h \
audio_output/common.c \
audio_output/dec.c \
audio_output/filters.c \
audio_output/input.c \
audio_output/mixer.c \
audio_output/output.c \
audio_output/intf.c \
osd/osd.c \
osd/osd_text.c \
osd/osd_widgets.c \
network/acl.c \
network/getaddrinfo.c \
network/io.c \
network/tcp.c \
network/udp.c \
2008-06-06 17:14:56 +02:00
network/rootbind.c \
network/tls.c \
2007-02-12 18:27:59 +01:00
network/poll.c \
text/charset.c \
text/strings.c \
text/unicode.c \
text/filesystem.c \
text/wincp.c \
text/iso_lang.c \
text/iso-639_def.h \
misc/md5.c \
2007-09-01 17:32:45 +02:00
misc/rand.c \
misc/mtime.c \
misc/block.c \
misc/fourcc.c \
misc/es_format.c \
modules/modules.h \
modules/modules.c \
2007-12-12 17:43:52 +01:00
modules/cache.c \
modules/entry.c \
2007-12-12 17:43:52 +01:00
modules/os.c \
misc/threads.c \
misc/stats.c \
misc/cpu.c \
misc/action.c \
config/configuration.h \
2007-12-09 20:33:51 +01:00
config/core.c \
config/dirs.c \
2007-12-09 20:33:51 +01:00
config/chain.c \
config/file.c \
config/intf.c \
2007-12-09 20:33:51 +01:00
config/cmdline.c \
misc/events.c \
misc/image.c \
misc/messages.c \
misc/objects.c \
misc/variables.h \
misc/variables.c \
misc/error.c \
2008-06-01 15:53:45 +02:00
misc/update.h \
misc/update.c \
misc/xml.c \
misc/devices.c \
extras/libc.c \
misc/filter_chain.c \
$(NULL)
2008-10-22 19:24:07 +02:00
SOURCES_libvlc_httpd = \
network/httpd.c \
$(NULL)
SOURCES_libvlc_sout = \
stream_output/stream_output.c \
stream_output/stream_output.h \
stream_output/announce.c \
stream_output/sap.c \
stream_output/sdp.c \
$(NULL)
SOURCES_libvlc_vlm = \
input/vlm.c \
input/vlm_event.c \
input/vlmshell.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)
SOURCES_libvlc_control = \
control/libvlc_internal.h \
control/event_internal.h \
control/media_internal.h \
control/media_list_internal.h \
control/media_list_view_internal.h \
control/media_player_internal.h \
control/core.c \
control/log.c \
control/playlist.c \
control/vlm.c \
control/video.c \
control/audio.c \
2007-05-20 19:29:55 +02:00
control/event.c \
control/event_async.c \
control/flat_media_list_view.c \
control/hierarchical_media_list_view.c \
control/hierarchical_node_media_list_view.c \
control/media.c \
control/media_player.c \
control/media_list.c \
control/media_list_path.h \
control/media_list_player.c \
control/media_list_view.c \
control/media_library.c \
control/mediacontrol_internal.h \
control/mediacontrol_core.c \
control/mediacontrol_util.c \
2007-08-10 16:04:51 +02:00
control/mediacontrol_audio_video.c \
2008-03-25 23:24:38 +01:00
control/media_discoverer.c
2006-03-08 12:32:34 +01:00
###############################################################################
# Unit/regression test
###############################################################################
2008-01-24 18:53:34 +01:00
dist_check_SCRIPTS = check_symbols check_headers
2008-08-23 16:50:25 +02:00
TESTS = check_symbols
2008-01-24 18:53:34 +01:00
check-local:
2008-05-01 22:00:46 +02:00
for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
2008-01-24 18:53:34 +01:00
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
2008-05-01 22:00:46 +02:00
$(srcdir)/check_headers $(pkginclude_HEADERS)
2008-05-26 19:24:45 +02:00
$(srcdir)/check_headers $(pluginsinclude_HEADERS)
2008-01-24 18:53:34 +01:00
FORCE:
@echo "Generated source cannot be phony. Go away." >&2
@exit 1
.PHONY: FORCE