1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
9 EXTRA_DIST = extras/COPYING \
10 misc/beos_specific.cpp \
16 BUILT_SOURCES = ../include/vlc_about.h
17 CLEANFILES = $(BUILT_SOURCES)
21 ###############################################################################
23 ###############################################################################
25 pluginsincludedir = $(pkgincludedir)/plugins
27 pkginclude_HEADERS = \
28 ../include/vlc/vlc.h \
29 ../include/vlc/deprecated.h \
30 ../include/vlc/libvlc.h \
31 ../include/vlc/libvlc_structures.h \
32 ../include/vlc/libvlc_media_list.h \
33 ../include/vlc/libvlc_events.h \
34 ../include/vlc/libvlc_vlm.h \
35 ../include/vlc/mediacontrol.h \
36 ../include/vlc/mediacontrol_structures.h \
39 pluginsinclude_HEADERS = \
40 ../include/vlc_access.h \
41 ../include/vlc_acl.h \
42 ../include/vlc_aout.h \
43 ../include/vlc_arrays.h \
44 ../include/vlc_avcodec.h \
45 ../include/vlc_bits.h \
46 ../include/vlc_block.h \
47 ../include/vlc_block_helper.h \
48 ../include/vlc_charset.h \
49 ../include/vlc_codec.h \
50 ../include/vlc_common.h \
51 ../include/vlc_config.h \
52 ../include/vlc_config_cat.h \
53 ../include/vlc_configuration.h \
54 ../include/vlc_dialog.h \
55 ../include/vlc_demux.h \
56 ../include/vlc_epg.h \
58 ../include/vlc_es_out.h \
59 ../include/vlc_events.h \
60 ../include/vlc_filter.h \
61 ../include/vlc_fourcc.h \
62 ../include/vlc_gcrypt.h \
63 ../include/vlc_httpd.h \
64 ../include/vlc_image.h \
65 ../include/vlc_input.h \
66 ../include/vlc_input_item.h \
67 ../include/vlc_main.h \
68 ../include/vlc_md5.h \
69 ../include/vlc_messages.h \
70 ../include/vlc_meta.h \
71 ../include/vlc_modules.h \
72 ../include/vlc_mtime.h \
73 ../include/vlc_objects.h \
74 ../include/vlc_playlist.h \
75 ../include/vlc_plugin.h \
76 ../include/vlc_rand.h \
77 ../include/vlc_services_discovery.h \
78 ../include/vlc_sout.h \
79 ../include/vlc_stream.h \
80 ../include/vlc_strings.h \
81 ../include/vlc_threads.h \
82 ../include/vlc_url.h \
83 ../include/vlc_variables.h \
84 ../include/vlc_vlm.h \
85 ../include/vlc_vout.h \
86 ../include/vlc_window.h \
87 ../include/vlc_xml.h \
92 ../include/vlc_codec_synchro.h \
93 ../include/vlc_codecs.h \
94 ../include/vlc_devices.h \
95 ../include/vlc_fixups.h \
96 ../include/vlc_interface.h \
97 ../include/vlc_intf_strings.h \
98 ../include/vlc_iso_lang.h \
99 ../include/vlc_keys.h \
100 ../include/vlc_network.h \
101 ../include/vlc_osd.h \
102 ../include/vlc_pgpkey.h \
103 ../include/vlc_tls.h \
104 ../include/vlc_update.h \
105 ../include/vlc_vod.h \
108 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
110 mkdir -p -- ../include
111 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
112 echo "static const char psz_license[] =" >> "$@.tmp"
113 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
115 echo "static const char psz_thanks[] =" >> "$@.tmp"
116 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
118 echo "static const char psz_authors[] =" >> "$@.tmp"
119 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
121 mv -f -- "$@.tmp" "$@"
123 ###############################################################################
124 # pkg-config integration
125 ###############################################################################
127 pkgconfigdir = $(libdir)/pkgconfig
128 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
129 CLEANFILES += $(pkgconfig_DATA)
131 .pc.in.pc: $(top_builddir)/config.status
132 cd "$(top_builddir)" && \
133 $(SHELL) ./config.status --file="src/$@"
135 ###############################################################################
137 ###############################################################################
140 $(top_builddir)/compile
142 lib_LTLIBRARIES = libvlccore.la libvlc.la
144 AM_LDFLAGS = -no-undefined
146 AM_LDFLAGS += -avoid-version
149 AM_LDFLAGS += -avoid-version
152 libvlccore_la_SOURCES = $(SOURCES_libvlc)
153 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
154 -DMODULE_STRING=\"main\" \
155 -DLOCALEDIR=\"$(localedir)\" \
156 -DSYSCONFDIR=\"$(sysconfdir)\" \
157 -DDATA_PATH=\"$(vlcdatadir)\" \
158 -DLIBDIR=\"$(libdir)\" \
159 -DPLUGIN_PATH=\"$(vlclibdir)\"
160 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
162 -export-symbols $(srcdir)/libvlccore.sym \
164 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
165 $(LTLIBINTL) ../compat/libcompat.la
166 libvlccore_la_DEPENDENCIES = libvlccore.sym
168 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
169 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
172 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
173 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
175 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
176 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
177 libvlccore.la ../compat/libcompat.la
178 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
179 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
180 -version-info 5:0:0 \
181 -export-symbols $(srcdir)/libvlc.sym
182 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
184 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
185 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
189 EXTRA_libvlccore_la_SOURCES = \
190 $(SOURCES_libvlc_beos) \
191 $(SOURCES_libvlc_darwin) \
192 $(SOURCES_libvlc_linux) \
193 $(SOURCES_libvlc_win32) \
194 $(SOURCES_libvlc_other) \
195 $(SOURCES_libvlc_dirent) \
196 $(SOURCES_libvlc_getopt) \
197 $(SOURCES_libvlc_httpd) \
198 $(SOURCES_libvlc_sout) \
199 $(SOURCES_libvlc_vlm) \
202 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
205 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
208 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
211 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
214 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
223 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
226 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
229 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
234 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
238 SOURCES_libvlc_beos = \
241 SOURCES_libvlc_darwin = \
242 misc/darwin_specific.c \
245 SOURCES_libvlc_linux = \
246 misc/linux_specific.c \
249 SOURCES_libvlc_win32 = \
250 misc/win32_specific.c \
254 SOURCES_libvlc_other = misc/not_specific.c
256 SOURCES_libvlc_dirent = \
260 SOURCES_libvlc_getopt = \
266 SOURCES_libvlc_common = \
273 interface/interface.c \
274 interface/intf_eject.c \
275 playlist/playlist_internal.h \
284 playlist/loadsave.c \
285 playlist/preparser.c \
286 playlist/preparser.h \
290 playlist/services_discovery.c \
296 input/decoder_synchro.c \
299 input/es_out_timeshift.c \
308 input/es_out_timeshift.h \
312 input/input_internal.h \
313 input/input_interface.h \
314 input/vlm_internal.h \
319 input/stream_demux.c \
320 input/stream_filter.c \
321 input/stream_memory.c \
324 video_output/video_output.c \
325 video_output/vout_pictures.c \
326 video_output/vout_pictures.h \
327 video_output/video_text.c \
328 video_output/video_widgets.c \
329 video_output/vout_subpictures.c \
330 video_output/vout_intf.c \
331 video_output/vout_internal.h \
332 video_output/vout_control.h \
333 audio_output/aout_internal.h \
334 audio_output/common.c \
336 audio_output/filters.c \
337 audio_output/input.c \
338 audio_output/mixer.c \
339 audio_output/output.c \
340 audio_output/intf.c \
345 network/getaddrinfo.c \
374 config/configuration.h \
393 misc/filter_chain.c \
396 SOURCES_libvlc_httpd = \
400 SOURCES_libvlc_sout = \
401 stream_output/stream_output.c \
402 stream_output/stream_output.h \
403 stream_output/announce.c \
404 stream_output/sap.c \
405 stream_output/sdp.c \
408 SOURCES_libvlc_vlm = \
415 $(SOURCES_libvlc_common) \
416 $(OPT_SOURCES_libvlc_beos) \
417 $(OPT_SOURCES_libvlc_darwin) \
418 $(OPT_SOURCES_libvlc_win32) \
419 $(OPT_SOURCES_libvlc_dirent) \
420 $(OPT_SOURCES_libvlc_getopt) \
423 SOURCES_libvlc_control = \
424 control/libvlc_internal.h \
432 control/flat_media_list_view.c \
433 control/hierarchical_media_list_view.c \
434 control/hierarchical_node_media_list_view.c \
436 control/media_player.c \
437 control/media_list.c \
438 control/media_list_path.h \
439 control/media_list_player.c \
440 control/media_list_view.c \
441 control/media_library.c \
442 control/mediacontrol_internal.h \
443 control/mediacontrol_core.c \
444 control/mediacontrol_util.c \
445 control/mediacontrol_audio_video.c \
446 control/media_discoverer.c
448 ###############################################################################
449 # Unit/regression test
450 ###############################################################################
452 dist_check_SCRIPTS = check_symbols check_headers
453 TESTS = check_symbols
456 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
458 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
459 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
461 echo "Header $$h not included in test/headers.c!"; \
465 $(srcdir)/check_headers $(pkginclude_HEADERS)
466 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
469 @echo "Generated source cannot be phony. Go away." >&2