1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
13 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
14 CLEANFILES = $(BUILT_SOURCES)
16 SUFFIXES = .pc.in .pc .rc.in .rc
18 ###############################################################################
20 ###############################################################################
22 pluginsincludedir = $(pkgincludedir)/plugins
24 pluginsinclude_HEADERS = \
25 ../include/vlc_access.h \
26 ../include/vlc_actions.h \
27 ../include/vlc_addons.h \
28 ../include/vlc_aout.h \
29 ../include/vlc_aout_volume.h \
30 ../include/vlc_arrays.h \
31 ../include/vlc_atomic.h \
32 ../include/vlc_avcodec.h \
33 ../include/vlc_bits.h \
34 ../include/vlc_block.h \
35 ../include/vlc_block_helper.h \
36 ../include/vlc_boxes.h \
37 ../include/vlc_charset.h \
38 ../include/vlc_codec.h \
39 ../include/vlc_common.h \
40 ../include/vlc_config.h \
41 ../include/vlc_config_cat.h \
42 ../include/vlc_configuration.h \
43 ../include/vlc_cpu.h \
44 ../include/vlc_cxx_helpers.hpp \
45 ../include/vlc_decoder.h \
46 ../include/vlc_demux.h \
47 ../include/vlc_dialog.h \
48 ../include/vlc_epg.h \
50 ../include/vlc_es_out.h \
51 ../include/vlc_events.h \
52 ../include/vlc_executor.h \
53 ../include/vlc_filter.h \
54 ../include/vlc_fingerprinter.h \
55 ../include/vlc_fourcc.h \
57 ../include/vlc_gcrypt.h \
58 ../include/vlc_hash.h \
59 ../include/vlc_http.h \
60 ../include/vlc_httpd.h \
61 ../include/vlc_image.h \
62 ../include/vlc_inhibit.h \
63 ../include/vlc_input.h \
64 ../include/vlc_input_item.h \
65 ../include/vlc_interface.h \
66 ../include/vlc_interrupt.h \
67 ../include/vlc_keystore.h \
68 ../include/vlc_list.h \
69 ../include/vlc_media_library.h \
70 ../include/vlc_media_source.h \
71 ../include/vlc_memstream.h \
72 ../include/vlc_messages.h \
73 ../include/vlc_meta.h \
74 ../include/vlc_meta_fetcher.h \
75 ../include/vlc_mime.h \
76 ../include/vlc_modules.h \
77 ../include/vlc_mouse.h \
78 ../include/vlc_network.h \
79 ../include/vlc_objects.h \
80 ../include/vlc_opengl.h \
81 ../include/vlc_picture.h \
82 ../include/vlc_picture_fifo.h \
83 ../include/vlc_picture_pool.h \
84 ../include/vlc_player.h \
85 ../include/vlc_playlist.h \
86 ../include/vlc_playlist_export.h \
87 ../include/vlc_plugin.h \
88 ../include/vlc_probe.h \
89 ../include/vlc_queue.h \
90 ../include/vlc_rand.h \
91 ../include/vlc_renderer_discovery.h \
92 ../include/vlc_services_discovery.h \
93 ../include/vlc_sort.h \
94 ../include/vlc_sout.h \
95 ../include/vlc_spawn.h \
96 ../include/vlc_spu.h \
97 ../include/vlc_stream.h \
98 ../include/vlc_stream_extractor.h \
99 ../include/vlc_strings.h \
100 ../include/vlc_subpicture.h \
101 ../include/vlc_text_style.h \
102 ../include/vlc_threads.h \
103 ../include/vlc_thumbnailer.h \
104 ../include/vlc_tick.h \
105 ../include/vlc_timestamp_helper.h \
106 ../include/vlc_tls.h \
107 ../include/vlc_url.h \
108 ../include/vlc_variables.h \
109 ../include/vlc_vector.h \
110 ../include/vlc_video_splitter.h \
111 ../include/vlc_viewpoint.h \
112 ../include/vlc_vlm.h \
113 ../include/vlc_vout.h \
114 ../include/vlc_vout_display.h \
115 ../include/vlc_vout_osd.h \
116 ../include/vlc_vout_window.h \
117 ../include/vlc_xlib.h \
118 ../include/vlc_xml.h \
120 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
123 ../include/vlc_codecs.h \
124 ../include/vlc_extensions.h \
125 ../include/vlc_fixups.h \
126 ../include/vlc_intf_strings.h \
127 ../include/vlc_iso_lang.h \
128 ../include/vlc_pgpkey.h \
129 ../include/vlc_update.h \
132 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
133 $(AM_V_at)rm -f -- "$@.tmp"
134 $(AM_V_at)mkdir -p -- ../include
135 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
136 echo "static const char psz_license[] =" && \
137 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
139 echo "static const char psz_thanks[] =" && \
140 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
141 "$(top_srcdir)/THANKS" && \
143 echo "static const char psz_authors[] =" && \
144 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
145 "$(top_srcdir)/AUTHORS" && \
146 echo ";") >> "$@.tmp"
147 $(AM_V_at)mv -f -- "$@.tmp" "$@"
149 ###############################################################################
150 # pkg-config integration
151 ###############################################################################
153 pkgconfigdir = $(libdir)/pkgconfig
154 pkgconfig_DATA = vlc-plugin.pc
155 CLEANFILES += $(pkgconfig_DATA)
157 vlc-plugin.pc: vlc-plugin.pc.in $(top_builddir)/config.status
158 $(AM_V_GEN)cd "$(top_builddir)" && \
159 $(SHELL) ./config.status --file="src/$@"
161 ##############################################################################
162 # Windows resource files
163 ##############################################################################
166 noinst_DATA = libvlc_win32_rc.rc
168 EXTRA_DIST += libvlc_win32_rc.rc.in
170 libvlc_win32_rc.rc: libvlc_win32_rc.rc.in $(top_builddir)/config.status
171 $(AM_V_GEN)cd "$(top_builddir)" && \
172 $(SHELL) ./config.status --file="src/$@"
174 ###############################################################################
176 ###############################################################################
178 lib_LTLIBRARIES = libvlccore.la
180 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
181 -DMODULE_STRING=\"core\" \
182 -DSYSDATADIR=\"$(datadir)\" \
183 -DLIBDIR=\"$(libdir)\" \
184 -DLIBEXECDIR=\"$(libexecdir)\" \
185 -DLOCALEDIR=\"$(localedir)\" \
186 -DPKGDATADIR=\"$(pkgdatadir)\" \
187 -DPKGLIBDIR=\"$(pkglibdir)\" \
188 -DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
189 AM_CFLAGS = $(CFLAGS_libvlccore)
190 if HAVE_DYNAMIC_PLUGINS
191 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
194 AM_CPPFLAGS += -DHAVE_DBUS
195 AM_CFLAGS += $(DBUS_CFLAGS)
198 libvlccore_la_SOURCES = \
205 config/configuration.h \
213 config/vlc_getopt.h \
215 media_source/media_source.c \
216 media_source/media_source.h \
217 media_source/media_tree.c \
218 media_source/media_tree.h \
224 modules/textdomain.c \
226 interface/interface.c \
238 playlist/playlist.c \
239 playlist/playlist.h \
240 playlist/preparse.c \
241 playlist/preparse.h \
242 playlist/randomizer.c \
243 playlist/randomizer.h \
249 preparser/fetcher.c \
250 preparser/fetcher.h \
251 preparser/preparser.c \
252 preparser/preparser.h \
255 clock/clock_internal.c \
256 clock/input_clock.c \
259 input/decoder_helpers.c \
261 input/demux_chained.c \
263 input/es_out_source.c \
264 input/es_out_timeshift.c \
280 clock/input_clock.h \
282 clock/clock_internal.h \
288 input/mrl_helpers.h \
290 input/input_internal.h \
291 input/input_interface.h \
292 input/vlm_internal.h \
296 input/services_discovery.c \
299 input/stream_fifo.c \
300 input/stream_extractor.c \
301 input/stream_filter.c \
302 input/stream_memory.c \
304 input/thumbnailer.c \
306 audio_output/aout_internal.h \
307 audio_output/common.c \
309 audio_output/filters.c \
310 audio_output/meter.c \
311 audio_output/output.c \
312 audio_output/volume.c \
313 video_output/chrono.h \
314 video_output/control.c \
315 video_output/control.h \
316 video_output/display.c \
317 video_output/display.h \
318 video_output/inhibit.c \
319 video_output/inhibit.h \
320 video_output/interlacing.c \
321 video_output/snapshot.c \
322 video_output/snapshot.h \
323 video_output/statistic.h \
324 video_output/video_output.c \
325 video_output/video_text.c \
326 video_output/video_epg.c \
327 video_output/video_widgets.c \
328 video_output/vout_subpictures.c \
329 video_output/vout_spuregion_helper.h \
330 video_output/vout_wrapper.h \
331 video_output/window.c \
332 video_output/window.h \
333 video_output/opengl.c \
334 video_output/vout_intf.c \
335 video_output/vout_internal.h \
336 video_output/vout_private.h \
337 video_output/vout_wrapper.c \
338 network/getaddrinfo.c \
339 network/http_auth.c \
368 misc/picture_fifo.c \
369 misc/picture_pool.c \
373 misc/renderer_discovery.c \
390 misc/filter_chain.c \
392 misc/fingerprinter.c \
397 misc/medialibrary.c \
399 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
400 ../compat/libcompat.la \
401 $(LTLIBINTL) $(LTLIBICONV) \
402 $(IDN_LIBS) $(SOCKET_LIBS) $(ATOMIC_LIB) $(LIBRT) $(LIBDL) $(LIBM)
405 libvlccore_la_SOURCES += \
415 libvlccore_la_SOURCES += posix/timer.c win32/dirs-uap.c
417 libvlccore_la_SOURCES += win32/timer.c win32/dirs.c
422 libvlccore_la_SOURCES += \
435 libvlccore_la_SOURCES += \
446 libvlccore_la_SOURCES += \
449 libvlccore_objc_la_SOURCES = \
452 noinst_LTLIBRARIES = libvlccore_objc.la
456 libvlccore_la_SOURCES += \
461 libvlccore_la_SOURCES += \
466 libvlccore_la_SOURCES += \
469 libvlccore_la_SOURCES += \
479 libvlccore_la_SOURCES += \
485 libvlccore_la_SOURCES += posix/wait.c
488 libvlccore_la_SOURCES += \
492 libvlccore_la_SOURCES += \
500 libvlccore_la_SOURCES += \
502 libvlccore_la_LIBADD += -lanl
504 libvlccore_la_SOURCES += \
514 libvlccore_la_SOURCES += \
515 stream_output/sap.c \
516 stream_output/stream_output.c stream_output/stream_output.h
518 libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
523 libvlccore_la_SOURCES += \
524 misc/update.h misc/update.c \
526 AM_CPPFLAGS += -DUPDATE_CHECK
527 AM_CFLAGS += $(GCRYPT_CFLAGS)
528 libvlccore_la_LIBADD += $(GCRYPT_LIBS)
531 libvlccore_la_LDFLAGS = \
532 $(LDFLAGS_libvlccore) \
534 -export-symbols $(srcdir)/libvlccore.sym \
536 libvlccore_la_DEPENDENCIES = libvlccore.sym
538 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
539 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
542 libvlccore_la_LDFLAGS += -avoid-version
545 libvlccore_la_LIBADD += $(DBUS_LIBS)
548 $(libvlccore_la_OBJECTS): libvlccore_objc.la
549 libvlccore_objc_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
550 libvlccore_objc_la_LDFLAGS = -static
551 libvlccore_la_LIBADD += libvlccore_objc.la
552 libvlccore_la_LDFLAGS += -Wl,-framework,Foundation -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib -Wl,-U,_vlc_static_modules
555 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
556 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
559 BUILT_SOURCES += fourcc_tables.h
560 EXTRA_DIST += misc/fourcc_gen.c
561 MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
563 fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
564 $(AM_V_at)rm -f -- $@
565 $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
567 fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
568 $(AM_V_at)rm -f -- $@.tmp
569 $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
570 $(AM_V_at)mv -f -- $@.tmp $@
572 # Unit/regression tests
592 test_shared_data_ptr \
599 TESTS = $(check_PROGRAMS) check_symbols
601 test_block_SOURCES = test/block_test.c
602 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
603 test_block_DEPENDENCIES =
605 test_dictionary_SOURCES = test/dictionary.c
606 test_executor_SOURCES = test/executor.c
607 test_i18n_atof_SOURCES = test/i18n_atof.c
608 test_interrupt_SOURCES = test/interrupt.c
609 test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore)
610 test_list_SOURCES = test/list.c
611 test_md5_SOURCES = test/md5.c
612 test_picture_pool_SOURCES = test/picture_pool.c
613 test_sort_SOURCES = test/sort.c
614 test_timer_SOURCES = test/timer.c
615 test_url_SOURCES = test/url.c
616 test_utf8_SOURCES = test/utf8.c
617 test_xmlent_SOURCES = test/xmlent.c
618 test_headers_SOURCES = test/headers.c
619 test_mrl_helpers_SOURCES = test/mrl_helpers.c
620 test_arrays_SOURCES = test/arrays.c
621 test_vector_SOURCES = test/vector.c
622 test_shared_data_ptr_SOURCES = test/shared_data_ptr.cpp
623 test_extensions_SOURCES = test/extensions.c
624 test_playlist_SOURCES = playlist/test.c \
630 playlist/playlist.c \
631 playlist/preparse.c \
632 playlist/randomizer.c \
636 test_playlist_CFLAGS = -DTEST_PLAYLIST
637 test_randomizer_SOURCES = playlist/randomizer.c
638 test_randomizer_CFLAGS = -DTEST_RANDOMIZER
639 test_media_source_LDADD = $(LDADD) $(LIBS_libvlccore)
640 test_media_source_CFLAGS = -DTEST_MEDIA_SOURCE
641 test_media_source_SOURCES = media_source/test.c \
642 media_source/media_source.c \
643 media_source/media_tree.c
644 test_thread_SOURCES = test/thread.c
646 AM_LDFLAGS = -no-install
647 LDADD = libvlccore.la \
648 ../compat/libcompat.la
650 ###############################################################################
652 ###############################################################################
654 BUILT_SOURCES += stamp-revision
655 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
657 $(srcdir)/revision.c: $(srcdir)/revision.txt
658 $(AM_V_at)rm -f -- $@
659 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
662 $(srcdir)/revision.txt:
663 $(AM_V_at)$(MAKE) stamp-revision
667 $(AM_V_at)rm -f -- revision.tmp
668 $(AM_V_GEN)if ! git \
669 -C "$(top_srcdir)" describe \
670 --tags --long --match '?.*.*' --always; then \
671 cat $(srcdir)/revision.txt ; \
673 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
674 rm -f -- revision.tmp; \
676 mv -f -- revision.tmp $(srcdir)/revision.txt; \
680 ###############################################################################
681 # Unit/regression test
682 ###############################################################################
684 dist_check_SCRIPTS = check_headers check_symbols
687 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
689 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
690 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
692 echo "Header $$h not included in test/headers.c!"; \
696 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
699 @echo "Generated source cannot be phony. Go away." >&2