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 ../include/vlc_about.h
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_pgpkey.h \
72 ../include/vlc_playlist.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_streaming.h \
78 ../include/vlc_strings.h \
79 ../include/vlc_threads.h \
80 ../include/vlc_threads_funcs.h \
81 ../include/vlc_tls.h \
82 ../include/vlc_update.h \
83 ../include/vlc_url.h \
84 ../include/vlc_variables.h \
85 ../include/vlc_vlm.h \
86 ../include/vlc_vod.h \
87 ../include/vlc_vout.h \
88 ../include/vlc_xml.h \
91 modules/builtin.h: modules/builtin.h.in ../vlc-config Makefile.am
93 cat "$(srcdir)/modules/builtin.h.in" > "$@.tmp"
95 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
96 test -n "$${plugins}" && \
97 for p in $${plugins}; do \
98 echo "int vlc_entry__$$p (module_t *);" ; \
101 echo "#define ALLOCATE_ALL_BUILTINS() \\" >> "$@.tmp"
102 echo " do \\" >> "$@.tmp"
103 echo " { \\" >> "$@.tmp"
105 plugins="$$($(VLC_CONFIG) --list plugin)" ; \
106 test -n "$${plugins}" && \
107 for p in $${plugins}; do \
108 echo " ALLOCATE_BUILTIN($$p); \\" ; \
111 echo ' } while( 0 );' >> "$@.tmp"
112 mv -f -- "$@.tmp" "$@"
114 modules/modules.c: modules/builtin.h
116 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
118 mkdir -p -- ../include
119 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
120 echo "static const char psz_license[] =" >> "$@.tmp"
121 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
123 echo "static const char psz_thanks[] =" >> "$@.tmp"
124 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
126 echo "static const char psz_authors[] =" >> "$@.tmp"
127 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
129 mv -f -- "$@.tmp" "$@"
130 ###############################################################################
132 ###############################################################################
135 $(top_builddir)/compile
137 lib_LTLIBRARIES = libvlc.la libvlc-control.la
139 AM_LDFLAGS = -no-undefined -no-install
141 AM_LDFLAGS += -avoid-version
144 libvlc_la_SOURCES = $(SOURCES_libvlc)
145 nodist_libvlc_la_SOURCES = misc/revision.c
146 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
147 libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
148 libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
149 libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
151 if HAVE_COMPILER_EXPORT
152 libvlc_la_LDFLAGS += -export-dynamic
154 libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym
156 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
158 libvlc_la_DEPENDENCIES = libvlc.sym
160 libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
161 libvlc_control_la_LIBADD = libvlc.la
162 libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
163 libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0
164 if HAVE_COMPILER_EXPORT
165 libvlc_control_la_LDFLAGS += -export-dynamic
167 libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
170 EXTRA_libvlc_la_SOURCES = \
171 $(SOURCES_libvlc_beos) \
172 $(SOURCES_libvlc_darwin) \
173 $(SOURCES_libvlc_win32) \
174 $(SOURCES_libvlc_dirent) \
175 $(SOURCES_libvlc_getopt) \
178 libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
181 libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
184 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
187 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
190 libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
193 libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
196 SOURCES_libvlc_beos = \
197 misc/beos_specific.cpp \
200 SOURCES_libvlc_darwin = \
201 misc/darwin_specific.c \
204 SOURCES_libvlc_win32 = \
205 misc/win32_specific.c \
208 SOURCES_libvlc_dirent = \
212 SOURCES_libvlc_getopt = \
218 SOURCES_libvlc_common = \
223 interface/interface.h \
224 interface/interface.c \
225 interface/intf_eject.c \
226 interface/interaction.c \
227 playlist/playlist_internal.h \
232 playlist/loadsave.c \
236 playlist/services_discovery.c \
242 input/decoder_synchro.c \
247 input/input_internal.h \
248 input/vlm_internal.h \
253 video_output/video_output.c \
254 video_output/vout_pictures.c \
255 video_output/vout_pictures.h \
256 video_output/video_text.c \
257 video_output/video_widgets.c \
258 video_output/vout_subpictures.c \
259 video_output/vout_intf.c \
260 audio_output/aout_internal.h \
261 audio_output/common.c \
263 audio_output/filters.c \
264 audio_output/input.c \
265 audio_output/mixer.c \
266 audio_output/output.c \
267 audio_output/intf.c \
268 stream_output/stream_output.c \
269 stream_output/stream_output.h \
270 stream_output/announce.c \
271 stream_output/profiles.c \
272 stream_output/sap.c \
273 stream_output/sdp.c \
278 network/getaddrinfo.c \
305 config/configuration.h \
325 $(SOURCES_libvlc_common) \
326 $(OPT_SOURCES_libvlc_beos) \
327 $(OPT_SOURCES_libvlc_darwin) \
328 $(OPT_SOURCES_libvlc_win32) \
329 $(OPT_SOURCES_libvlc_dirent) \
330 $(OPT_SOURCES_libvlc_getopt) \
333 SOURCES_libvlc_control = \
334 control/libvlc_internal.h \
341 control/dynamic_media_list.c \
343 control/flat_media_list_view.c \
344 control/hierarchical_media_list_view.c \
345 control/hierarchical_node_media_list_view.c \
346 control/media_descriptor.c \
347 control/media_instance.c \
348 control/media_list.c \
349 control/media_list_path.h \
350 control/media_list_player.c \
351 control/media_list_view.c \
352 control/media_library.c \
353 control/mediacontrol_internal.h \
354 control/mediacontrol_core.c \
355 control/mediacontrol_util.c \
356 control/mediacontrol_audio_video.c \
357 control/media_discoverer.c \
360 ###############################################################################
362 ###############################################################################
366 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
367 REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
368 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
371 ###############################################################################
372 # Unit/regression test
373 ###############################################################################
374 check_PROGRAMS = test_i18n_atof test_url test_utf8 test_control
375 dist_check_SCRIPTS = check_symbols
376 TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
378 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
380 test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
381 test_i18n_atof_CFLAGS = $(CFLAGS_tests)
383 test_url_SOURCES = test/url.c
384 test_url_LDADD = libvlc.la
385 test_url_CFLAGS = $(CFLAGS_tests)
387 test_utf8_SOURCES = test/utf8.c
388 test_utf8_LDADD = libvlc.la
389 test_utf8_CFLAGS = $(CFLAGS_tests)
391 test_control_SOURCES = control/testapi.c
392 test_control_LDADD = libvlc-control.la
393 test_control_CFLAGS = $(CFLAGS_tests)
396 @echo "Generated source cannot be phony. Go away." >&2