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)
19 SUFFIXES = .pc.in .pc .rc.in .rc
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
131 $(AM_V_at)rm -f -- "$@.tmp"
132 $(AM_V_at)mkdir -p -- ../include
133 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
134 echo "static const char psz_license[] =" && \
135 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
137 echo "static const char psz_thanks[] =" && \
138 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
139 "$(top_srcdir)/THANKS" && \
141 echo "static const char psz_authors[] =" && \
142 sed -n '/^N: /{;s///;s/"/\\"/g;s/^.*$$/\"&\\n\"/;p;}' \
143 "$(top_srcdir)/AUTHORS" && \
144 echo ";") >> "$@.tmp"
145 $(AM_V_at)mv -f -- "$@.tmp" "$@"
147 ###############################################################################
148 # pkg-config integration
149 ###############################################################################
151 pkgconfigdir = $(libdir)/pkgconfig
152 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
153 CLEANFILES += $(pkgconfig_DATA)
155 .pc.in.pc: $(top_builddir)/config.status
156 $(AM_V_GEN)cd "$(top_builddir)" && \
157 $(SHELL) ./config.status --file="src/$@"
159 ##############################################################################
160 # Windows resource files
161 ##############################################################################
164 noinst_DATA = libvlc_win32_rc.rc
166 EXTRA_DIST += libvlc_win32_rc.rc.in
168 .rc.in.rc: $(top_builddir)/config.status
169 cd "$(top_builddir)" && \
170 $(SHELL) ./config.status --file="src/$@"
172 ###############################################################################
174 ###############################################################################
177 $(top_builddir)/compile
179 lib_LTLIBRARIES = libvlccore.la libvlc.la
181 AM_LDFLAGS = -no-undefined
183 AM_LDFLAGS += -avoid-version
186 AM_LDFLAGS += -avoid-version
189 libvlccore_la_SOURCES = $(SOURCES_libvlc)
190 nodist_libvlccore_la_SOURCES = revision.c
191 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
192 -DMODULE_STRING=\"main\" \
193 -DLOCALEDIR=\"$(localedir)\" \
194 -DSYSCONFDIR=\"$(sysconfdir)\" \
195 -DDATA_PATH=\"$(vlcdatadir)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DPLUGIN_PATH=\"$(vlclibdir)\"
198 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
200 -export-symbols $(srcdir)/libvlccore.sym \
202 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
203 $(LTLIBINTL) ../compat/libcompat.la
204 libvlccore_la_DEPENDENCIES = libvlccore.sym
206 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
207 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
210 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
211 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
213 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
214 nodist_libvlc_la_SOURCES = revision.c
215 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
216 libvlccore.la ../compat/libcompat.la
217 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
218 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
219 -version-info 5:0:0 \
220 -export-symbols $(srcdir)/libvlc.sym
221 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
223 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
224 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
228 EXTRA_libvlccore_la_SOURCES = \
229 $(SOURCES_libvlc_beos) \
230 $(SOURCES_libvlc_darwin) \
231 $(SOURCES_libvlc_linux) \
232 $(SOURCES_libvlc_win32) \
233 $(SOURCES_libvlc_other) \
234 $(SOURCES_libvlc_dirent) \
235 $(SOURCES_libvlc_getopt) \
236 $(SOURCES_libvlc_httpd) \
237 $(SOURCES_libvlc_sout) \
238 $(SOURCES_libvlc_vlm) \
241 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
244 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
247 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
250 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
253 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
255 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
262 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
265 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
268 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
271 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
273 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
277 SOURCES_libvlc_beos = \
281 SOURCES_libvlc_darwin = \
282 config/dirs_macos.c \
284 misc/darwin_specific.c \
287 SOURCES_libvlc_linux = \
290 misc/linux_specific.c \
293 SOURCES_libvlc_win32 = \
300 SOURCES_libvlc_other = \
305 SOURCES_libvlc_dirent = \
309 SOURCES_libvlc_getopt = \
315 SOURCES_libvlc_common = \
322 interface/interface.c \
323 interface/intf_eject.c \
324 playlist/playlist_internal.h \
333 playlist/loadsave.c \
334 playlist/preparser.c \
335 playlist/preparser.h \
339 playlist/services_discovery.c \
345 input/decoder_synchro.c \
348 input/es_out_timeshift.c \
357 input/es_out_timeshift.h \
361 input/input_internal.h \
362 input/input_interface.h \
363 input/vlm_internal.h \
368 input/stream_demux.c \
369 input/stream_filter.c \
370 input/stream_memory.c \
373 video_output/display.c \
374 video_output/display.h \
375 video_output/event.h \
376 video_output/inhibit.c \
377 video_output/inhibit.h \
378 video_output/snapshot.c \
379 video_output/snapshot.h \
380 video_output/statistic.h \
381 video_output/video_output.c \
382 video_output/vout_pictures.c \
383 video_output/vout_pictures.h \
384 video_output/video_text.c \
385 video_output/video_widgets.c \
386 video_output/vout_subpictures.c \
387 video_output/window.c \
388 video_output/vout_intf.c \
389 video_output/vout_internal.h \
390 video_output/vout_control.h \
391 audio_output/aout_internal.h \
392 audio_output/common.c \
394 audio_output/filters.c \
395 audio_output/input.c \
396 audio_output/mixer.c \
397 audio_output/output.c \
398 audio_output/intf.c \
403 network/getaddrinfo.c \
423 misc/picture_fifo.c \
424 misc/picture_pool.c \
430 modules/textdomain.c \
436 config/configuration.h \
453 misc/update_crypto.c \
458 misc/filter_chain.c \
463 SOURCES_libvlc_httpd = \
467 SOURCES_libvlc_sout = \
468 stream_output/stream_output.c \
469 stream_output/stream_output.h \
470 stream_output/announce.c \
471 stream_output/sap.c \
472 stream_output/sdp.c \
475 SOURCES_libvlc_vlm = \
482 $(SOURCES_libvlc_common) \
483 $(OPT_SOURCES_libvlc_beos) \
484 $(OPT_SOURCES_libvlc_darwin) \
485 $(OPT_SOURCES_libvlc_win32) \
486 $(OPT_SOURCES_libvlc_dirent) \
487 $(OPT_SOURCES_libvlc_getopt) \
490 SOURCES_libvlc_control = \
491 control/libvlc_internal.h \
492 control/event_internal.h \
493 control/media_internal.h \
494 control/media_list_internal.h \
495 control/media_list_view_internal.h \
496 control/media_player_internal.h \
505 control/event_async.c \
506 control/flat_media_list_view.c \
507 control/hierarchical_media_list_view.c \
508 control/hierarchical_node_media_list_view.c \
510 control/media_player.c \
511 control/media_list.c \
512 control/media_list_path.h \
513 control/media_list_player.c \
514 control/media_list_view.c \
515 control/media_library.c \
516 control/mediacontrol_internal.h \
517 control/mediacontrol_core.c \
518 control/mediacontrol_util.c \
519 control/mediacontrol_audio_video.c \
520 control/media_discoverer.c
522 ###############################################################################
524 ###############################################################################
526 BUILT_SOURCES += stamp-revision
527 CLEANFILES += revision.txt revision.c
529 revision.c: revision.txt
530 $(AM_V_at)rm -f -- revision.c
531 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
534 revision.txt: Makefile.am
535 $(AM_V_at)$(MAKE) stamp-revision
536 $(AM_V_GEN)touch revision.txt
539 $(AM_V_at)rm -f -- revision.tmp
540 $(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
541 --match '?.*.*' --always || echo exported) > revision.tmp
542 $(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
543 rm -f -- revision.tmp; \
545 mv -f -- revision.tmp revision.txt; \
548 ###############################################################################
549 # Unit/regression test
550 ###############################################################################
552 dist_check_SCRIPTS = check_symbols check_headers
553 TESTS = check_symbols
555 check_DATA = libvlc-headers.sym libvlc-sorted.sym
556 CLEANFILES += $(check_DATA)
558 libvlc-sorted.sym: libvlccore.sym
559 rm -f libvlc-sorted.sym
560 sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
563 rm -f libvlc-headers.sym
564 cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
565 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
566 sed -e 's/[^a-zA-Z0-9_]*//' | \
567 sort -fdu > libvlc-headers.sym
569 .PHONY: libvlc-headers.sym
572 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
574 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
575 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
577 echo "Header $$h not included in test/headers.c!"; \
581 $(srcdir)/check_headers $(pkginclude_HEADERS)
582 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
585 @echo "Generated source cannot be phony. Go away." >&2