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_addons.h \
27 ../include/vlc_aout.h \
28 ../include/vlc_aout_volume.h \
29 ../include/vlc_arrays.h \
30 ../include/vlc_art_finder.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_charset.h \
37 ../include/vlc_codec.h \
38 ../include/vlc_common.h \
39 ../include/vlc_config.h \
40 ../include/vlc_config_cat.h \
41 ../include/vlc_configuration.h \
42 ../include/vlc_cpu.h \
43 ../include/vlc_dialog.h \
44 ../include/vlc_demux.h \
45 ../include/vlc_epg.h \
47 ../include/vlc_es_out.h \
48 ../include/vlc_events.h \
49 ../include/vlc_filter.h \
50 ../include/vlc_fourcc.h \
52 ../include/vlc_gcrypt.h \
53 ../include/vlc_opengl.h \
54 ../include/vlc_http.h \
55 ../include/vlc_httpd.h \
56 ../include/vlc_image.h \
57 ../include/vlc_inhibit.h \
58 ../include/vlc_input.h \
59 ../include/vlc_input_item.h \
60 ../include/vlc_keys.h \
61 ../include/vlc_main.h \
62 ../include/vlc_md5.h \
63 ../include/vlc_messages.h \
64 ../include/vlc_meta.h \
65 ../include/vlc_media_library.h \
66 ../include/vlc_mime.h \
67 ../include/vlc_modules.h \
68 ../include/vlc_mouse.h \
69 ../include/vlc_mtime.h \
70 ../include/vlc_network.h \
71 ../include/vlc_objects.h \
72 ../include/vlc_picture.h \
73 ../include/vlc_picture_fifo.h \
74 ../include/vlc_picture_pool.h \
75 ../include/vlc_playlist.h \
76 ../include/vlc_plugin.h \
77 ../include/vlc_probe.h \
78 ../include/vlc_rand.h \
79 ../include/vlc_services_discovery.h \
80 ../include/vlc_fingerprinter.h \
81 ../include/vlc_sout.h \
82 ../include/vlc_spu.h \
83 ../include/vlc_stream.h \
84 ../include/vlc_strings.h \
85 ../include/vlc_subpicture.h \
86 ../include/vlc_text_style.h \
87 ../include/vlc_threads.h \
88 ../include/vlc_tls.h \
89 ../include/vlc_url.h \
90 ../include/vlc_variables.h \
91 ../include/vlc_vlm.h \
92 ../include/vlc_video_splitter.h \
93 ../include/vlc_vout.h \
94 ../include/vlc_vout_display.h \
95 ../include/vlc_vout_osd.h \
96 ../include/vlc_vout_window.h \
97 ../include/vlc_xml.h \
98 ../include/vlc_xlib.h \
100 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
103 ../include/vlc_codec_synchro.h \
104 ../include/vlc_codecs.h \
105 ../include/vlc_extensions.h \
106 ../include/vlc_fixups.h \
107 ../include/vlc_interface.h \
108 ../include/vlc_intf_strings.h \
109 ../include/vlc_iso_lang.h \
110 ../include/vlc_memory.h \
111 ../include/vlc_pgpkey.h \
112 ../include/vlc_update.h \
113 ../include/vlc_vod.h \
114 ../include/vlc_vout_wrapper.h \
115 ../include/vlc_windows_interfaces.h \
118 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
119 $(AM_V_at)rm -f -- "$@.tmp"
120 $(AM_V_at)mkdir -p -- ../include
121 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
122 echo "static const char psz_license[] =" && \
123 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
125 echo "static const char psz_thanks[] =" && \
126 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
127 "$(top_srcdir)/THANKS" && \
129 echo "static const char psz_authors[] =" && \
130 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
131 "$(top_srcdir)/AUTHORS" && \
132 echo ";") >> "$@.tmp"
133 $(AM_V_at)mv -f -- "$@.tmp" "$@"
135 ###############################################################################
136 # pkg-config integration
137 ###############################################################################
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = vlc-plugin.pc
141 CLEANFILES += $(pkgconfig_DATA)
143 .pc.in.pc: $(top_builddir)/config.status
144 $(AM_V_GEN)cd "$(top_builddir)" && \
145 $(SHELL) ./config.status --file="src/$@"
147 ##############################################################################
148 # Windows resource files
149 ##############################################################################
152 noinst_DATA = libvlc_win32_rc.rc
154 EXTRA_DIST += libvlc_win32_rc.rc.in
156 .rc.in.rc: $(top_builddir)/config.status
157 cd "$(top_builddir)" && \
158 $(SHELL) ./config.status --file="src/$@"
160 ###############################################################################
162 ###############################################################################
164 lib_LTLIBRARIES = libvlccore.la
166 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
167 -DMODULE_STRING=\"core\" \
168 -DLOCALEDIR=\"$(localedir)\" \
169 -DPKGDATADIR=\"$(vlcdatadir)\" \
170 -DPKGLIBDIR=\"$(vlclibdir)\"
171 AM_CFLAGS = $(CFLAGS_libvlccore)
172 if HAVE_DYNAMIC_PLUGINS
173 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
176 AM_CPPFLAGS += -DHAVE_DBUS
177 AM_CFLAGS += $(DBUS_CFLAGS)
180 libvlccore_la_SOURCES = $(SOURCES_libvlc)
181 libvlccore_la_LDFLAGS = \
182 $(LDFLAGS_libvlccore) \
184 -export-symbols $(srcdir)/libvlccore.sym \
186 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
187 ../compat/libcompat.la \
188 $(LTLIBINTL) $(LTLIBICONV) \
189 $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
190 libvlccore_la_DEPENDENCIES = libvlccore.sym
192 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
193 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
196 libvlccore_la_LIBADD += $(DBUS_LIBS)
199 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
200 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
202 EXTRA_libvlccore_la_SOURCES = \
203 $(SOURCES_libvlc_darwin) \
204 $(SOURCES_libvlc_android) \
205 $(SOURCES_libvlc_linux) \
206 $(SOURCES_libvlc_win32) \
207 $(SOURCES_libvlc_os2) \
208 $(SOURCES_libvlc_other) \
209 $(SOURCES_libvlc_httpd) \
210 $(SOURCES_libvlc_sout) \
211 $(SOURCES_libvlc_vlm) \
214 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
217 libvlccore_la_SOURCES += $(SOURCES_libvlc_android)
220 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
223 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
226 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
229 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
231 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
239 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
242 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
244 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
248 SOURCES_libvlc_darwin = \
260 SOURCES_libvlc_android = \
269 posix/linux_specific.c \
274 SOURCES_libvlc_linux = \
283 posix/linux_specific.c \
288 SOURCES_libvlc_win32 = \
300 SOURCES_libvlc_symbian = \
307 SOURCES_libvlc_os2 = \
319 SOURCES_libvlc_other = \
331 SOURCES_libvlc_common = \
339 interface/interface.c \
340 playlist/playlist_internal.h \
350 playlist/loadsave.c \
351 playlist/preparser.c \
352 playlist/preparser.h \
356 playlist/services_discovery.c \
362 input/decoder_synchro.c \
365 input/es_out_timeshift.c \
375 input/es_out_timeshift.h \
379 input/input_internal.h \
380 input/input_interface.h \
381 input/vlm_internal.h \
387 input/stream_demux.c \
388 input/stream_filter.c \
389 input/stream_memory.c \
392 video_output/chrono.h \
393 video_output/control.c \
394 video_output/control.h \
395 video_output/display.c \
396 video_output/display.h \
397 video_output/event.h \
398 video_output/inhibit.c \
399 video_output/inhibit.h \
400 video_output/interlacing.c \
401 video_output/interlacing.h \
402 video_output/snapshot.c \
403 video_output/snapshot.h \
404 video_output/statistic.h \
405 video_output/video_output.c \
406 video_output/video_text.c \
407 video_output/video_epg.c \
408 video_output/video_widgets.c \
409 video_output/vout_subpictures.c \
410 video_output/window.c \
411 video_output/opengl.c \
412 video_output/vout_intf.c \
413 video_output/vout_internal.h \
414 video_output/vout_control.h \
415 video_output/vout_wrapper.c \
416 audio_output/aout_internal.h \
417 audio_output/common.c \
419 audio_output/filters.c \
420 audio_output/output.c \
421 audio_output/volume.c \
422 network/getaddrinfo.c \
443 misc/picture_fifo.c \
444 misc/picture_pool.c \
450 modules/textdomain.c \
455 config/configuration.h \
464 config/vlc_getopt.h \
475 misc/update_crypto.c \
481 misc/filter_chain.c \
483 misc/fingerprinter.c \
489 SOURCES_libvlc_httpd = \
493 SOURCES_libvlc_sout = \
494 stream_output/stream_output.c \
495 stream_output/stream_output.h \
496 stream_output/announce.c \
497 stream_output/sap.c \
498 stream_output/sdp.c \
501 SOURCES_libvlc_vlm = \
508 $(SOURCES_libvlc_common) \
511 # Unit/regression tests
524 TESTS = $(check_PROGRAMS)
526 test_block_SOURCES = test/block_test.c
527 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
528 test_block_DEPENDENCIES =
530 test_dictionary_SOURCES = test/dictionary.c
531 test_i18n_atof_SOURCES = test/i18n_atof.c
532 test_md5_SOURCES = test/md5.c
533 test_timer_SOURCES = test/timer.c
534 test_url_SOURCES = test/url.c
535 test_utf8_SOURCES = test/utf8.c
536 test_xmlent_SOURCES = test/xmlent.c
537 test_headers_SOURCES = test/headers.c
539 AM_LDFLAGS = -no-install
540 LDADD = libvlccore.la \
541 ../compat/libcompat.la
543 ###############################################################################
545 ###############################################################################
547 BUILT_SOURCES += stamp-revision
548 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
550 $(srcdir)/revision.c: $(srcdir)/revision.txt
551 $(AM_V_at)rm -f -- $@
552 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
555 $(srcdir)/revision.txt:
556 $(AM_V_at)$(MAKE) stamp-revision
560 $(AM_V_at)rm -f -- revision.tmp
561 $(AM_V_GEN)if ! git \
562 --git-dir="$(top_srcdir)/.git/" describe \
563 --tags --long --match '?.*.*' --always; then \
564 cat $(srcdir)/revision.txt ; \
566 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
567 rm -f -- revision.tmp; \
569 mv -f -- revision.tmp $(srcdir)/revision.txt; \
573 ###############################################################################
574 # Unit/regression test
575 ###############################################################################
577 dist_check_SCRIPTS = check_headers
580 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
582 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
583 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
585 echo "Header $$h not included in test/headers.c!"; \
589 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
592 @echo "Generated source cannot be phony. Go away." >&2