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 -DSYSCONFDIR=\"$(sysconfdir)\" \
171 -DPKGDATADIR=\"$(vlcdatadir)\" \
172 -DPKGLIBDIR=\"$(vlclibdir)\"
173 AM_CFLAGS = $(CFLAGS_libvlccore)
174 if HAVE_DYNAMIC_PLUGINS
175 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
178 AM_CPPFLAGS += -DHAVE_DBUS
179 AM_CFLAGS += $(DBUS_CFLAGS)
182 libvlccore_la_SOURCES = $(SOURCES_libvlc)
183 libvlccore_la_LDFLAGS = \
185 $(LDFLAGS_libvlccore) \
187 -export-symbols $(srcdir)/libvlccore.sym \
189 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
190 ../compat/libcompat.la \
191 $(LTLIBINTL) $(LTLIBICONV) \
192 $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
193 libvlccore_la_DEPENDENCIES = libvlccore.sym
195 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
196 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
199 libvlccore_la_LIBADD += $(DBUS_LIBS)
202 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
203 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
205 EXTRA_libvlccore_la_SOURCES = \
206 $(SOURCES_libvlc_darwin) \
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_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)
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
240 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
242 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
246 SOURCES_libvlc_darwin = \
247 posix/darwin_dirs.c \
252 posix/darwin_specific.c \
256 SOURCES_libvlc_linux = \
263 posix/linux_specific.c \
268 SOURCES_libvlc_win32 = \
278 SOURCES_libvlc_symbian = \
285 SOURCES_libvlc_os2 = \
295 SOURCES_libvlc_other = \
305 SOURCES_libvlc_common = \
313 interface/interface.c \
314 playlist/playlist_internal.h \
323 playlist/loadsave.c \
324 playlist/preparser.c \
325 playlist/preparser.h \
329 playlist/services_discovery.c \
335 input/decoder_synchro.c \
338 input/es_out_timeshift.c \
348 input/es_out_timeshift.h \
352 input/input_internal.h \
353 input/input_interface.h \
354 input/vlm_internal.h \
360 input/stream_demux.c \
361 input/stream_filter.c \
362 input/stream_memory.c \
365 video_output/chrono.h \
366 video_output/control.c \
367 video_output/control.h \
368 video_output/display.c \
369 video_output/display.h \
370 video_output/event.h \
371 video_output/inhibit.c \
372 video_output/inhibit.h \
373 video_output/interlacing.c \
374 video_output/interlacing.h \
375 video_output/snapshot.c \
376 video_output/snapshot.h \
377 video_output/statistic.h \
378 video_output/postprocessing.c \
379 video_output/postprocessing.h \
380 video_output/video_output.c \
381 video_output/video_text.c \
382 video_output/video_epg.c \
383 video_output/video_widgets.c \
384 video_output/vout_subpictures.c \
385 video_output/window.c \
386 video_output/opengl.c \
387 video_output/vout_intf.c \
388 video_output/vout_internal.h \
389 video_output/vout_control.h \
390 video_output/vout_wrapper.c \
391 audio_output/aout_internal.h \
392 audio_output/common.c \
394 audio_output/filters.c \
395 audio_output/input.c \
396 audio_output/output.c \
397 audio_output/volume.c \
398 audio_output/intf.c \
401 network/getaddrinfo.c \
422 misc/picture_fifo.c \
423 misc/picture_pool.c \
429 modules/textdomain.c \
434 config/configuration.h \
443 config/vlc_getopt.h \
454 misc/update_crypto.c \
456 misc/media_library.c \
460 misc/filter_chain.c \
468 SOURCES_libvlc_httpd = \
472 SOURCES_libvlc_sout = \
473 stream_output/stream_output.c \
474 stream_output/stream_output.h \
475 stream_output/announce.c \
476 stream_output/sap.c \
477 stream_output/sdp.c \
480 SOURCES_libvlc_vlm = \
487 $(SOURCES_libvlc_common) \
490 # Unit/regression tests
503 TESTS = $(check_PROGRAMS)
505 test_block_SOURCES = test/block_test.c
506 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
507 test_block_DEPENDENCIES =
509 test_dictionary_SOURCES = test/dictionary.c
510 test_i18n_atof_SOURCES = test/i18n_atof.c
511 test_md5_SOURCES = test/md5.c
512 test_timer_SOURCES = test/timer.c
513 test_url_SOURCES = test/url.c
514 test_utf8_SOURCES = test/utf8.c
515 test_xmlent_SOURCES = test/xmlent.c
516 test_headers_SOURCES = test/headers.c
518 AM_LDFLAGS = -no-install
519 LDADD = libvlccore.la \
520 ../compat/libcompat.la
522 ###############################################################################
524 ###############################################################################
526 BUILT_SOURCES += stamp-revision
527 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
529 $(srcdir)/revision.c: $(srcdir)/revision.txt
530 $(AM_V_at)rm -f -- $@
531 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
534 $(srcdir)/revision.txt:
535 $(AM_V_at)$(MAKE) stamp-revision
539 $(AM_V_at)rm -f -- revision.tmp
540 $(AM_V_GEN)if ! git \
541 --git-dir="$(top_srcdir)/.git/" describe \
542 --tags --long --match '?.*.*' --always; then \
543 cat $(srcdir)/revision.txt ; \
545 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
546 rm -f -- revision.tmp; \
548 mv -f -- revision.tmp $(srcdir)/revision.txt; \
552 ###############################################################################
553 # Unit/regression test
554 ###############################################################################
556 dist_check_SCRIPTS = check_headers
559 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
561 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
562 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
564 echo "Header $$h not included in test/headers.c!"; \
568 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
571 @echo "Generated source cannot be phony. Go away." >&2