1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
15 ../include/vlc/libvlc_version.h.in
18 $(nodist_pkginclude_HEADERS) \
19 $(nodist_pluginsinclude_HEADERS)
20 CLEANFILES = $(BUILT_SOURCES)
22 SUFFIXES = .pc.in .pc .rc.in .rc
24 ###############################################################################
26 ###############################################################################
28 pluginsincludedir = $(pkgincludedir)/plugins
30 pkginclude_HEADERS = \
31 ../include/vlc/vlc.h \
32 ../include/vlc/deprecated.h \
33 ../include/vlc/libvlc.h \
34 ../include/vlc/libvlc_events.h \
35 ../include/vlc/libvlc_media.h \
36 ../include/vlc/libvlc_media_discoverer.h \
37 ../include/vlc/libvlc_media_library.h \
38 ../include/vlc/libvlc_media_list.h \
39 ../include/vlc/libvlc_media_list_player.h \
40 ../include/vlc/libvlc_media_player.h \
41 ../include/vlc/libvlc_structures.h \
42 ../include/vlc/libvlc_vlm.h \
44 nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
46 pluginsinclude_HEADERS = \
47 ../include/vlc_access.h \
48 ../include/vlc_acl.h \
49 ../include/vlc_aout.h \
50 ../include/vlc_aout_intf.h \
51 ../include/vlc_aout_mixer.h \
52 ../include/vlc_arrays.h \
53 ../include/vlc_art_finder.h \
54 ../include/vlc_atomic.h \
55 ../include/vlc_avcodec.h \
56 ../include/vlc_bits.h \
57 ../include/vlc_block.h \
58 ../include/vlc_block_helper.h \
59 ../include/vlc_charset.h \
60 ../include/vlc_codec.h \
61 ../include/vlc_common.h \
62 ../include/vlc_config.h \
63 ../include/vlc_config_cat.h \
64 ../include/vlc_configuration.h \
65 ../include/vlc_cpu.h \
66 ../include/vlc_dialog.h \
67 ../include/vlc_demux.h \
68 ../include/vlc_epg.h \
70 ../include/vlc_es_out.h \
71 ../include/vlc_events.h \
72 ../include/vlc_filter.h \
73 ../include/vlc_fourcc.h \
75 ../include/vlc_gcrypt.h \
76 ../include/vlc_opengl.h \
77 ../include/vlc_http.h \
78 ../include/vlc_httpd.h \
79 ../include/vlc_image.h \
80 ../include/vlc_inhibit.h \
81 ../include/vlc_input.h \
82 ../include/vlc_input_item.h \
83 ../include/vlc_main.h \
84 ../include/vlc_md5.h \
85 ../include/vlc_messages.h \
86 ../include/vlc_meta.h \
87 ../include/vlc_media_library.h \
88 ../include/vlc_modules.h \
89 ../include/vlc_mouse.h \
90 ../include/vlc_mtime.h \
91 ../include/vlc_objects.h \
92 ../include/vlc_picture.h \
93 ../include/vlc_picture_fifo.h \
94 ../include/vlc_picture_pool.h \
95 ../include/vlc_playlist.h \
96 ../include/vlc_plugin.h \
97 ../include/vlc_probe.h \
98 ../include/vlc_rand.h \
99 ../include/vlc_services_discovery.h \
100 ../include/vlc_sql.h \
101 ../include/vlc_sout.h \
102 ../include/vlc_spu.h \
103 ../include/vlc_stream.h \
104 ../include/vlc_strings.h \
105 ../include/vlc_subpicture.h \
106 ../include/vlc_text_style.h \
107 ../include/vlc_threads.h \
108 ../include/vlc_url.h \
109 ../include/vlc_variables.h \
110 ../include/vlc_vlm.h \
111 ../include/vlc_video_splitter.h \
112 ../include/vlc_vout.h \
113 ../include/vlc_vout_display.h \
114 ../include/vlc_vout_osd.h \
115 ../include/vlc_vout_window.h \
116 ../include/vlc_xml.h \
117 ../include/vlc_xlib.h \
119 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
122 ../include/vlc_codec_synchro.h \
123 ../include/vlc_codecs.h \
124 ../include/vlc_extensions.h \
125 ../include/vlc_fixups.h \
126 ../include/vlc_interface.h \
127 ../include/vlc_intf_strings.h \
128 ../include/vlc_iso_lang.h \
129 ../include/vlc_keys.h \
130 ../include/vlc_memory.h \
131 ../include/vlc_network.h \
132 ../include/vlc_osd.h \
133 ../include/vlc_pgpkey.h \
134 ../include/vlc_tls.h \
135 ../include/vlc_update.h \
136 ../include/vlc_vod.h \
137 ../include/vlc_vout_wrapper.h \
138 ../include/vlc_windows_interfaces.h \
141 ../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
142 $(AM_V_GEN)cd "$(top_builddir)" && \
143 $(SHELL) ./config.status --file="src/$@"
145 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
146 $(AM_V_at)rm -f -- "$@.tmp"
147 $(AM_V_at)mkdir -p -- ../include
148 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
149 echo "static const char psz_license[] =" && \
150 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
152 echo "static const char psz_thanks[] =" && \
153 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
154 "$(top_srcdir)/THANKS" && \
156 echo "static const char psz_authors[] =" && \
157 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
158 "$(top_srcdir)/AUTHORS" && \
159 echo ";") >> "$@.tmp"
160 $(AM_V_at)mv -f -- "$@.tmp" "$@"
162 ###############################################################################
163 # pkg-config integration
164 ###############################################################################
166 pkgconfigdir = $(libdir)/pkgconfig
167 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
168 CLEANFILES += $(pkgconfig_DATA)
170 .pc.in.pc: $(top_builddir)/config.status
171 $(AM_V_GEN)cd "$(top_builddir)" && \
172 $(SHELL) ./config.status --file="src/$@"
174 ##############################################################################
175 # Windows resource files
176 ##############################################################################
179 noinst_DATA = libvlc_win32_rc.rc
181 EXTRA_DIST += libvlc_win32_rc.rc.in
183 .rc.in.rc: $(top_builddir)/config.status
184 cd "$(top_builddir)" && \
185 $(SHELL) ./config.status --file="src/$@"
187 ###############################################################################
189 ###############################################################################
191 lib_LTLIBRARIES = libvlccore.la libvlc.la
193 AM_LDFLAGS = -no-undefined
195 AM_LDFLAGS += -avoid-version
198 AM_LDFLAGS += -avoid-version
201 libvlccore_la_SOURCES = $(SOURCES_libvlc)
202 libvlccore_la_CPPFLAGS = $(INCICONV) \
203 -DMODULE_STRING=\"main\" \
204 -DLOCALEDIR=\"$(localedir)\" \
205 -DSYSCONFDIR=\"$(sysconfdir)\" \
206 -DDATA_PATH=\"$(vlcdatadir)\" \
207 -DPKGLIBDIR=\"$(vlclibdir)\"
208 libvlccore_la_CFLAGS = $(CFLAGS_libvlccore)
209 libvlccore_la_LDFLAGS = $(LDFLAGS_libvlccore) $(AM_LDFLAGS) \
211 -export-symbols $(srcdir)/libvlccore.sym \
213 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
214 $(LTLIBINTL) $(LTLIBICONV) \
215 $(SOCKET_LIBS) $(LIBDL) $(LIBM) \
216 ../compat/libcompat.la
217 libvlccore_la_DEPENDENCIES = libvlccore.sym
219 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
220 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
223 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
224 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
226 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
227 libvlc_la_LIBADD = $(LIBS_libvlc) \
228 libvlccore.la ../compat/libcompat.la
229 libvlc_la_CPPFLAGS = -DMODULE_STRING=\"libvlc\"
230 libvlc_la_CFLAGS = $(CFLAGS_libvlc)
231 libvlc_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_libvlc) \
232 -version-info 6:0:1 \
233 -export-symbols $(srcdir)/libvlc.sym
234 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
236 libvlc_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
237 libvlc_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
241 EXTRA_libvlccore_la_SOURCES = \
242 $(SOURCES_libvlc_darwin) \
243 $(SOURCES_libvlc_linux) \
244 $(SOURCES_libvlc_win32) \
245 $(SOURCES_libvlc_other) \
246 $(SOURCES_libvlc_httpd) \
247 $(SOURCES_libvlc_sout) \
248 $(SOURCES_libvlc_vlm) \
251 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
254 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
257 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
260 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
263 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
265 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
272 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
275 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
277 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
281 SOURCES_libvlc_darwin = \
282 posix/darwin_dirs.c \
288 posix/darwin_specific.c \
291 SOURCES_libvlc_linux = \
298 posix/linux_specific.c \
301 SOURCES_libvlc_win32 = \
312 SOURCES_libvlc_symbian = \
319 SOURCES_libvlc_other = \
328 SOURCES_libvlc_common = \
336 interface/interface.c \
337 interface/intf_eject.c \
338 playlist/playlist_internal.h \
347 playlist/loadsave.c \
348 playlist/preparser.c \
349 playlist/preparser.h \
353 playlist/services_discovery.c \
359 input/decoder_synchro.c \
362 input/es_out_timeshift.c \
372 input/es_out_timeshift.h \
376 input/input_internal.h \
377 input/input_interface.h \
378 input/vlm_internal.h \
383 input/stream_demux.c \
384 input/stream_filter.c \
385 input/stream_memory.c \
388 video_output/chrono.h \
389 video_output/control.c \
390 video_output/control.h \
391 video_output/display.c \
392 video_output/display.h \
393 video_output/event.h \
394 video_output/inhibit.c \
395 video_output/inhibit.h \
396 video_output/interlacing.c \
397 video_output/interlacing.h \
398 video_output/snapshot.c \
399 video_output/snapshot.h \
400 video_output/statistic.h \
401 video_output/postprocessing.c \
402 video_output/postprocessing.h \
403 video_output/video_output.c \
404 video_output/video_text.c \
405 video_output/video_epg.c \
406 video_output/video_widgets.c \
407 video_output/vout_subpictures.c \
408 video_output/window.c \
409 video_output/opengl.c \
410 video_output/vout_intf.c \
411 video_output/vout_internal.h \
412 video_output/vout_control.h \
413 video_output/vout_wrapper.c \
414 audio_output/aout_internal.h \
415 audio_output/common.c \
417 audio_output/filters.c \
418 audio_output/input.c \
419 audio_output/mixer.c \
420 audio_output/output.c \
421 audio_output/intf.c \
425 network/getaddrinfo.c \
445 misc/picture_fifo.c \
446 misc/picture_pool.c \
452 modules/textdomain.c \
458 config/configuration.h \
468 config/vlc_getopt.h \
478 misc/update_crypto.c \
480 misc/media_library.c \
484 misc/filter_chain.c \
492 SOURCES_libvlc_httpd = \
496 SOURCES_libvlc_sout = \
497 stream_output/stream_output.c \
498 stream_output/stream_output.h \
499 stream_output/announce.c \
500 stream_output/sap.c \
501 stream_output/sdp.c \
504 SOURCES_libvlc_vlm = \
511 $(SOURCES_libvlc_common) \
514 SOURCES_libvlc_control = \
516 control/libvlc_internal.h \
517 control/event_internal.h \
518 control/media_internal.h \
519 control/media_list_internal.h \
520 control/media_player_internal.h \
529 control/event_async.c \
531 control/media_player.c \
532 control/media_list.c \
533 control/media_list_path.h \
534 control/media_list_player.c \
535 control/media_library.c \
536 control/media_discoverer.c
538 ###############################################################################
540 ###############################################################################
543 pkglib_LTLIBRARIES = libvlcpulse.la
546 libvlcpulse_la_SOURCES = pulse/mainloop.c ../include/vlc_pulse.h
547 libvlcpulse_la_CPPFLAGS = $(PULSE_CFLAGS)
548 libvlcpulse_la_LIBADD = $(PULSE_LIBS) libvlccore.la
549 libvlcpulse_la_LDFLAGS = -export-symbols-regex ^vlc_pa_ -no-undefined
551 ###############################################################################
553 ###############################################################################
555 BUILT_SOURCES += stamp-revision
557 $(srcdir)/revision.c: $(srcdir)/revision.txt
558 $(AM_V_at)rm -f -- $@
559 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
562 $(srcdir)/revision.txt:
563 $(AM_V_at)$(MAKE) stamp-revision
567 $(AM_V_at)rm -f -- revision.tmp
568 $(AM_V_GEN)if ! git \
569 --git-dir="$(top_srcdir)/.git/" describe \
570 --tags --long --match '?.*.*' --always; then \
571 cat $(srcdir)/revision.txt ; \
573 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
574 rm -f -- revision.tmp; \
576 mv -f -- revision.tmp $(srcdir)/revision.txt; \
580 ###############################################################################
581 # Unit/regression test
582 ###############################################################################
584 dist_check_SCRIPTS = check_headers
587 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
589 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
590 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
592 echo "Header $$h not included in test/headers.c!"; \
596 $(srcdir)/check_headers $(pkginclude_HEADERS)
597 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
600 @echo "Generated source cannot be phony. Go away." >&2