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 = $(LTLIBINTL)
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` \
114 if HAVE_COMPILER_EXPORT
115 libvlc_la_LDFLAGS += -export-dynamic
117 libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym
120 libvlc_la_DEPENDENCIES = libvlc.sym
122 libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
123 libvlc_control_la_LIBADD = libvlc.la
124 libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
125 libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -export-symbols-regex '^_?(libvlc|mediacontrol)_.*' \
127 if HAVE_COMPILER_EXPORT
128 libvlc_control_la_LDFLAGS += -export-dynamic
130 libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
134 EXTRA_libvlc_la_SOURCES = \
135 $(SOURCES_libvlc_beos) \
136 $(SOURCES_libvlc_darwin) \
137 $(SOURCES_libvlc_win32) \
138 $(SOURCES_libvlc_dirent) \
139 $(SOURCES_libvlc_getopt) \
142 libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
145 libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
148 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
151 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
154 libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
157 libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
160 SOURCES_libvlc_beos = \
161 misc/beos_specific.cpp \
164 SOURCES_libvlc_darwin = \
165 misc/darwin_specific.c \
168 SOURCES_libvlc_win32 = \
169 misc/win32_specific.c \
172 SOURCES_libvlc_dirent = \
176 SOURCES_libvlc_getopt = \
182 SOURCES_libvlc_common = \
187 interface/interface.h \
188 interface/interface.c \
189 interface/intf_eject.c \
190 interface/interaction.c \
191 playlist/playlist_internal.h \
196 playlist/loadsave.c \
200 playlist/services_discovery.c \
210 input/input_internal.h \
211 input/vlm_internal.h \
216 video_output/video_output.c \
217 video_output/vout_pictures.c \
218 video_output/vout_pictures.h \
219 video_output/video_text.c \
220 video_output/video_widgets.c \
221 video_output/vout_subpictures.c \
222 video_output/vout_synchro.c \
223 video_output/vout_intf.c \
224 audio_output/aout_internal.h \
225 audio_output/common.c \
227 audio_output/filters.c \
228 audio_output/input.c \
229 audio_output/mixer.c \
230 audio_output/output.c \
231 audio_output/intf.c \
232 stream_output/stream_output.c \
233 stream_output/stream_output.h \
234 stream_output/announce.c \
235 stream_output/profiles.c \
236 stream_output/sap.c \
237 stream_output/sdp.c \
243 network/getaddrinfo.c \
267 modules/configuration.h \
268 modules/configuration.c \
269 modules/configuration_chain.c \
284 $(SOURCES_libvlc_common) \
285 $(OPT_SOURCES_libvlc_beos) \
286 $(OPT_SOURCES_libvlc_darwin) \
287 $(OPT_SOURCES_libvlc_win32) \
288 $(OPT_SOURCES_libvlc_dirent) \
289 $(OPT_SOURCES_libvlc_getopt) \
292 SOURCES_libvlc_control = \
293 control/libvlc_internal.h \
301 control/media_descriptor.c \
302 control/media_instance.c \
303 control/mediacontrol_internal.h \
304 control/mediacontrol_core.c \
305 control/mediacontrol_util.c \
306 control/mediacontrol_audio_video.c
308 ###############################################################################
310 ###############################################################################
314 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
315 REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
316 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
319 ###############################################################################
320 # Unit/regression test
321 ###############################################################################
322 check_PROGRAMS = test_i18n_atof test_url test_utf8
323 TESTS = $(check_PROGRAMS)
325 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
327 test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
328 test_i18n_atof_CFLAGS = $(CFLAGS_tests)
330 test_url_SOURCES = test/url.c
331 test_url_LDADD = libvlc.la
332 test_url_CFLAGS = $(CFLAGS_tests)
334 test_utf8_SOURCES = test/utf8.c
335 test_utf8_LDADD = libvlc.la
336 test_utf8_CFLAGS = $(CFLAGS_tests)
339 @echo "Generated source cannot be phony. Go away." >&2