1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
9 EXTRA_DIST = extras/COPYING \
14 ../include/vlc/libvlc_version.h.in
17 $(nodist_pkginclude_HEADERS) \
18 $(nodist_pluginsinclude_HEADERS)
19 CLEANFILES = $(BUILT_SOURCES)
21 SUFFIXES = .pc.in .pc .rc.in .rc
23 ###############################################################################
25 ###############################################################################
27 pluginsincludedir = $(pkgincludedir)/plugins
29 pkginclude_HEADERS = \
30 ../include/vlc/vlc.h \
31 ../include/vlc/deprecated.h \
32 ../include/vlc/libvlc.h \
33 ../include/vlc/libvlc_events.h \
34 ../include/vlc/libvlc_media.h \
35 ../include/vlc/libvlc_media_discoverer.h \
36 ../include/vlc/libvlc_media_library.h \
37 ../include/vlc/libvlc_media_list.h \
38 ../include/vlc/libvlc_media_list_player.h \
39 ../include/vlc/libvlc_media_player.h \
40 ../include/vlc/libvlc_structures.h \
41 ../include/vlc/libvlc_vlm.h \
43 nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
45 pluginsinclude_HEADERS = \
46 ../include/vlc_access.h \
47 ../include/vlc_acl.h \
48 ../include/vlc_aout.h \
49 ../include/vlc_aout_mixer.h \
50 ../include/vlc_arrays.h \
51 ../include/vlc_art_finder.h \
52 ../include/vlc_atomic.h \
53 ../include/vlc_avcodec.h \
54 ../include/vlc_bits.h \
55 ../include/vlc_block.h \
56 ../include/vlc_block_helper.h \
57 ../include/vlc_charset.h \
58 ../include/vlc_codec.h \
59 ../include/vlc_common.h \
60 ../include/vlc_config.h \
61 ../include/vlc_config_cat.h \
62 ../include/vlc_configuration.h \
63 ../include/vlc_cpu.h \
64 ../include/vlc_dialog.h \
65 ../include/vlc_demux.h \
66 ../include/vlc_epg.h \
68 ../include/vlc_es_out.h \
69 ../include/vlc_events.h \
70 ../include/vlc_filter.h \
71 ../include/vlc_fourcc.h \
73 ../include/vlc_gcrypt.h \
74 ../include/vlc_opengl.h \
75 ../include/vlc_http.h \
76 ../include/vlc_httpd.h \
77 ../include/vlc_image.h \
78 ../include/vlc_inhibit.h \
79 ../include/vlc_input.h \
80 ../include/vlc_input_item.h \
81 ../include/vlc_main.h \
82 ../include/vlc_md5.h \
83 ../include/vlc_messages.h \
84 ../include/vlc_meta.h \
85 ../include/vlc_media_library.h \
86 ../include/vlc_modules.h \
87 ../include/vlc_mouse.h \
88 ../include/vlc_mtime.h \
89 ../include/vlc_objects.h \
90 ../include/vlc_picture.h \
91 ../include/vlc_picture_fifo.h \
92 ../include/vlc_picture_pool.h \
93 ../include/vlc_playlist.h \
94 ../include/vlc_plugin.h \
95 ../include/vlc_probe.h \
96 ../include/vlc_rand.h \
97 ../include/vlc_services_discovery.h \
98 ../include/vlc_sql.h \
99 ../include/vlc_sout.h \
100 ../include/vlc_spu.h \
101 ../include/vlc_stream.h \
102 ../include/vlc_strings.h \
103 ../include/vlc_subpicture.h \
104 ../include/vlc_text_style.h \
105 ../include/vlc_threads.h \
106 ../include/vlc_url.h \
107 ../include/vlc_variables.h \
108 ../include/vlc_vlm.h \
109 ../include/vlc_video_splitter.h \
110 ../include/vlc_vout.h \
111 ../include/vlc_vout_display.h \
112 ../include/vlc_vout_osd.h \
113 ../include/vlc_vout_window.h \
114 ../include/vlc_xml.h \
115 ../include/vlc_xlib.h \
117 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
120 ../include/vlc_codec_synchro.h \
121 ../include/vlc_codecs.h \
122 ../include/vlc_extensions.h \
123 ../include/vlc_fixups.h \
124 ../include/vlc_interface.h \
125 ../include/vlc_intf_strings.h \
126 ../include/vlc_iso_lang.h \
127 ../include/vlc_keys.h \
128 ../include/vlc_memory.h \
129 ../include/vlc_network.h \
130 ../include/vlc_osd.h \
131 ../include/vlc_pgpkey.h \
132 ../include/vlc_tls.h \
133 ../include/vlc_update.h \
134 ../include/vlc_vod.h \
135 ../include/vlc_vout_wrapper.h \
136 ../include/vlc_windows_interfaces.h \
139 ../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
140 $(AM_V_GEN)cd "$(top_builddir)" && \
141 $(SHELL) ./config.status --file="src/$@"
143 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
144 $(AM_V_at)rm -f -- "$@.tmp"
145 $(AM_V_at)mkdir -p -- ../include
146 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
147 echo "static const char psz_license[] =" && \
148 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
150 echo "static const char psz_thanks[] =" && \
151 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
152 "$(top_srcdir)/THANKS" && \
154 echo "static const char psz_authors[] =" && \
155 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
156 "$(top_srcdir)/AUTHORS" && \
157 echo ";") >> "$@.tmp"
158 $(AM_V_at)mv -f -- "$@.tmp" "$@"
160 ###############################################################################
161 # pkg-config integration
162 ###############################################################################
164 pkgconfigdir = $(libdir)/pkgconfig
165 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
166 CLEANFILES += $(pkgconfig_DATA)
168 .pc.in.pc: $(top_builddir)/config.status
169 $(AM_V_GEN)cd "$(top_builddir)" && \
170 $(SHELL) ./config.status --file="src/$@"
172 ##############################################################################
173 # Windows resource files
174 ##############################################################################
177 noinst_DATA = libvlc_win32_rc.rc
179 EXTRA_DIST += libvlc_win32_rc.rc.in
181 .rc.in.rc: $(top_builddir)/config.status
182 cd "$(top_builddir)" && \
183 $(SHELL) ./config.status --file="src/$@"
185 ###############################################################################
187 ###############################################################################
189 lib_LTLIBRARIES = libvlccore.la libvlc.la
191 AM_LDFLAGS = -no-undefined
193 AM_LDFLAGS += -avoid-version
196 AM_LDFLAGS += -avoid-version
199 libvlccore_la_SOURCES = $(SOURCES_libvlc)
200 nodist_libvlccore_la_SOURCES = revision.c
201 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
202 -DMODULE_STRING=\"main\" \
203 -DLOCALEDIR=\"$(localedir)\" \
204 -DSYSCONFDIR=\"$(sysconfdir)\" \
205 -DDATA_PATH=\"$(vlcdatadir)\" \
206 -DPKGLIBDIR=\"$(vlclibdir)\"
207 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
209 -export-symbols $(srcdir)/libvlccore.sym \
211 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
212 $(LTLIBINTL) ../compat/libcompat.la
213 libvlccore_la_DEPENDENCIES = libvlccore.sym
215 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
216 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
219 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
220 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
222 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
223 nodist_libvlc_la_SOURCES = revision.c
224 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
225 libvlccore.la ../compat/libcompat.la
226 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
227 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
228 -version-info 6:0:1 \
229 -export-symbols $(srcdir)/libvlc.sym
230 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
232 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
233 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
237 EXTRA_libvlccore_la_SOURCES = \
238 $(SOURCES_libvlc_darwin) \
239 $(SOURCES_libvlc_linux) \
240 $(SOURCES_libvlc_win32) \
241 $(SOURCES_libvlc_other) \
242 $(SOURCES_libvlc_httpd) \
243 $(SOURCES_libvlc_sout) \
244 $(SOURCES_libvlc_vlm) \
247 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
250 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
253 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
256 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
259 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
261 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
268 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
271 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
273 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
277 SOURCES_libvlc_darwin = \
278 posix/darwin_dirs.c \
282 posix/darwin_specific.c \
285 SOURCES_libvlc_linux = \
290 posix/linux_specific.c \
293 SOURCES_libvlc_win32 = \
302 SOURCES_libvlc_symbian = \
308 SOURCES_libvlc_other = \
316 SOURCES_libvlc_common = \
323 interface/interface.c \
324 interface/intf_eject.c \
325 playlist/playlist_internal.h \
334 playlist/loadsave.c \
335 playlist/preparser.c \
336 playlist/preparser.h \
340 playlist/services_discovery.c \
346 input/decoder_synchro.c \
349 input/es_out_timeshift.c \
359 input/es_out_timeshift.h \
363 input/input_internal.h \
364 input/input_interface.h \
365 input/vlm_internal.h \
370 input/stream_demux.c \
371 input/stream_filter.c \
372 input/stream_memory.c \
375 video_output/chrono.h \
376 video_output/control.c \
377 video_output/control.h \
378 video_output/display.c \
379 video_output/display.h \
380 video_output/event.h \
381 video_output/inhibit.c \
382 video_output/inhibit.h \
383 video_output/interlacing.c \
384 video_output/interlacing.h \
385 video_output/snapshot.c \
386 video_output/snapshot.h \
387 video_output/statistic.h \
388 video_output/postprocessing.c \
389 video_output/postprocessing.h \
390 video_output/video_output.c \
391 video_output/video_text.c \
392 video_output/video_epg.c \
393 video_output/video_widgets.c \
394 video_output/vout_subpictures.c \
395 video_output/window.c \
396 video_output/opengl.c \
397 video_output/vout_intf.c \
398 video_output/vout_internal.h \
399 video_output/vout_control.h \
400 video_output/vout_wrapper.c \
401 audio_output/aout_internal.h \
402 audio_output/common.c \
404 audio_output/filters.c \
405 audio_output/input.c \
406 audio_output/mixer.c \
407 audio_output/output.c \
408 audio_output/intf.c \
412 network/getaddrinfo.c \
433 misc/picture_fifo.c \
434 misc/picture_pool.c \
440 modules/textdomain.c \
446 config/configuration.h \
455 config/vlc_getopt.h \
465 misc/update_crypto.c \
467 misc/media_library.c \
471 misc/filter_chain.c \
479 SOURCES_libvlc_httpd = \
483 SOURCES_libvlc_sout = \
484 stream_output/stream_output.c \
485 stream_output/stream_output.h \
486 stream_output/announce.c \
487 stream_output/sap.c \
488 stream_output/sdp.c \
491 SOURCES_libvlc_vlm = \
498 $(SOURCES_libvlc_common) \
499 $(OPT_SOURCES_libvlc_darwin) \
500 $(OPT_SOURCES_libvlc_win32) \
503 SOURCES_libvlc_control = \
504 control/libvlc_internal.h \
505 control/event_internal.h \
506 control/media_internal.h \
507 control/media_list_internal.h \
508 control/media_player_internal.h \
517 control/event_async.c \
519 control/media_player.c \
520 control/media_list.c \
521 control/media_list_path.h \
522 control/media_list_player.c \
523 control/media_library.c \
524 control/media_discoverer.c
526 ###############################################################################
528 ###############################################################################
530 BUILT_SOURCES += stamp-revision
531 CLEANFILES += revision.txt revision.c
533 revision.c: revision.txt
534 $(AM_V_at)rm -f -- revision.c
535 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
538 revision.txt: Makefile.am
539 $(AM_V_at)$(MAKE) stamp-revision
540 $(AM_V_GEN)touch revision.txt
543 $(AM_V_at)rm -f -- revision.tmp
544 $(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
545 --match '?.*.*' --always || echo exported) > revision.tmp
546 $(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
547 rm -f -- revision.tmp; \
549 mv -f -- revision.tmp revision.txt; \
552 ###############################################################################
553 # Unit/regression test
554 ###############################################################################
556 dist_check_SCRIPTS = check_symbols check_headers
557 TESTS = check_symbols
559 check_DATA = libvlc-headers.sym libvlc-sorted.sym
560 CLEANFILES += $(check_DATA)
562 libvlc-sorted.sym: libvlccore.sym
563 rm -f libvlc-sorted.sym
564 sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
567 rm -f libvlc-headers.sym
568 cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
569 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
570 sed -e 's/[^a-zA-Z0-9_]*//' | \
571 sort -fdu > libvlc-headers.sym
573 .PHONY: libvlc-headers.sym
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 $(srcdir)/check_headers $(pkginclude_HEADERS)
586 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
589 @echo "Generated source cannot be phony. Go away." >&2