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 TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox
15 ###############################################################################
17 ###############################################################################
19 pkgincludedir = $(includedir)/vlc
21 dist_pkginclude_HEADERS = \
22 ../include/vlc/vlc.h \
23 ../include/vlc/libvlc.h \
24 ../include/vlc/libvlc_structures.h \
25 ../include/vlc/mediacontrol.h \
26 ../include/vlc/mediacontrol_structures.h \
29 noinst_HEADERS = $(HEADERS_include)
32 ../include/iso_lang.h \
35 ../include/vlc_modules.h \
36 ../include/vlc_modules_macros.h \
37 ../include/vlc_os_specific.h \
38 ../include/vlc_mtime.h \
39 ../include/vlc_network.h \
40 ../include/vlc_codecs.h \
41 ../include/vlc_configuration.h \
42 ../include/vlc_charset.h \
43 ../include/vlc_sout.h \
44 ../include/vlc_streaming.h \
45 ../include/vlc_variables.h \
46 ../include/vlc_aout.h \
47 ../include/vlc_access.h \
48 ../include/vlc_arrays.h \
49 ../include/vlc_acl.h \
50 ../include/vlc_bits.h \
51 ../include/vlc_block.h \
52 ../include/vlc_block_helper.h \
53 ../include/vlc_codec.h \
54 ../include/vlc_common.h \
55 ../include/vlc_config.h \
56 ../include/vlc_demux.h \
58 ../include/vlc_es_out.h \
59 ../include/vlc_epg.h \
60 ../include/vlc_filter.h \
61 ../include/vlc_config_cat.h \
62 ../include/vlc_httpd.h \
63 ../include/vlc_tls.h \
64 ../include/vlc_md5.h \
65 ../include/vlc_devices.h \
66 ../include/vlc_image.h \
67 ../include/vlc_input.h \
68 ../include/vlc_interface.h \
69 ../include/vlc_intf_strings.h \
70 ../include/vlc_keys.h \
71 ../include/vlc_messages.h \
72 ../include/vlc_meta.h \
73 ../include/vlc_objects.h \
74 ../include/vlc_osd.h \
75 ../include/vlc_playlist.h \
76 ../include/vlc_stream.h \
77 ../include/vlc_strings.h \
78 ../include/vlc_threads_funcs.h \
79 ../include/vlc_threads.h \
80 ../include/vlc_update.h \
81 ../include/vlc_url.h \
82 ../include/vlc_vout.h \
83 ../include/vlc_vlm.h \
84 ../include/vlc_vod.h \
85 ../include/vlc_xml.h \
86 ../include/vlc_vout_synchro.h \
89 modules/builtin.h: modules/builtin.h.in
90 $(TOOLBOX) --update-includes
93 modules/modules.c: modules/builtin.h
95 ###############################################################################
97 ###############################################################################
99 lib_LTLIBRARIES = libvlc.la libvlc-control.la
101 AM_LDFLAGS = -no-undefined
103 AM_LDFLAGS += -avoid-version
106 libvlc_la_SOURCES = $(SOURCES_libvlc)
107 nodist_libvlc_la_SOURCES = misc/revision.c
108 libvlc_la_LIBADD = $(INCLUDED_LIBINTL)
109 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
110 libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
111 libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
112 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --libs libvlc` \
113 -export-symbols $(srcdir)/libvlc.sym -version-info 1:0:0
114 libvlc_la_DEPENDENCIES = libvlc.sym
116 libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
117 libvlc_control_la_LIBADD = libvlc.la
118 libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
119 libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -export-symbols-regex '^_?(libvlc|mediacontrol)_.*' \
122 EXTRA_libvlc_la_SOURCES = \
123 $(SOURCES_libvlc_beos) \
124 $(SOURCES_libvlc_darwin) \
125 $(SOURCES_libvlc_win32) \
126 $(SOURCES_libvlc_dirent) \
127 $(SOURCES_libvlc_getopt) \
130 libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
133 libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
136 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
139 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
142 libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
145 libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
148 SOURCES_libvlc_beos = \
149 misc/beos_specific.cpp \
152 SOURCES_libvlc_darwin = \
153 misc/darwin_specific.c \
156 SOURCES_libvlc_win32 = \
157 misc/win32_specific.c \
160 SOURCES_libvlc_dirent = \
164 SOURCES_libvlc_getopt = \
170 SOURCES_libvlc_common = \
175 interface/interface.h \
176 interface/interface.c \
177 interface/intf_eject.c \
178 interface/interaction.c \
179 playlist/playlist_internal.h \
184 playlist/loadsave.c \
188 playlist/services_discovery.c \
198 input/input_internal.h \
199 input/vlm_internal.h \
204 video_output/video_output.c \
205 video_output/vout_pictures.c \
206 video_output/vout_pictures.h \
207 video_output/video_text.c \
208 video_output/video_widgets.c \
209 video_output/vout_subpictures.c \
210 video_output/vout_synchro.c \
211 video_output/vout_intf.c \
212 audio_output/aout_internal.h \
213 audio_output/common.c \
215 audio_output/filters.c \
216 audio_output/input.c \
217 audio_output/mixer.c \
218 audio_output/output.c \
219 audio_output/intf.c \
220 stream_output/stream_output.c \
221 stream_output/stream_output.h \
222 stream_output/announce.c \
223 stream_output/profiles.c \
224 stream_output/sap.c \
225 stream_output/sdp.c \
231 network/getaddrinfo.c \
255 modules/configuration.h \
256 modules/configuration.c \
257 modules/configuration_chain.c \
272 $(SOURCES_libvlc_common) \
273 $(OPT_SOURCES_libvlc_beos) \
274 $(OPT_SOURCES_libvlc_darwin) \
275 $(OPT_SOURCES_libvlc_win32) \
276 $(OPT_SOURCES_libvlc_dirent) \
277 $(OPT_SOURCES_libvlc_getopt) \
280 SOURCES_libvlc_control = \
281 control/libvlc_internal.h \
289 control/media_descriptor.c \
290 control/media_instance.c \
291 control/mediacontrol_internal.h \
292 control/mediacontrol_core.c \
293 control/mediacontrol_util.c \
294 control/mediacontrol_audio_video.c
296 ###############################################################################
298 ###############################################################################
302 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
303 REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
304 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
307 ###############################################################################
308 # Unit/regression test
309 ###############################################################################
310 check_PROGRAMS = test_i18n_atof test_url test_utf8
311 TESTS = $(check_PROGRAMS)
313 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
315 test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
316 test_i18n_atof_CFLAGS = $(CFLAGS_tests)
318 test_url_SOURCES = test/url.c
319 test_url_LDADD = libvlc.la
320 test_url_CFLAGS = $(CFLAGS_tests)
322 test_utf8_SOURCES = test/utf8.c
323 test_utf8_LDADD = libvlc.la
324 test_utf8_CFLAGS = $(CFLAGS_tests)
327 @echo "Generated source cannot be phony. Go away." >&2