1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
8 EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym
10 BUILT_SOURCES = modules/builtin.h misc/revision.c
11 CLEANFILES = $(BUILT_SOURCES)
13 ###############################################################################
15 ###############################################################################
17 pkgincludedir = $(includedir)/vlc
19 dist_pkginclude_HEADERS = \
20 ../include/vlc/vlc.h \
21 ../include/vlc/libvlc.h \
22 ../include/vlc/libvlc_structures.h \
23 ../include/vlc/mediacontrol.h \
24 ../include/vlc/mediacontrol_structures.h \
27 noinst_HEADERS = $(HEADERS_include)
30 ../include/iso_lang.h \
33 ../include/vlc_access.h \
34 ../include/vlc_acl.h \
35 ../include/vlc_aout.h \
36 ../include/vlc_arrays.h \
37 ../include/vlc_bits.h \
38 ../include/vlc_block.h \
39 ../include/vlc_block_helper.h \
40 ../include/vlc_charset.h \
41 ../include/vlc_codec.h \
42 ../include/vlc_codec_synchro.h \
43 ../include/vlc_codecs.h \
44 ../include/vlc_common.h \
45 ../include/vlc_config.h \
46 ../include/vlc_config_cat.h \
47 ../include/vlc_configuration.h \
48 ../include/vlc_demux.h \
49 ../include/vlc_devices.h \
50 ../include/vlc_epg.h \
52 ../include/vlc_es_out.h \
53 ../include/vlc_events.h \
54 ../include/vlc_filter.h \
55 ../include/vlc_httpd.h \
56 ../include/vlc_image.h \
57 ../include/vlc_input.h \
58 ../include/vlc_interface.h \
59 ../include/vlc_intf_strings.h \
60 ../include/vlc_keys.h \
61 ../include/vlc_md5.h \
62 ../include/vlc_messages.h \
63 ../include/vlc_meta.h \
64 ../include/vlc_modules.h \
65 ../include/vlc_modules_macros.h \
66 ../include/vlc_mtime.h \
67 ../include/vlc_network.h \
68 ../include/vlc_objects.h \
69 ../include/vlc_os_specific.h \
70 ../include/vlc_osd.h \
71 ../include/vlc_playlist.h \
72 ../include/vlc_rand.h \
73 ../include/vlc_services_discovery.h \
74 ../include/vlc_sout.h \
75 ../include/vlc_stream.h \
76 ../include/vlc_streaming.h \
77 ../include/vlc_strings.h \
78 ../include/vlc_threads.h \
79 ../include/vlc_threads_funcs.h \
80 ../include/vlc_tls.h \
81 ../include/vlc_update.h \
82 ../include/vlc_url.h \
83 ../include/vlc_variables.h \
84 ../include/vlc_vlm.h \
85 ../include/vlc_vod.h \
86 ../include/vlc_vout.h \
87 ../include/vlc_xml.h \
90 modules/builtin.h: modules/builtin.h.in ../vlc-config Makefile.am
92 cat "$(srcdir)/modules/builtin.h.in" > "$@.tmp"
94 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
95 test -n "$${plugins}" && \
96 for p in $${plugins}; do \
97 echo "int vlc_entry__$$p (module_t *);" ; \
100 echo "#define ALLOCATE_ALL_BUILTINS() \\" >> "$@.tmp"
101 echo " do \\" >> "$@.tmp"
102 echo " { \\" >> "$@.tmp"
104 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
105 test -n "$${plugins}" && \
106 for p in $${plugins}; do \
107 echo " ALLOCATE_BUILTIN($$p); \\" ; \
110 echo ' } while( 0 );' >> "$@.tmp"
111 mv -f -- "$@.tmp" "$@"
113 modules/modules.c: modules/builtin.h
115 ###############################################################################
117 ###############################################################################
120 $(top_builddir)/compile
122 lib_LTLIBRARIES = libvlc.la libvlc-control.la
124 AM_LDFLAGS = -no-undefined -no-install
126 AM_LDFLAGS += -avoid-version
129 libvlc_la_SOURCES = $(SOURCES_libvlc)
130 nodist_libvlc_la_SOURCES = misc/revision.c
131 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
132 libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
133 libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
134 libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
136 if HAVE_COMPILER_EXPORT
137 libvlc_la_LDFLAGS += -export-dynamic
139 libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym
141 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
143 libvlc_la_DEPENDENCIES = libvlc.sym
145 libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
146 libvlc_control_la_LIBADD = libvlc.la
147 libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
148 libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -version-info 0:0:0
149 if HAVE_COMPILER_EXPORT
150 libvlc_control_la_LDFLAGS += -export-dynamic
152 libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
155 EXTRA_libvlc_la_SOURCES = \
156 $(SOURCES_libvlc_beos) \
157 $(SOURCES_libvlc_darwin) \
158 $(SOURCES_libvlc_win32) \
159 $(SOURCES_libvlc_dirent) \
160 $(SOURCES_libvlc_getopt) \
163 libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
166 libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
169 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
172 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
175 libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
178 libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
181 SOURCES_libvlc_beos = \
182 misc/beos_specific.cpp \
185 SOURCES_libvlc_darwin = \
186 misc/darwin_specific.c \
189 SOURCES_libvlc_win32 = \
190 misc/win32_specific.c \
193 SOURCES_libvlc_dirent = \
197 SOURCES_libvlc_getopt = \
203 SOURCES_libvlc_common = \
208 interface/interface.h \
209 interface/interface.c \
210 interface/intf_eject.c \
211 interface/interaction.c \
212 playlist/playlist_internal.h \
217 playlist/loadsave.c \
221 playlist/services_discovery.c \
227 input/decoder_synchro.c \
232 input/input_internal.h \
233 input/vlm_internal.h \
238 video_output/video_output.c \
239 video_output/vout_pictures.c \
240 video_output/vout_pictures.h \
241 video_output/video_text.c \
242 video_output/video_widgets.c \
243 video_output/vout_subpictures.c \
244 video_output/vout_intf.c \
245 audio_output/aout_internal.h \
246 audio_output/common.c \
248 audio_output/filters.c \
249 audio_output/input.c \
250 audio_output/mixer.c \
251 audio_output/output.c \
252 audio_output/intf.c \
253 stream_output/stream_output.c \
254 stream_output/stream_output.h \
255 stream_output/announce.c \
256 stream_output/profiles.c \
257 stream_output/sap.c \
258 stream_output/sdp.c \
264 network/getaddrinfo.c \
289 modules/configuration.h \
290 modules/configuration.c \
291 modules/configuration_chain.c \
307 $(SOURCES_libvlc_common) \
308 $(OPT_SOURCES_libvlc_beos) \
309 $(OPT_SOURCES_libvlc_darwin) \
310 $(OPT_SOURCES_libvlc_win32) \
311 $(OPT_SOURCES_libvlc_dirent) \
312 $(OPT_SOURCES_libvlc_getopt) \
315 SOURCES_libvlc_control = \
316 control/libvlc_internal.h \
323 control/dynamic_media_list.c \
325 control/flat_media_list_view.c \
326 control/media_descriptor.c \
327 control/media_instance.c \
328 control/media_list.c \
329 control/media_list_path.h \
330 control/media_list_player.c \
331 control/media_list_view.c \
332 control/media_library.c \
333 control/mediacontrol_internal.h \
334 control/mediacontrol_core.c \
335 control/mediacontrol_util.c \
336 control/mediacontrol_audio_video.c \
337 control/media_discoverer.c \
340 ###############################################################################
342 ###############################################################################
346 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
347 REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
348 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
351 ###############################################################################
352 # Unit/regression test
353 ###############################################################################
354 check_PROGRAMS = test_i18n_atof test_url test_utf8
355 TESTS = $(check_PROGRAMS)
357 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
359 test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
360 test_i18n_atof_CFLAGS = $(CFLAGS_tests)
362 test_url_SOURCES = test/url.c
363 test_url_LDADD = libvlc.la
364 test_url_CFLAGS = $(CFLAGS_tests)
366 test_utf8_SOURCES = test/utf8.c
367 test_utf8_LDADD = libvlc.la
368 test_utf8_CFLAGS = $(CFLAGS_tests)
371 @echo "Generated source cannot be phony. Go away." >&2