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 misc/revision.c ../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_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 libvlccore_la_SOURCES = $(SOURCES_libvlc)
172 nodist_libvlccore_la_SOURCES = misc/revision.c
173 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
174 -DMODULE_STRING=\"main\" \
175 -DLOCALEDIR=\"$(localedir)\" \
176 -DSYSCONFDIR=\"$(sysconfdir)\" \
177 -DDATA_PATH=\"$(pkgdatadir)\" \
178 -DLIBDIR=\"$(libdir)\" \
179 -DPLUGIN_PATH=\"$(pkglibdir)\"
180 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
181 -export-symbols $(srcdir)/libvlccore.sym \
183 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
184 libvlccore_la_DEPENDENCIES = libvlccore.sym
186 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
187 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
190 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
191 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
193 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
194 libvlc_la_LIBADD = libvlccore.la
195 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
196 -DMODULE_STRING=\"control\"
197 libvlc_la_LDFLAGS = $(AM_LDFLAGS) \
198 -version-info 2:2:0 \
199 -export-symbols $(srcdir)/libvlc.sym
200 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
202 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
203 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
207 EXTRA_libvlccore_la_SOURCES = \
208 $(SOURCES_libvlc_beos) \
209 $(SOURCES_libvlc_darwin) \
210 $(SOURCES_libvlc_linux) \
211 $(SOURCES_libvlc_win32) \
212 $(SOURCES_libvlc_other) \
213 $(SOURCES_libvlc_dirent) \
214 $(SOURCES_libvlc_getopt) \
215 $(SOURCES_libvlc_httpd) \
216 $(SOURCES_libvlc_sout) \
217 $(SOURCES_libvlc_vlm) \
220 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
223 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
226 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
229 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
234 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
241 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
244 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
247 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
250 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
252 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
256 SOURCES_libvlc_beos = \
259 SOURCES_libvlc_darwin = \
260 misc/darwin_specific.c \
263 SOURCES_libvlc_linux = \
264 misc/linux_specific.c \
267 SOURCES_libvlc_win32 = \
268 misc/win32_specific.c \
272 SOURCES_libvlc_other = misc/not_specific.c
274 SOURCES_libvlc_dirent = \
278 SOURCES_libvlc_getopt = \
284 SOURCES_libvlc_common = \
290 interface/interface.h \
291 interface/interface.c \
292 interface/intf_eject.c \
293 interface/interaction.c \
294 playlist/playlist_internal.h \
299 playlist/loadsave.c \
303 playlist/services_discovery.c \
309 input/decoder_synchro.c \
320 input/input_internal.h \
321 input/vlm_internal.h \
323 input/stream_memory.c \
326 video_output/video_output.c \
327 video_output/vout_pictures.c \
328 video_output/vout_pictures.h \
329 video_output/video_text.c \
330 video_output/video_widgets.c \
331 video_output/vout_subpictures.c \
332 video_output/vout_intf.c \
333 video_output/vout_internal.h \
334 video_output/vout_control.h \
335 audio_output/aout_internal.h \
336 audio_output/common.c \
338 audio_output/filters.c \
339 audio_output/input.c \
340 audio_output/mixer.c \
341 audio_output/output.c \
342 audio_output/intf.c \
347 network/getaddrinfo.c \
375 config/configuration.h \
394 misc/filter_chain.c \
397 SOURCES_libvlc_httpd = \
401 SOURCES_libvlc_sout = \
402 stream_output/stream_output.c \
403 stream_output/stream_output.h \
404 stream_output/announce.c \
405 stream_output/sap.c \
406 stream_output/sdp.c \
409 SOURCES_libvlc_vlm = \
415 $(SOURCES_libvlc_common) \
416 $(OPT_SOURCES_libvlc_beos) \
417 $(OPT_SOURCES_libvlc_darwin) \
418 $(OPT_SOURCES_libvlc_win32) \
419 $(OPT_SOURCES_libvlc_dirent) \
420 $(OPT_SOURCES_libvlc_getopt) \
423 SOURCES_libvlc_control = \
424 control/libvlc_internal.h \
432 control/flat_media_list_view.c \
433 control/hierarchical_media_list_view.c \
434 control/hierarchical_node_media_list_view.c \
436 control/media_player.c \
437 control/media_list.c \
438 control/media_list_path.h \
439 control/media_list_player.c \
440 control/media_list_view.c \
441 control/media_library.c \
442 control/mediacontrol_internal.h \
443 control/mediacontrol_core.c \
444 control/mediacontrol_util.c \
445 control/mediacontrol_audio_video.c \
446 control/media_discoverer.c
448 ###############################################################################
450 ###############################################################################
454 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
455 REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo exported)"; \
456 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
460 ###############################################################################
461 # Unit/regression test
462 ###############################################################################
464 dist_check_SCRIPTS = check_symbols check_headers
465 TESTS = check_symbols
468 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
470 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
471 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
473 echo "Header $$h not included in test/headers.c!"; \
477 $(srcdir)/check_headers $(pkginclude_HEADERS)
478 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
481 @echo "Generated source cannot be phony. Go away." >&2