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 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_structures.h \
32 ../include/vlc/libvlc_media_list.h \
33 ../include/vlc/libvlc_events.h \
34 ../include/vlc/libvlc_vlm.h \
35 ../include/vlc/mediacontrol.h \
36 ../include/vlc/mediacontrol_structures.h \
39 pluginsinclude_HEADERS = \
40 ../include/vlc_access.h \
41 ../include/vlc_acl.h \
42 ../include/vlc_aout.h \
43 ../include/vlc_arrays.h \
44 ../include/vlc_bits.h \
45 ../include/vlc_block.h \
46 ../include/vlc_block_helper.h \
47 ../include/vlc_charset.h \
48 ../include/vlc_codec.h \
49 ../include/vlc_common.h \
50 ../include/vlc_config.h \
51 ../include/vlc_config_cat.h \
52 ../include/vlc_configuration.h \
53 ../include/vlc_demux.h \
54 ../include/vlc_epg.h \
56 ../include/vlc_es_out.h \
57 ../include/vlc_events.h \
58 ../include/vlc_filter.h \
59 ../include/vlc_gcrypt.h \
60 ../include/vlc_httpd.h \
61 ../include/vlc_image.h \
62 ../include/vlc_input.h \
63 ../include/vlc_input_item.h \
64 ../include/vlc_main.h \
65 ../include/vlc_md5.h \
66 ../include/vlc_messages.h \
67 ../include/vlc_meta.h \
68 ../include/vlc_modules.h \
69 ../include/vlc_mtime.h \
70 ../include/vlc_objects.h \
71 ../include/vlc_playlist.h \
72 ../include/vlc_plugin.h \
73 ../include/vlc_rand.h \
74 ../include/vlc_services_discovery.h \
75 ../include/vlc_sout.h \
76 ../include/vlc_stream.h \
77 ../include/vlc_strings.h \
78 ../include/vlc_threads.h \
79 ../include/vlc_url.h \
80 ../include/vlc_variables.h \
81 ../include/vlc_vlm.h \
82 ../include/vlc_vout.h \
83 ../include/vlc_window.h \
84 ../include/vlc_xml.h \
89 ../include/vlc_codec_synchro.h \
90 ../include/vlc_codecs.h \
91 ../include/vlc_devices.h \
92 ../include/vlc_fixups.h \
93 ../include/vlc_interface.h \
94 ../include/vlc_intf_strings.h \
95 ../include/vlc_iso_lang.h \
96 ../include/vlc_keys.h \
97 ../include/vlc_network.h \
98 ../include/vlc_osd.h \
99 ../include/vlc_pgpkey.h \
100 ../include/vlc_tls.h \
101 ../include/vlc_update.h \
102 ../include/vlc_vod.h \
105 modules/builtin.h: modules/builtin.h.in ../vlc-config Makefile.am
107 cat "$(srcdir)/modules/builtin.h.in" > "$@.tmp"
109 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
110 test -n "$${plugins}" && \
111 for p in $${plugins}; do \
112 echo "int vlc_entry__$$p (module_t *);" ; \
115 echo "#define ALLOCATE_ALL_BUILTINS() \\" >> "$@.tmp"
116 echo " do \\" >> "$@.tmp"
117 echo " { \\" >> "$@.tmp"
119 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
120 test -n "$${plugins}" && \
121 for p in $${plugins}; do \
122 echo " ALLOCATE_BUILTIN($$p); \\" ; \
125 echo ' } while( 0 );' >> "$@.tmp"
126 mv -f -- "$@.tmp" "$@"
128 modules/modules.c: modules/builtin.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 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
137 echo "static const char psz_thanks[] =" >> "$@.tmp"
138 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
140 echo "static const char psz_authors[] =" >> "$@.tmp"
141 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
143 mv -f -- "$@.tmp" "$@"
145 ###############################################################################
146 # pkg-config integration
147 ###############################################################################
149 pkgconfigdir = $(libdir)/pkgconfig
150 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
151 CLEANFILES += $(pkgconfig_DATA)
153 .pc.in.pc: $(top_builddir)/config.status
154 cd "$(top_builddir)" && \
155 $(SHELL) ./config.status --file="src/$@"
157 ###############################################################################
159 ###############################################################################
162 $(top_builddir)/compile
164 lib_LTLIBRARIES = libvlccore.la libvlc.la
166 AM_LDFLAGS = -no-undefined
168 AM_LDFLAGS += -avoid-version
171 AM_LDFLAGS += -avoid-version
174 libvlccore_la_SOURCES = $(SOURCES_libvlc)
175 nodist_libvlccore_la_SOURCES = misc/revision.c
176 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
177 -DMODULE_STRING=\"main\" \
178 -DLOCALEDIR=\"$(localedir)\" \
179 -DSYSCONFDIR=\"$(sysconfdir)\" \
180 -DDATA_PATH=\"$(vlcdatadir)\" \
181 -DLIBDIR=\"$(libdir)\" \
182 -DPLUGIN_PATH=\"$(vlclibdir)\"
183 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
184 -export-symbols $(srcdir)/libvlccore.sym \
186 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
187 libvlccore_la_DEPENDENCIES = libvlccore.sym
189 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
190 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
193 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
194 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
196 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
197 libvlc_la_LIBADD = libvlccore.la
198 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
199 -DMODULE_STRING=\"control\"
200 libvlc_la_LDFLAGS = $(AM_LDFLAGS) \
201 -version-info 4:0:2 \
202 -export-symbols $(srcdir)/libvlc.sym
203 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
205 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
206 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
210 EXTRA_libvlccore_la_SOURCES = \
211 $(SOURCES_libvlc_beos) \
212 $(SOURCES_libvlc_darwin) \
213 $(SOURCES_libvlc_linux) \
214 $(SOURCES_libvlc_win32) \
215 $(SOURCES_libvlc_other) \
216 $(SOURCES_libvlc_dirent) \
217 $(SOURCES_libvlc_getopt) \
218 $(SOURCES_libvlc_httpd) \
219 $(SOURCES_libvlc_sout) \
220 $(SOURCES_libvlc_vlm) \
223 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
226 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
229 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
235 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
244 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
247 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
250 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
253 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
255 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
259 SOURCES_libvlc_beos = \
262 SOURCES_libvlc_darwin = \
263 misc/darwin_specific.c \
266 SOURCES_libvlc_linux = \
267 misc/linux_specific.c \
270 SOURCES_libvlc_win32 = \
271 misc/win32_specific.c \
275 SOURCES_libvlc_other = misc/not_specific.c
277 SOURCES_libvlc_dirent = \
281 SOURCES_libvlc_getopt = \
287 SOURCES_libvlc_common = \
293 interface/interface.h \
294 interface/interface.c \
295 interface/intf_eject.c \
296 interface/interaction.c \
297 playlist/playlist_internal.h \
306 playlist/loadsave.c \
307 playlist/preparser.c \
308 playlist/preparser.h \
312 playlist/services_discovery.c \
318 input/decoder_synchro.c \
321 input/es_out_timeshift.c \
330 input/es_out_timeshift.h \
334 input/input_internal.h \
335 input/input_interface.h \
336 input/vlm_internal.h \
340 input/stream_demux.c \
341 input/stream_filter.c \
342 input/stream_memory.c \
345 video_output/video_output.c \
346 video_output/vout_pictures.c \
347 video_output/vout_pictures.h \
348 video_output/video_text.c \
349 video_output/video_widgets.c \
350 video_output/vout_subpictures.c \
351 video_output/vout_intf.c \
352 video_output/vout_internal.h \
353 video_output/vout_control.h \
354 audio_output/aout_internal.h \
355 audio_output/common.c \
357 audio_output/filters.c \
358 audio_output/input.c \
359 audio_output/mixer.c \
360 audio_output/output.c \
361 audio_output/intf.c \
366 network/getaddrinfo.c \
394 config/configuration.h \
413 misc/filter_chain.c \
416 SOURCES_libvlc_httpd = \
420 SOURCES_libvlc_sout = \
421 stream_output/stream_output.c \
422 stream_output/stream_output.h \
423 stream_output/announce.c \
424 stream_output/sap.c \
425 stream_output/sdp.c \
428 SOURCES_libvlc_vlm = \
434 $(SOURCES_libvlc_common) \
435 $(OPT_SOURCES_libvlc_beos) \
436 $(OPT_SOURCES_libvlc_darwin) \
437 $(OPT_SOURCES_libvlc_win32) \
438 $(OPT_SOURCES_libvlc_dirent) \
439 $(OPT_SOURCES_libvlc_getopt) \
442 SOURCES_libvlc_control = \
443 control/libvlc_internal.h \
451 control/flat_media_list_view.c \
452 control/hierarchical_media_list_view.c \
453 control/hierarchical_node_media_list_view.c \
455 control/media_player.c \
456 control/media_list.c \
457 control/media_list_path.h \
458 control/media_list_player.c \
459 control/media_list_view.c \
460 control/media_library.c \
461 control/mediacontrol_internal.h \
462 control/mediacontrol_core.c \
463 control/mediacontrol_util.c \
464 control/mediacontrol_audio_video.c \
465 control/media_discoverer.c
467 ###############################################################################
469 ###############################################################################
473 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@
474 REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo "$(VERSION)")"; \
475 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@
476 diff $@ misc/revision.c >/dev/null 2>&1 || \
477 cat misc/revision.c.tmp > misc/revision.c
480 $(MAKE) misc/revision.c.tmp
481 cat misc/revision.c.tmp > misc/revision.c
483 BUILT_SOURCES += misc/revision.c.tmp misc/revision.c
485 .PHONY: misc/revision.c.tmp
487 ###############################################################################
488 # Unit/regression test
489 ###############################################################################
491 dist_check_SCRIPTS = check_symbols check_headers
492 TESTS = check_symbols
495 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
497 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
498 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
500 echo "Header $$h not included in test/headers.c!"; \
504 $(srcdir)/check_headers $(pkginclude_HEADERS)
505 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
508 @echo "Generated source cannot be phony. Go away." >&2