1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
9 EXTRA_DIST = extras/COPYING \
10 misc/beos_specific.cpp \
16 BUILT_SOURCES = ../include/vlc_about.h
17 CLEANFILES = $(BUILT_SOURCES)
21 ###############################################################################
23 ###############################################################################
25 pluginsincludedir = $(pkgincludedir)/plugins
27 pkginclude_HEADERS = \
28 ../include/vlc/vlc.h \
29 ../include/vlc/deprecated.h \
30 ../include/vlc/libvlc.h \
31 ../include/vlc/libvlc_events.h \
32 ../include/vlc/libvlc_media.h \
33 ../include/vlc/libvlc_media_discoverer.h \
34 ../include/vlc/libvlc_media_library.h \
35 ../include/vlc/libvlc_media_list.h \
36 ../include/vlc/libvlc_media_list_player.h \
37 ../include/vlc/libvlc_media_list_view.h \
38 ../include/vlc/libvlc_media_player.h \
39 ../include/vlc/libvlc_structures.h \
40 ../include/vlc/libvlc_vlm.h \
41 ../include/vlc/mediacontrol.h \
42 ../include/vlc/mediacontrol_structures.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_avcodec.h \
53 ../include/vlc_bits.h \
54 ../include/vlc_block.h \
55 ../include/vlc_block_helper.h \
56 ../include/vlc_charset.h \
57 ../include/vlc_codec.h \
58 ../include/vlc_common.h \
59 ../include/vlc_config.h \
60 ../include/vlc_config_cat.h \
61 ../include/vlc_configuration.h \
62 ../include/vlc_cpu.h \
63 ../include/vlc_dialog.h \
64 ../include/vlc_demux.h \
65 ../include/vlc_epg.h \
67 ../include/vlc_es_out.h \
68 ../include/vlc_events.h \
69 ../include/vlc_filter.h \
70 ../include/vlc_fourcc.h \
71 ../include/vlc_gcrypt.h \
72 ../include/vlc_http.h \
73 ../include/vlc_httpd.h \
74 ../include/vlc_image.h \
75 ../include/vlc_inhibit.h \
76 ../include/vlc_input.h \
77 ../include/vlc_input_item.h \
78 ../include/vlc_main.h \
79 ../include/vlc_md5.h \
80 ../include/vlc_messages.h \
81 ../include/vlc_meta.h \
82 ../include/vlc_modules.h \
83 ../include/vlc_mouse.h \
84 ../include/vlc_mtime.h \
85 ../include/vlc_objects.h \
86 ../include/vlc_picture.h \
87 ../include/vlc_picture_fifo.h \
88 ../include/vlc_picture_pool.h \
89 ../include/vlc_playlist.h \
90 ../include/vlc_plugin.h \
91 ../include/vlc_probe.h \
92 ../include/vlc_rand.h \
93 ../include/vlc_services_discovery.h \
94 ../include/vlc_sql.h \
95 ../include/vlc_sout.h \
96 ../include/vlc_stream.h \
97 ../include/vlc_strings.h \
98 ../include/vlc_subpicture.h \
99 ../include/vlc_threads.h \
100 ../include/vlc_url.h \
101 ../include/vlc_variables.h \
102 ../include/vlc_vlm.h \
103 ../include/vlc_video_splitter.h \
104 ../include/vlc_vout.h \
105 ../include/vlc_vout_display.h \
106 ../include/vlc_vout_opengl.h \
107 ../include/vlc_vout_window.h \
108 ../include/vlc_xml.h \
112 ../include/vlc_codec_synchro.h \
113 ../include/vlc_codecs.h \
114 ../include/vlc_extensions.h \
115 ../include/vlc_fixups.h \
116 ../include/vlc_interface.h \
117 ../include/vlc_intf_strings.h \
118 ../include/vlc_iso_lang.h \
119 ../include/vlc_keys.h \
120 ../include/vlc_memory.h \
121 ../include/vlc_network.h \
122 ../include/vlc_osd.h \
123 ../include/vlc_pgpkey.h \
124 ../include/vlc_tls.h \
125 ../include/vlc_update.h \
126 ../include/vlc_vod.h \
127 ../include/vlc_vout_wrapper.h \
130 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
132 mkdir -p -- ../include
133 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
134 echo "static const char psz_license[] =" >> "$@.tmp"
135 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" >> "$@.tmp"
137 echo "static const char psz_thanks[] =" >> "$@.tmp"
138 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
139 "$(top_srcdir)/THANKS" >> "$@.tmp"
141 echo "static const char psz_authors[] =" >> "$@.tmp"
142 sed -n '/^N: /{;s///;s/"/\\"/g;s/^.*$$/\"&\\n\"/;p;}' \
143 "$(top_srcdir)/AUTHORS" >> "$@.tmp"
146 mv -f -- "$@.tmp" "$@"
148 ###############################################################################
149 # pkg-config integration
150 ###############################################################################
152 pkgconfigdir = $(libdir)/pkgconfig
153 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
154 CLEANFILES += $(pkgconfig_DATA)
156 .pc.in.pc: $(top_builddir)/config.status
157 cd "$(top_builddir)" && \
158 $(SHELL) ./config.status --file="src/$@"
160 ###############################################################################
162 ###############################################################################
165 $(top_builddir)/compile
167 lib_LTLIBRARIES = libvlccore.la libvlc.la
169 AM_LDFLAGS = -no-undefined
171 AM_LDFLAGS += -avoid-version
174 AM_LDFLAGS += -avoid-version
177 libvlccore_la_SOURCES = $(SOURCES_libvlc)
178 nodist_libvlccore_la_SOURCES = revision.c
179 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
180 -DMODULE_STRING=\"main\" \
181 -DLOCALEDIR=\"$(localedir)\" \
182 -DSYSCONFDIR=\"$(sysconfdir)\" \
183 -DDATA_PATH=\"$(vlcdatadir)\" \
184 -DLIBDIR=\"$(libdir)\" \
185 -DPLUGIN_PATH=\"$(vlclibdir)\"
186 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
188 -export-symbols $(srcdir)/libvlccore.sym \
190 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
191 $(LTLIBINTL) ../compat/libcompat.la
192 libvlccore_la_DEPENDENCIES = libvlccore.sym
194 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
195 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
198 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
199 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
201 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
202 nodist_libvlc_la_SOURCES = revision.c
203 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
204 libvlccore.la ../compat/libcompat.la
205 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
206 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
207 -version-info 5:0:0 \
208 -export-symbols $(srcdir)/libvlc.sym
209 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
211 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
212 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
216 EXTRA_libvlccore_la_SOURCES = \
217 $(SOURCES_libvlc_beos) \
218 $(SOURCES_libvlc_darwin) \
219 $(SOURCES_libvlc_linux) \
220 $(SOURCES_libvlc_win32) \
221 $(SOURCES_libvlc_other) \
222 $(SOURCES_libvlc_dirent) \
223 $(SOURCES_libvlc_getopt) \
224 $(SOURCES_libvlc_httpd) \
225 $(SOURCES_libvlc_sout) \
226 $(SOURCES_libvlc_vlm) \
229 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
235 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
238 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
241 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
243 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
250 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
253 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
256 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
259 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
261 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
265 SOURCES_libvlc_beos = \
269 SOURCES_libvlc_darwin = \
270 config/dirs_macos.c \
272 misc/darwin_specific.c \
275 SOURCES_libvlc_linux = \
278 misc/linux_specific.c \
281 SOURCES_libvlc_win32 = \
288 SOURCES_libvlc_other = \
293 SOURCES_libvlc_dirent = \
297 SOURCES_libvlc_getopt = \
303 SOURCES_libvlc_common = \
310 interface/interface.c \
311 interface/intf_eject.c \
312 playlist/playlist_internal.h \
321 playlist/loadsave.c \
322 playlist/preparser.c \
323 playlist/preparser.h \
327 playlist/services_discovery.c \
333 input/decoder_synchro.c \
336 input/es_out_timeshift.c \
345 input/es_out_timeshift.h \
349 input/input_internal.h \
350 input/input_interface.h \
351 input/vlm_internal.h \
356 input/stream_demux.c \
357 input/stream_filter.c \
358 input/stream_memory.c \
361 video_output/display.c \
362 video_output/display.h \
363 video_output/event.h \
364 video_output/inhibit.c \
365 video_output/inhibit.h \
366 video_output/snapshot.c \
367 video_output/snapshot.h \
368 video_output/statistic.h \
369 video_output/video_output.c \
370 video_output/vout_pictures.c \
371 video_output/vout_pictures.h \
372 video_output/video_text.c \
373 video_output/video_widgets.c \
374 video_output/vout_subpictures.c \
375 video_output/window.c \
376 video_output/vout_intf.c \
377 video_output/vout_internal.h \
378 video_output/vout_control.h \
379 audio_output/aout_internal.h \
380 audio_output/common.c \
382 audio_output/filters.c \
383 audio_output/input.c \
384 audio_output/mixer.c \
385 audio_output/output.c \
386 audio_output/intf.c \
391 network/getaddrinfo.c \
412 misc/picture_fifo.c \
413 misc/picture_pool.c \
424 config/configuration.h \
441 misc/update_crypto.c \
446 misc/filter_chain.c \
451 SOURCES_libvlc_httpd = \
455 SOURCES_libvlc_sout = \
456 stream_output/stream_output.c \
457 stream_output/stream_output.h \
458 stream_output/announce.c \
459 stream_output/sap.c \
460 stream_output/sdp.c \
463 SOURCES_libvlc_vlm = \
470 $(SOURCES_libvlc_common) \
471 $(OPT_SOURCES_libvlc_beos) \
472 $(OPT_SOURCES_libvlc_darwin) \
473 $(OPT_SOURCES_libvlc_win32) \
474 $(OPT_SOURCES_libvlc_dirent) \
475 $(OPT_SOURCES_libvlc_getopt) \
478 SOURCES_libvlc_control = \
479 control/libvlc_internal.h \
480 control/event_internal.h \
481 control/media_internal.h \
482 control/media_list_internal.h \
483 control/media_list_view_internal.h \
484 control/media_player_internal.h \
493 control/event_async.c \
494 control/flat_media_list_view.c \
495 control/hierarchical_media_list_view.c \
496 control/hierarchical_node_media_list_view.c \
498 control/media_player.c \
499 control/media_list.c \
500 control/media_list_path.h \
501 control/media_list_player.c \
502 control/media_list_view.c \
503 control/media_library.c \
504 control/mediacontrol_internal.h \
505 control/mediacontrol_core.c \
506 control/mediacontrol_util.c \
507 control/mediacontrol_audio_video.c \
508 control/media_discoverer.c
510 ###############################################################################
512 ###############################################################################
514 BUILT_SOURCES += stamp-revision
515 CLEANFILES += revision.txt revision.c
517 revision.c: revision.txt
519 echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
522 revision.txt: Makefile.am
523 $(MAKE) stamp-revision
527 rm -f -- revision.tmp
528 (git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
529 --match '?.*.*' --always || echo exported) > revision.tmp
530 if diff revision.tmp revision.txt >/dev/null; then \
531 rm -f -- revision.tmp; \
533 mv -f -- revision.tmp revision.txt; \
536 ###############################################################################
537 # Unit/regression test
538 ###############################################################################
540 dist_check_SCRIPTS = check_symbols check_headers
541 TESTS = check_symbols
543 check_DATA = libvlc-headers.sym libvlc-sorted.sym
544 CLEANFILES += $(check_DATA)
546 libvlc-sorted.sym: libvlccore.sym
547 rm -f libvlc-sorted.sym
548 sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
551 rm -f libvlc-headers.sym
552 cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
553 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
554 sed -e 's/[^a-zA-Z0-9_]*//' | \
555 sort -fdu > libvlc-headers.sym
557 .PHONY: libvlc-headers.sym
560 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
562 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
563 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
565 echo "Header $$h not included in test/headers.c!"; \
569 $(srcdir)/check_headers $(pkginclude_HEADERS)
570 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
573 @echo "Generated source cannot be phony. Go away." >&2