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_aout.h \
27 ../include/vlc_aout_volume.h \
28 ../include/vlc_arrays.h \
29 ../include/vlc_art_finder.h \
30 ../include/vlc_atomic.h \
31 ../include/vlc_avcodec.h \
32 ../include/vlc_bits.h \
33 ../include/vlc_block.h \
34 ../include/vlc_block_helper.h \
35 ../include/vlc_charset.h \
36 ../include/vlc_codec.h \
37 ../include/vlc_common.h \
38 ../include/vlc_config.h \
39 ../include/vlc_config_cat.h \
40 ../include/vlc_configuration.h \
41 ../include/vlc_cpu.h \
42 ../include/vlc_dialog.h \
43 ../include/vlc_demux.h \
44 ../include/vlc_epg.h \
46 ../include/vlc_es_out.h \
47 ../include/vlc_events.h \
48 ../include/vlc_filter.h \
49 ../include/vlc_fourcc.h \
51 ../include/vlc_gcrypt.h \
52 ../include/vlc_opengl.h \
53 ../include/vlc_http.h \
54 ../include/vlc_httpd.h \
55 ../include/vlc_image.h \
56 ../include/vlc_inhibit.h \
57 ../include/vlc_input.h \
58 ../include/vlc_input_item.h \
59 ../include/vlc_keys.h \
60 ../include/vlc_main.h \
61 ../include/vlc_md5.h \
62 ../include/vlc_messages.h \
63 ../include/vlc_meta.h \
64 ../include/vlc_media_library.h \
65 ../include/vlc_mime.h \
66 ../include/vlc_modules.h \
67 ../include/vlc_mouse.h \
68 ../include/vlc_mtime.h \
69 ../include/vlc_network.h \
70 ../include/vlc_objects.h \
71 ../include/vlc_picture.h \
72 ../include/vlc_picture_fifo.h \
73 ../include/vlc_picture_pool.h \
74 ../include/vlc_playlist.h \
75 ../include/vlc_plugin.h \
76 ../include/vlc_probe.h \
77 ../include/vlc_rand.h \
78 ../include/vlc_services_discovery.h \
79 ../include/vlc_fingerprinter.h \
80 ../include/vlc_sout.h \
81 ../include/vlc_spu.h \
82 ../include/vlc_stream.h \
83 ../include/vlc_strings.h \
84 ../include/vlc_subpicture.h \
85 ../include/vlc_text_style.h \
86 ../include/vlc_threads.h \
87 ../include/vlc_tls.h \
88 ../include/vlc_url.h \
89 ../include/vlc_variables.h \
90 ../include/vlc_vlm.h \
91 ../include/vlc_video_splitter.h \
92 ../include/vlc_vout.h \
93 ../include/vlc_vout_display.h \
94 ../include/vlc_vout_osd.h \
95 ../include/vlc_vout_window.h \
96 ../include/vlc_xml.h \
97 ../include/vlc_xlib.h \
99 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
102 ../include/vlc_codec_synchro.h \
103 ../include/vlc_codecs.h \
104 ../include/vlc_extensions.h \
105 ../include/vlc_fixups.h \
106 ../include/vlc_interface.h \
107 ../include/vlc_intf_strings.h \
108 ../include/vlc_iso_lang.h \
109 ../include/vlc_memory.h \
110 ../include/vlc_pgpkey.h \
111 ../include/vlc_update.h \
112 ../include/vlc_vod.h \
113 ../include/vlc_vout_wrapper.h \
114 ../include/vlc_windows_interfaces.h \
117 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
118 $(AM_V_at)rm -f -- "$@.tmp"
119 $(AM_V_at)mkdir -p -- ../include
120 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
121 echo "static const char psz_license[] =" && \
122 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
124 echo "static const char psz_thanks[] =" && \
125 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
126 "$(top_srcdir)/THANKS" && \
128 echo "static const char psz_authors[] =" && \
129 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
130 "$(top_srcdir)/AUTHORS" && \
131 echo ";") >> "$@.tmp"
132 $(AM_V_at)mv -f -- "$@.tmp" "$@"
134 ###############################################################################
135 # pkg-config integration
136 ###############################################################################
138 pkgconfigdir = $(libdir)/pkgconfig
139 pkgconfig_DATA = vlc-plugin.pc
140 CLEANFILES += $(pkgconfig_DATA)
142 .pc.in.pc: $(top_builddir)/config.status
143 $(AM_V_GEN)cd "$(top_builddir)" && \
144 $(SHELL) ./config.status --file="src/$@"
146 ##############################################################################
147 # Windows resource files
148 ##############################################################################
151 noinst_DATA = libvlc_win32_rc.rc
153 EXTRA_DIST += libvlc_win32_rc.rc.in
155 .rc.in.rc: $(top_builddir)/config.status
156 cd "$(top_builddir)" && \
157 $(SHELL) ./config.status --file="src/$@"
159 ###############################################################################
161 ###############################################################################
163 lib_LTLIBRARIES = libvlccore.la
165 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
166 -DMODULE_STRING=\"main\" \
167 -DLOCALEDIR=\"$(localedir)\" \
168 -DPKGDATADIR=\"$(vlcdatadir)\" \
169 -DPKGLIBDIR=\"$(vlclibdir)\"
170 AM_CFLAGS = $(CFLAGS_libvlccore)
171 if HAVE_DYNAMIC_PLUGINS
172 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
175 AM_CPPFLAGS += -DHAVE_DBUS
176 AM_CFLAGS += $(DBUS_CFLAGS)
179 libvlccore_la_SOURCES = $(SOURCES_libvlc)
180 libvlccore_la_LDFLAGS = \
181 $(LDFLAGS_libvlccore) \
183 -export-symbols $(srcdir)/libvlccore.sym \
185 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
186 ../compat/libcompat.la \
187 $(LTLIBINTL) $(LTLIBICONV) \
188 $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
189 libvlccore_la_DEPENDENCIES = libvlccore.sym
191 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
192 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
195 libvlccore_la_LIBADD += $(DBUS_LIBS)
198 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
199 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
201 EXTRA_libvlccore_la_SOURCES = \
202 $(SOURCES_libvlc_darwin) \
203 $(SOURCES_libvlc_android) \
204 $(SOURCES_libvlc_linux) \
205 $(SOURCES_libvlc_win32) \
206 $(SOURCES_libvlc_os2) \
207 $(SOURCES_libvlc_other) \
208 $(SOURCES_libvlc_httpd) \
209 $(SOURCES_libvlc_sout) \
210 $(SOURCES_libvlc_vlm) \
213 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_android)
219 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
225 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
228 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
238 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
241 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
243 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
247 SOURCES_libvlc_darwin = \
258 SOURCES_libvlc_android = \
266 posix/linux_specific.c \
271 SOURCES_libvlc_linux = \
279 posix/linux_specific.c \
284 SOURCES_libvlc_win32 = \
295 SOURCES_libvlc_symbian = \
302 SOURCES_libvlc_os2 = \
313 SOURCES_libvlc_other = \
324 SOURCES_libvlc_common = \
332 interface/interface.c \
333 playlist/playlist_internal.h \
343 playlist/loadsave.c \
344 playlist/preparser.c \
345 playlist/preparser.h \
349 playlist/services_discovery.c \
355 input/decoder_synchro.c \
358 input/es_out_timeshift.c \
368 input/es_out_timeshift.h \
372 input/input_internal.h \
373 input/input_interface.h \
374 input/vlm_internal.h \
380 input/stream_demux.c \
381 input/stream_filter.c \
382 input/stream_memory.c \
385 video_output/chrono.h \
386 video_output/control.c \
387 video_output/control.h \
388 video_output/display.c \
389 video_output/display.h \
390 video_output/event.h \
391 video_output/inhibit.c \
392 video_output/inhibit.h \
393 video_output/interlacing.c \
394 video_output/interlacing.h \
395 video_output/snapshot.c \
396 video_output/snapshot.h \
397 video_output/statistic.h \
398 video_output/video_output.c \
399 video_output/video_text.c \
400 video_output/video_epg.c \
401 video_output/video_widgets.c \
402 video_output/vout_subpictures.c \
403 video_output/window.c \
404 video_output/opengl.c \
405 video_output/vout_intf.c \
406 video_output/vout_internal.h \
407 video_output/vout_control.h \
408 video_output/vout_wrapper.c \
409 audio_output/aout_internal.h \
410 audio_output/common.c \
412 audio_output/filters.c \
413 audio_output/output.c \
414 audio_output/volume.c \
415 network/getaddrinfo.c \
436 misc/picture_fifo.c \
437 misc/picture_pool.c \
443 modules/textdomain.c \
448 config/configuration.h \
457 config/vlc_getopt.h \
468 misc/update_crypto.c \
473 misc/filter_chain.c \
475 misc/fingerprinter.c \
481 SOURCES_libvlc_httpd = \
485 SOURCES_libvlc_sout = \
486 stream_output/stream_output.c \
487 stream_output/stream_output.h \
488 stream_output/announce.c \
489 stream_output/sap.c \
490 stream_output/sdp.c \
493 SOURCES_libvlc_vlm = \
500 $(SOURCES_libvlc_common) \
503 # Unit/regression tests
516 TESTS = $(check_PROGRAMS)
518 test_block_SOURCES = test/block_test.c
519 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
520 test_block_DEPENDENCIES =
522 test_dictionary_SOURCES = test/dictionary.c
523 test_i18n_atof_SOURCES = test/i18n_atof.c
524 test_md5_SOURCES = test/md5.c
525 test_timer_SOURCES = test/timer.c
526 test_url_SOURCES = test/url.c
527 test_utf8_SOURCES = test/utf8.c
528 test_xmlent_SOURCES = test/xmlent.c
529 test_headers_SOURCES = test/headers.c
531 AM_LDFLAGS = -no-install
532 LDADD = libvlccore.la \
533 ../compat/libcompat.la
535 ###############################################################################
537 ###############################################################################
539 BUILT_SOURCES += stamp-revision
540 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
542 $(srcdir)/revision.c: $(srcdir)/revision.txt
543 $(AM_V_at)rm -f -- $@
544 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
547 $(srcdir)/revision.txt:
548 $(AM_V_at)$(MAKE) stamp-revision
552 $(AM_V_at)rm -f -- revision.tmp
553 $(AM_V_GEN)if ! git \
554 --git-dir="$(top_srcdir)/.git/" describe \
555 --tags --long --match '?.*.*' --always; then \
556 cat $(srcdir)/revision.txt ; \
558 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
559 rm -f -- revision.tmp; \
561 mv -f -- revision.tmp $(srcdir)/revision.txt; \
565 ###############################################################################
566 # Unit/regression test
567 ###############################################################################
569 dist_check_SCRIPTS = check_headers
572 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
574 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
575 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
577 echo "Header $$h not included in test/headers.c!"; \
581 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
584 @echo "Generated source cannot be phony. Go away." >&2