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_intf.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_sql.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_osd.h \
112 ../include/vlc_pgpkey.h \
113 ../include/vlc_update.h \
114 ../include/vlc_vod.h \
115 ../include/vlc_vout_wrapper.h \
116 ../include/vlc_windows_interfaces.h \
119 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
120 $(AM_V_at)rm -f -- "$@.tmp"
121 $(AM_V_at)mkdir -p -- ../include
122 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
123 echo "static const char psz_license[] =" && \
124 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
126 echo "static const char psz_thanks[] =" && \
127 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
128 "$(top_srcdir)/THANKS" && \
130 echo "static const char psz_authors[] =" && \
131 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
132 "$(top_srcdir)/AUTHORS" && \
133 echo ";") >> "$@.tmp"
134 $(AM_V_at)mv -f -- "$@.tmp" "$@"
136 ###############################################################################
137 # pkg-config integration
138 ###############################################################################
140 pkgconfigdir = $(libdir)/pkgconfig
141 pkgconfig_DATA = vlc-plugin.pc
142 CLEANFILES += $(pkgconfig_DATA)
144 .pc.in.pc: $(top_builddir)/config.status
145 $(AM_V_GEN)cd "$(top_builddir)" && \
146 $(SHELL) ./config.status --file="src/$@"
148 ##############################################################################
149 # Windows resource files
150 ##############################################################################
153 noinst_DATA = libvlc_win32_rc.rc
155 EXTRA_DIST += libvlc_win32_rc.rc.in
157 .rc.in.rc: $(top_builddir)/config.status
158 cd "$(top_builddir)" && \
159 $(SHELL) ./config.status --file="src/$@"
161 ###############################################################################
163 ###############################################################################
165 lib_LTLIBRARIES = libvlccore.la
167 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
168 -DMODULE_STRING=\"main\" \
169 -DLOCALEDIR=\"$(localedir)\" \
170 -DPKGDATADIR=\"$(vlcdatadir)\" \
171 -DPKGLIBDIR=\"$(vlclibdir)\"
172 AM_CFLAGS = $(CFLAGS_libvlccore)
173 if HAVE_DYNAMIC_PLUGINS
174 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
177 AM_CPPFLAGS += -DHAVE_DBUS
178 AM_CFLAGS += $(DBUS_CFLAGS)
181 libvlccore_la_SOURCES = $(SOURCES_libvlc)
182 libvlccore_la_LDFLAGS = \
184 $(LDFLAGS_libvlccore) \
186 -export-symbols $(srcdir)/libvlccore.sym \
188 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
189 ../compat/libcompat.la \
190 $(LTLIBINTL) $(LTLIBICONV) \
191 $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
192 libvlccore_la_DEPENDENCIES = libvlccore.sym
194 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
195 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
198 libvlccore_la_LIBADD += $(DBUS_LIBS)
201 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
202 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
204 EXTRA_libvlccore_la_SOURCES = \
205 $(SOURCES_libvlc_darwin) \
206 $(SOURCES_libvlc_android) \
207 $(SOURCES_libvlc_linux) \
208 $(SOURCES_libvlc_win32) \
209 $(SOURCES_libvlc_os2) \
210 $(SOURCES_libvlc_other) \
211 $(SOURCES_libvlc_httpd) \
212 $(SOURCES_libvlc_sout) \
213 $(SOURCES_libvlc_vlm) \
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
219 libvlccore_la_SOURCES += $(SOURCES_libvlc_android)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
225 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
228 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
231 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
233 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
241 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
244 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
246 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
250 SOURCES_libvlc_darwin = \
251 posix/darwin_dirs.c \
256 posix/darwin_specific.c \
260 SOURCES_libvlc_android = \
267 posix/linux_specific.c \
272 SOURCES_libvlc_linux = \
279 posix/linux_specific.c \
284 SOURCES_libvlc_win32 = \
294 SOURCES_libvlc_symbian = \
301 SOURCES_libvlc_os2 = \
311 SOURCES_libvlc_other = \
321 SOURCES_libvlc_common = \
329 interface/interface.c \
330 playlist/playlist_internal.h \
340 playlist/loadsave.c \
341 playlist/preparser.c \
342 playlist/preparser.h \
346 playlist/services_discovery.c \
352 input/decoder_synchro.c \
355 input/es_out_timeshift.c \
365 input/es_out_timeshift.h \
369 input/input_internal.h \
370 input/input_interface.h \
371 input/vlm_internal.h \
377 input/stream_demux.c \
378 input/stream_filter.c \
379 input/stream_memory.c \
382 video_output/chrono.h \
383 video_output/control.c \
384 video_output/control.h \
385 video_output/display.c \
386 video_output/display.h \
387 video_output/event.h \
388 video_output/inhibit.c \
389 video_output/inhibit.h \
390 video_output/interlacing.c \
391 video_output/interlacing.h \
392 video_output/snapshot.c \
393 video_output/snapshot.h \
394 video_output/statistic.h \
395 video_output/postprocessing.c \
396 video_output/postprocessing.h \
397 video_output/video_output.c \
398 video_output/video_text.c \
399 video_output/video_epg.c \
400 video_output/video_widgets.c \
401 video_output/vout_subpictures.c \
402 video_output/window.c \
403 video_output/opengl.c \
404 video_output/vout_intf.c \
405 video_output/vout_internal.h \
406 video_output/vout_control.h \
407 video_output/vout_wrapper.c \
408 audio_output/aout_internal.h \
409 audio_output/common.c \
411 audio_output/filters.c \
412 audio_output/input.c \
413 audio_output/output.c \
414 audio_output/volume.c \
415 audio_output/intf.c \
418 network/getaddrinfo.c \
439 misc/picture_fifo.c \
440 misc/picture_pool.c \
446 modules/textdomain.c \
451 config/configuration.h \
460 config/vlc_getopt.h \
471 misc/update_crypto.c \
473 misc/media_library.c \
477 misc/filter_chain.c \
485 SOURCES_libvlc_httpd = \
489 SOURCES_libvlc_sout = \
490 stream_output/stream_output.c \
491 stream_output/stream_output.h \
492 stream_output/announce.c \
493 stream_output/sap.c \
494 stream_output/sdp.c \
497 SOURCES_libvlc_vlm = \
504 $(SOURCES_libvlc_common) \
507 # Unit/regression tests
520 TESTS = $(check_PROGRAMS)
522 test_block_SOURCES = test/block_test.c
523 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
524 test_block_DEPENDENCIES =
526 test_dictionary_SOURCES = test/dictionary.c
527 test_i18n_atof_SOURCES = test/i18n_atof.c
528 test_md5_SOURCES = test/md5.c
529 test_timer_SOURCES = test/timer.c
530 test_url_SOURCES = test/url.c
531 test_utf8_SOURCES = test/utf8.c
532 test_xmlent_SOURCES = test/xmlent.c
533 test_headers_SOURCES = test/headers.c
535 AM_LDFLAGS = -no-install
536 LDADD = libvlccore.la \
537 ../compat/libcompat.la
539 ###############################################################################
541 ###############################################################################
543 BUILT_SOURCES += stamp-revision
544 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
546 $(srcdir)/revision.c: $(srcdir)/revision.txt
547 $(AM_V_at)rm -f -- $@
548 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
551 $(srcdir)/revision.txt:
552 $(AM_V_at)$(MAKE) stamp-revision
556 $(AM_V_at)rm -f -- revision.tmp
557 $(AM_V_GEN)if ! git \
558 --git-dir="$(top_srcdir)/.git/" describe \
559 --tags --long --match '?.*.*' --always; then \
560 cat $(srcdir)/revision.txt ; \
562 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
563 rm -f -- revision.tmp; \
565 mv -f -- revision.tmp $(srcdir)/revision.txt; \
569 ###############################################################################
570 # Unit/regression test
571 ###############################################################################
573 dist_check_SCRIPTS = check_headers
576 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
578 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
579 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
581 echo "Header $$h not included in test/headers.c!"; \
585 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
588 @echo "Generated source cannot be phony. Go away." >&2