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_dialog.h \
45 ../include/vlc_demux.h \
46 ../include/vlc_epg.h \
48 ../include/vlc_es_out.h \
49 ../include/vlc_events.h \
50 ../include/vlc_filter.h \
51 ../include/vlc_fourcc.h \
53 ../include/vlc_gcrypt.h \
54 ../include/vlc_opengl.h \
55 ../include/vlc_http.h \
56 ../include/vlc_httpd.h \
57 ../include/vlc_image.h \
58 ../include/vlc_inhibit.h \
59 ../include/vlc_input.h \
60 ../include/vlc_input_item.h \
61 ../include/vlc_interface.h \
62 ../include/vlc_keystore.h \
63 ../include/vlc_md5.h \
64 ../include/vlc_messages.h \
65 ../include/vlc_meta.h \
66 ../include/vlc_meta_fetcher.h \
67 ../include/vlc_media_library.h \
68 ../include/vlc_memstream.h \
69 ../include/vlc_mime.h \
70 ../include/vlc_modules.h \
71 ../include/vlc_mouse.h \
72 ../include/vlc_mtime.h \
73 ../include/vlc_network.h \
74 ../include/vlc_objects.h \
75 ../include/vlc_picture.h \
76 ../include/vlc_picture_fifo.h \
77 ../include/vlc_picture_pool.h \
78 ../include/vlc_playlist.h \
79 ../include/vlc_plugin.h \
80 ../include/vlc_probe.h \
81 ../include/vlc_rand.h \
82 ../include/vlc_services_discovery.h \
83 ../include/vlc_fingerprinter.h \
84 ../include/vlc_interrupt.h \
85 ../include/vlc_renderer_discovery.h \
86 ../include/vlc_sout.h \
87 ../include/vlc_spu.h \
88 ../include/vlc_stream.h \
89 ../include/vlc_stream_extractor.h \
90 ../include/vlc_strings.h \
91 ../include/vlc_subpicture.h \
92 ../include/vlc_text_style.h \
93 ../include/vlc_threads.h \
94 ../include/vlc_timestamp_helper.h \
95 ../include/vlc_tls.h \
96 ../include/vlc_url.h \
97 ../include/vlc_variables.h \
98 ../include/vlc_viewpoint.h \
99 ../include/vlc_vlm.h \
100 ../include/vlc_video_splitter.h \
101 ../include/vlc_vout.h \
102 ../include/vlc_vout_display.h \
103 ../include/vlc_vout_osd.h \
104 ../include/vlc_vout_window.h \
105 ../include/vlc_xml.h \
106 ../include/vlc_xlib.h \
108 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
111 ../include/vlc_codecs.h \
112 ../include/vlc_extensions.h \
113 ../include/vlc_fixups.h \
114 ../include/vlc_intf_strings.h \
115 ../include/vlc_iso_lang.h \
116 ../include/vlc_memory.h \
117 ../include/vlc_pgpkey.h \
118 ../include/vlc_update.h \
119 ../include/vlc_vod.h \
120 ../include/vlc_vout_wrapper.h \
123 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
124 $(AM_V_at)rm -f -- "$@.tmp"
125 $(AM_V_at)mkdir -p -- ../include
126 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
127 echo "static const char psz_license[] =" && \
128 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
130 echo "static const char psz_thanks[] =" && \
131 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
132 "$(top_srcdir)/THANKS" && \
134 echo "static const char psz_authors[] =" && \
135 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
136 "$(top_srcdir)/AUTHORS" && \
137 echo ";") >> "$@.tmp"
138 $(AM_V_at)mv -f -- "$@.tmp" "$@"
140 ###############################################################################
141 # pkg-config integration
142 ###############################################################################
144 pkgconfigdir = $(libdir)/pkgconfig
145 pkgconfig_DATA = vlc-plugin.pc
146 CLEANFILES += $(pkgconfig_DATA)
148 .pc.in.pc: $(top_builddir)/config.status
149 $(AM_V_GEN)cd "$(top_builddir)" && \
150 $(SHELL) ./config.status --file="src/$@"
152 ##############################################################################
153 # Windows resource files
154 ##############################################################################
157 noinst_DATA = libvlc_win32_rc.rc
159 EXTRA_DIST += libvlc_win32_rc.rc.in
161 .rc.in.rc: $(top_builddir)/config.status
162 cd "$(top_builddir)" && \
163 $(SHELL) ./config.status --file="src/$@"
165 ###############################################################################
167 ###############################################################################
169 lib_LTLIBRARIES = libvlccore.la
171 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
172 -DMODULE_STRING=\"core\" \
173 -DLOCALEDIR=\"$(localedir)\" \
174 -DPKGDATADIR=\"$(vlcdatadir)\" \
175 -DPKGLIBDIR=\"$(vlclibdir)\"
176 AM_CFLAGS = $(CFLAGS_libvlccore)
177 if HAVE_DYNAMIC_PLUGINS
178 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
181 AM_CPPFLAGS += -DHAVE_DBUS
182 AM_CFLAGS += $(DBUS_CFLAGS)
185 libvlccore_la_SOURCES = \
192 config/configuration.h \
200 config/vlc_getopt.h \
208 modules/textdomain.c \
210 interface/interface.c \
211 playlist/playlist_internal.h \
221 playlist/loadsave.c \
222 playlist/preparser.c \
223 playlist/preparser.h \
227 playlist/services_discovery.c \
228 playlist/renderer.c \
235 input/demux_chained.c \
237 input/es_out_timeshift.c \
246 input/es_out_timeshift.h \
249 input/mrl_helpers.h \
251 input/input_internal.h \
252 input/input_interface.h \
253 input/vlm_internal.h \
257 input/services_discovery.c \
260 input/stream_fifo.c \
261 input/stream_extractor.c \
262 input/stream_filter.c \
263 input/stream_memory.c \
266 audio_output/aout_internal.h \
267 audio_output/common.c \
269 audio_output/filters.c \
270 audio_output/output.c \
271 audio_output/volume.c \
272 video_output/chrono.h \
273 video_output/control.c \
274 video_output/control.h \
275 video_output/display.c \
276 video_output/display.h \
277 video_output/event.h \
278 video_output/inhibit.c \
279 video_output/inhibit.h \
280 video_output/interlacing.c \
281 video_output/interlacing.h \
282 video_output/snapshot.c \
283 video_output/snapshot.h \
284 video_output/statistic.h \
285 video_output/video_output.c \
286 video_output/video_text.c \
287 video_output/video_epg.c \
288 video_output/video_widgets.c \
289 video_output/vout_subpictures.c \
290 video_output/vout_spuregion_helper.h \
291 video_output/window.c \
292 video_output/window.h \
293 video_output/opengl.c \
294 video_output/vout_intf.c \
295 video_output/vout_internal.h \
296 video_output/vout_control.h \
297 video_output/vout_wrapper.c \
298 network/getaddrinfo.c \
299 network/http_auth.c \
315 misc/background_worker.c \
316 misc/background_worker.h \
328 misc/picture_fifo.c \
329 misc/picture_pool.c \
333 misc/renderer_discovery.c \
350 misc/filter_chain.c \
352 misc/fingerprinter.c \
356 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
357 ../compat/libcompat.la \
358 $(LTLIBINTL) $(LTLIBICONV) \
359 $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
362 libvlccore_la_SOURCES += \
373 libvlccore_la_SOURCES += posix/timer.c
375 libvlccore_la_SOURCES += win32/timer.c
379 libvlccore_la_SOURCES += \
391 libvlccore_la_SOURCES += \
400 libvlccore_la_SOURCES += \
406 libvlccore_la_SOURCES += \
415 libvlccore_la_SOURCES += \
422 libvlccore_la_SOURCES += \
429 libvlccore_la_SOURCES += \
435 libvlccore_la_SOURCES += \
437 libvlccore_la_LIBADD += -lanl
439 libvlccore_la_SOURCES += \
449 libvlccore_la_SOURCES += \
450 stream_output/sap.c stream_output/sdp.c \
451 stream_output/stream_output.c stream_output/stream_output.h
453 libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
458 libvlccore_la_SOURCES += \
459 misc/update.h misc/update.c \
461 AM_CPPFLAGS += -DUPDATE_CHECK
462 AM_CFLAGS += $(GCRYPT_CFLAGS)
463 libvlccore_la_LIBADD += $(GCRYPT_LIBS)
466 libvlccore_la_LDFLAGS = \
467 $(LDFLAGS_libvlccore) \
469 -export-symbols $(srcdir)/libvlccore.sym \
471 libvlccore_la_DEPENDENCIES = libvlccore.sym
473 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
474 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
477 libvlccore_la_LDFLAGS += -avoid-version
480 libvlccore_la_LIBADD += $(DBUS_LIBS)
483 libvlccore_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib
486 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
487 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
490 BUILT_SOURCES += fourcc_tables.h
491 EXTRA_DIST += misc/fourcc_gen.c
492 MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
494 fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
495 $(AM_V_at)rm -f -- $@
496 $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
498 fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
499 $(AM_V_at)rm -f -- $@.tmp
500 $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
501 $(AM_V_at)mv -f -- $@.tmp $@
503 # Unit/regression tests
520 TESTS = $(check_PROGRAMS) check_symbols
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_interrupt_SOURCES = test/interrupt.c
529 test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore) $(LIBPTHREAD)
530 test_md5_SOURCES = test/md5.c
531 test_picture_pool_SOURCES = test/picture_pool.c
532 test_sort_SOURCES = test/sort.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
538 test_mrl_helpers_SOURCES = test/mrl_helpers.c
540 AM_LDFLAGS = -no-install
541 LDADD = libvlccore.la \
542 ../compat/libcompat.la
544 ###############################################################################
546 ###############################################################################
548 BUILT_SOURCES += stamp-revision
549 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
551 $(srcdir)/revision.c: $(srcdir)/revision.txt
552 $(AM_V_at)rm -f -- $@
553 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
556 $(srcdir)/revision.txt:
557 $(AM_V_at)$(MAKE) stamp-revision
561 $(AM_V_at)rm -f -- revision.tmp
562 $(AM_V_GEN)if ! git \
563 --git-dir="$(top_srcdir)/.git/" describe \
564 --tags --long --match '?.*.*' --always; then \
565 cat $(srcdir)/revision.txt ; \
567 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
568 rm -f -- revision.tmp; \
570 mv -f -- revision.tmp $(srcdir)/revision.txt; \
574 ###############################################################################
575 # Unit/regression test
576 ###############################################################################
578 dist_check_SCRIPTS = check_headers check_symbols
581 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
583 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
584 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
586 echo "Header $$h not included in test/headers.c!"; \
590 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
593 @echo "Generated source cannot be phony. Go away." >&2