1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
9 EXTRA_DIST = extras/COPYING modules/builtin.h.in \
10 misc/beos_specific.cpp \
16 BUILT_SOURCES = modules/builtin.h ../include/vlc_about.h
17 CLEANFILES = $(BUILT_SOURCES)
21 ###############################################################################
23 ###############################################################################
25 pkgincludedir = $(includedir)/vlc
26 pluginsincludedir = $(pkgincludedir)/plugins
28 pkginclude_HEADERS = \
29 ../include/vlc/vlc.h \
30 ../include/vlc/deprecated.h \
31 ../include/vlc/libvlc.h \
32 ../include/vlc/libvlc_structures.h \
33 ../include/vlc/libvlc_media_list.h \
34 ../include/vlc/libvlc_events.h \
35 ../include/vlc/libvlc_vlm.h \
36 ../include/vlc/mediacontrol.h \
37 ../include/vlc/mediacontrol_structures.h \
40 pluginsinclude_HEADERS = \
41 ../include/vlc_access.h \
42 ../include/vlc_acl.h \
43 ../include/vlc_aout.h \
44 ../include/vlc_arrays.h \
45 ../include/vlc_bits.h \
46 ../include/vlc_block.h \
47 ../include/vlc_block_helper.h \
48 ../include/vlc_charset.h \
49 ../include/vlc_codec.h \
50 ../include/vlc_common.h \
51 ../include/vlc_config.h \
52 ../include/vlc_config_cat.h \
53 ../include/vlc_configuration.h \
54 ../include/vlc_demux.h \
55 ../include/vlc_epg.h \
57 ../include/vlc_es_out.h \
58 ../include/vlc_events.h \
59 ../include/vlc_filter.h \
60 ../include/vlc_gcrypt.h \
61 ../include/vlc_httpd.h \
62 ../include/vlc_image.h \
63 ../include/vlc_input.h \
64 ../include/vlc_input_item.h \
65 ../include/vlc_main.h \
66 ../include/vlc_md5.h \
67 ../include/vlc_messages.h \
68 ../include/vlc_meta.h \
69 ../include/vlc_modules.h \
70 ../include/vlc_mtime.h \
71 ../include/vlc_objects.h \
72 ../include/vlc_playlist.h \
73 ../include/vlc_plugin.h \
74 ../include/vlc_rand.h \
75 ../include/vlc_services_discovery.h \
76 ../include/vlc_sout.h \
77 ../include/vlc_stream.h \
78 ../include/vlc_strings.h \
79 ../include/vlc_threads.h \
80 ../include/vlc_url.h \
81 ../include/vlc_variables.h \
82 ../include/vlc_vlm.h \
83 ../include/vlc_vout.h \
84 ../include/vlc_window.h \
85 ../include/vlc_xml.h \
90 ../include/vlc_codec_synchro.h \
91 ../include/vlc_codecs.h \
92 ../include/vlc_devices.h \
93 ../include/vlc_fixups.h \
94 ../include/vlc_interface.h \
95 ../include/vlc_intf_strings.h \
96 ../include/vlc_iso_lang.h \
97 ../include/vlc_keys.h \
98 ../include/vlc_network.h \
99 ../include/vlc_osd.h \
100 ../include/vlc_pgpkey.h \
101 ../include/vlc_tls.h \
102 ../include/vlc_update.h \
103 ../include/vlc_vod.h \
106 modules/builtin.h: modules/builtin.h.in ../vlc-config Makefile.am
108 cat "$(srcdir)/modules/builtin.h.in" > "$@.tmp"
110 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
111 test -n "$${plugins}" && \
112 for p in $${plugins}; do \
113 echo "int vlc_entry__$$p (module_t *);" ; \
116 echo "#define ALLOCATE_ALL_BUILTINS() \\" >> "$@.tmp"
117 echo " do \\" >> "$@.tmp"
118 echo " { \\" >> "$@.tmp"
120 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
121 test -n "$${plugins}" && \
122 for p in $${plugins}; do \
123 echo " ALLOCATE_BUILTIN($$p); \\" ; \
126 echo ' } while( 0 );' >> "$@.tmp"
127 mv -f -- "$@.tmp" "$@"
129 modules/modules.c: modules/builtin.h
131 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
133 mkdir -p -- ../include
134 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
135 echo "static const char psz_license[] =" >> "$@.tmp"
136 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
138 echo "static const char psz_thanks[] =" >> "$@.tmp"
139 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
141 echo "static const char psz_authors[] =" >> "$@.tmp"
142 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
144 mv -f -- "$@.tmp" "$@"
146 ###############################################################################
147 # pkg-config integration
148 ###############################################################################
150 pkgconfigdir = $(libdir)/pkgconfig
151 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
152 CLEANFILES += $(pkgconfig_DATA)
154 .pc.in.pc: $(top_builddir)/config.status
155 cd "$(top_builddir)" && \
156 $(SHELL) ./config.status --file="src/$@"
158 ###############################################################################
160 ###############################################################################
163 $(top_builddir)/compile
165 lib_LTLIBRARIES = libvlccore.la libvlc.la
167 AM_LDFLAGS = -no-undefined
169 AM_LDFLAGS += -avoid-version
172 AM_LDFLAGS += -avoid-version
175 libvlccore_la_SOURCES = $(SOURCES_libvlc)
176 nodist_libvlccore_la_SOURCES = misc/revision.c
177 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
178 -DMODULE_STRING=\"main\" \
179 -DLOCALEDIR=\"$(localedir)\" \
180 -DSYSCONFDIR=\"$(sysconfdir)\" \
181 -DDATA_PATH=\"$(pkgdatadir)\" \
182 -DLIBDIR=\"$(libdir)\" \
183 -DPLUGIN_PATH=\"$(pkglibdir)\"
184 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
185 -export-symbols $(srcdir)/libvlccore.sym \
187 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
188 libvlccore_la_DEPENDENCIES = libvlccore.sym
190 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
191 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
194 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
195 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
197 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
198 libvlc_la_LIBADD = libvlccore.la
199 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
200 -DMODULE_STRING=\"control\"
201 libvlc_la_LDFLAGS = $(AM_LDFLAGS) \
202 -version-info 2:2:0 \
203 -export-symbols $(srcdir)/libvlc.sym
204 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
206 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
207 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
211 EXTRA_libvlccore_la_SOURCES = \
212 $(SOURCES_libvlc_beos) \
213 $(SOURCES_libvlc_darwin) \
214 $(SOURCES_libvlc_linux) \
215 $(SOURCES_libvlc_win32) \
216 $(SOURCES_libvlc_other) \
217 $(SOURCES_libvlc_dirent) \
218 $(SOURCES_libvlc_getopt) \
219 $(SOURCES_libvlc_httpd) \
220 $(SOURCES_libvlc_sout) \
221 $(SOURCES_libvlc_vlm) \
224 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
227 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
233 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
236 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
238 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
245 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
248 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
251 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
254 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
256 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
260 SOURCES_libvlc_beos = \
263 SOURCES_libvlc_darwin = \
264 misc/darwin_specific.c \
267 SOURCES_libvlc_linux = \
268 misc/linux_specific.c \
271 SOURCES_libvlc_win32 = \
272 misc/win32_specific.c \
276 SOURCES_libvlc_other = misc/not_specific.c
278 SOURCES_libvlc_dirent = \
282 SOURCES_libvlc_getopt = \
288 SOURCES_libvlc_common = \
294 interface/interface.h \
295 interface/interface.c \
296 interface/intf_eject.c \
297 interface/interaction.c \
298 playlist/playlist_internal.h \
307 playlist/loadsave.c \
308 playlist/preparser.c \
309 playlist/preparser.h \
313 playlist/services_discovery.c \
319 input/decoder_synchro.c \
322 input/es_out_timeshift.c \
331 input/es_out_timeshift.h \
335 input/input_internal.h \
336 input/input_interface.h \
337 input/vlm_internal.h \
341 input/stream_demux.c \
342 input/stream_filter.c \
343 input/stream_memory.c \
346 video_output/video_output.c \
347 video_output/vout_pictures.c \
348 video_output/vout_pictures.h \
349 video_output/video_text.c \
350 video_output/video_widgets.c \
351 video_output/vout_subpictures.c \
352 video_output/vout_intf.c \
353 video_output/vout_internal.h \
354 video_output/vout_control.h \
355 audio_output/aout_internal.h \
356 audio_output/common.c \
358 audio_output/filters.c \
359 audio_output/input.c \
360 audio_output/mixer.c \
361 audio_output/output.c \
362 audio_output/intf.c \
367 network/getaddrinfo.c \
395 config/configuration.h \
414 misc/filter_chain.c \
417 SOURCES_libvlc_httpd = \
421 SOURCES_libvlc_sout = \
422 stream_output/stream_output.c \
423 stream_output/stream_output.h \
424 stream_output/announce.c \
425 stream_output/sap.c \
426 stream_output/sdp.c \
429 SOURCES_libvlc_vlm = \
435 $(SOURCES_libvlc_common) \
436 $(OPT_SOURCES_libvlc_beos) \
437 $(OPT_SOURCES_libvlc_darwin) \
438 $(OPT_SOURCES_libvlc_win32) \
439 $(OPT_SOURCES_libvlc_dirent) \
440 $(OPT_SOURCES_libvlc_getopt) \
443 SOURCES_libvlc_control = \
444 control/libvlc_internal.h \
452 control/flat_media_list_view.c \
453 control/hierarchical_media_list_view.c \
454 control/hierarchical_node_media_list_view.c \
456 control/media_player.c \
457 control/media_list.c \
458 control/media_list_path.h \
459 control/media_list_player.c \
460 control/media_list_view.c \
461 control/media_library.c \
462 control/mediacontrol_internal.h \
463 control/mediacontrol_core.c \
464 control/mediacontrol_util.c \
465 control/mediacontrol_audio_video.c \
466 control/media_discoverer.c
468 ###############################################################################
470 ###############################################################################
474 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@
475 REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo "$(VERSION)")"; \
476 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@
477 diff $@ misc/revision.c >/dev/null 2>&1 || \
478 cat misc/revision.c.tmp > misc/revision.c
481 $(MAKE) misc/revision.c.tmp
482 cat misc/revision.c.tmp > misc/revision.c
484 BUILT_SOURCES += misc/revision.c.tmp misc/revision.c
486 .PHONY: misc/revision.c.tmp
488 ###############################################################################
489 # Unit/regression test
490 ###############################################################################
492 dist_check_SCRIPTS = check_symbols check_headers
493 TESTS = check_symbols
496 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
498 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
499 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
501 echo "Header $$h not included in test/headers.c!"; \
505 $(srcdir)/check_headers $(pkginclude_HEADERS)
506 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
509 @echo "Generated source cannot be phony. Go away." >&2