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_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 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
117 mkdir -p -- ../include
118 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
119 echo "static const char psz_license[] =" >> "$@.tmp"
120 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
122 echo "static const char psz_thanks[] =" >> "$@.tmp"
123 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
125 echo "static const char psz_authors[] =" >> "$@.tmp"
126 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
128 mv -f -- "$@.tmp" "$@"
129 ###############################################################################
131 ###############################################################################
134 $(top_builddir)/compile
136 lib_LTLIBRARIES = libvlc.la libvlc-control.la
138 AM_LDFLAGS = -no-undefined -no-install
140 AM_LDFLAGS += -avoid-version
143 libvlc_la_SOURCES = $(SOURCES_libvlc)
144 nodist_libvlc_la_SOURCES = misc/revision.c
145 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
146 libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
147 libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
148 libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
150 if HAVE_COMPILER_EXPORT
151 libvlc_la_LDFLAGS += -export-dynamic
153 libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym
155 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
157 libvlc_la_DEPENDENCIES = libvlc.sym
159 libvlc_control_la_SOURCES = $(SOURCES_libvlc_control)
160 libvlc_control_la_LIBADD = libvlc.la
161 libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
162 libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0
163 if HAVE_COMPILER_EXPORT
164 libvlc_control_la_LDFLAGS += -export-dynamic
166 libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
169 EXTRA_libvlc_la_SOURCES = \
170 $(SOURCES_libvlc_beos) \
171 $(SOURCES_libvlc_darwin) \
172 $(SOURCES_libvlc_win32) \
173 $(SOURCES_libvlc_dirent) \
174 $(SOURCES_libvlc_getopt) \
177 libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
180 libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
183 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
186 libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
189 libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
192 libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
195 SOURCES_libvlc_beos = \
196 misc/beos_specific.cpp \
199 SOURCES_libvlc_darwin = \
200 misc/darwin_specific.c \
203 SOURCES_libvlc_win32 = \
204 misc/win32_specific.c \
207 SOURCES_libvlc_dirent = \
211 SOURCES_libvlc_getopt = \
217 SOURCES_libvlc_common = \
222 interface/interface.h \
223 interface/interface.c \
224 interface/intf_eject.c \
225 interface/interaction.c \
226 playlist/playlist_internal.h \
231 playlist/loadsave.c \
235 playlist/services_discovery.c \
241 input/decoder_synchro.c \
246 input/input_internal.h \
247 input/vlm_internal.h \
252 video_output/video_output.c \
253 video_output/vout_pictures.c \
254 video_output/vout_pictures.h \
255 video_output/video_text.c \
256 video_output/video_widgets.c \
257 video_output/vout_subpictures.c \
258 video_output/vout_intf.c \
259 audio_output/aout_internal.h \
260 audio_output/common.c \
262 audio_output/filters.c \
263 audio_output/input.c \
264 audio_output/mixer.c \
265 audio_output/output.c \
266 audio_output/intf.c \
267 stream_output/stream_output.c \
268 stream_output/stream_output.h \
269 stream_output/announce.c \
270 stream_output/profiles.c \
271 stream_output/sap.c \
272 stream_output/sdp.c \
277 network/getaddrinfo.c \
324 $(SOURCES_libvlc_common) \
325 $(OPT_SOURCES_libvlc_beos) \
326 $(OPT_SOURCES_libvlc_darwin) \
327 $(OPT_SOURCES_libvlc_win32) \
328 $(OPT_SOURCES_libvlc_dirent) \
329 $(OPT_SOURCES_libvlc_getopt) \
332 SOURCES_libvlc_control = \
333 control/libvlc_internal.h \
340 control/dynamic_media_list.c \
342 control/flat_media_list_view.c \
343 control/hierarchical_media_list_view.c \
344 control/hierarchical_node_media_list_view.c \
345 control/media_descriptor.c \
346 control/media_instance.c \
347 control/media_list.c \
348 control/media_list_path.h \
349 control/media_list_player.c \
350 control/media_list_view.c \
351 control/media_library.c \
352 control/mediacontrol_internal.h \
353 control/mediacontrol_core.c \
354 control/mediacontrol_util.c \
355 control/mediacontrol_audio_video.c \
356 control/media_discoverer.c \
359 ###############################################################################
361 ###############################################################################
365 echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
366 REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
367 echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
370 ###############################################################################
371 # Unit/regression test
372 ###############################################################################
373 check_PROGRAMS = test_i18n_atof test_url test_utf8 test_control
374 dist_check_SCRIPTS = check_symbols
375 TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
377 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
379 test_i18n_atof_SOURCES = test/i18n_atof.c text/charset.c
380 test_i18n_atof_CFLAGS = $(CFLAGS_tests)
382 test_url_SOURCES = test/url.c
383 test_url_LDADD = libvlc.la
384 test_url_CFLAGS = $(CFLAGS_tests)
386 test_utf8_SOURCES = test/utf8.c
387 test_utf8_LDADD = libvlc.la
388 test_utf8_CFLAGS = $(CFLAGS_tests)
390 test_control_SOURCES = control/testapi.c
391 test_control_LDADD = libvlc-control.la
392 test_control_CFLAGS = $(CFLAGS_tests)
395 @echo "Generated source cannot be phony. Go away." >&2