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_events.h \
32 ../include/vlc/libvlc_media_list.h \
33 ../include/vlc/libvlc_media.h \
34 ../include/vlc/libvlc_media_discoverer.h \
35 ../include/vlc/libvlc_media_library.h \
36 ../include/vlc/libvlc_media_list.h \
37 ../include/vlc/libvlc_media_list_player.h \
38 ../include/vlc/libvlc_media_list_view.h \
39 ../include/vlc/libvlc_media_player.h \
40 ../include/vlc/libvlc_structures.h \
41 ../include/vlc/libvlc_vlm.h \
42 ../include/vlc/mediacontrol.h \
43 ../include/vlc/mediacontrol_structures.h \
46 pluginsinclude_HEADERS = \
47 ../include/vlc_access.h \
48 ../include/vlc_acl.h \
49 ../include/vlc_aout.h \
50 ../include/vlc_arrays.h \
51 ../include/vlc_avcodec.h \
52 ../include/vlc_bits.h \
53 ../include/vlc_block.h \
54 ../include/vlc_block_helper.h \
55 ../include/vlc_charset.h \
56 ../include/vlc_codec.h \
57 ../include/vlc_common.h \
58 ../include/vlc_config.h \
59 ../include/vlc_config_cat.h \
60 ../include/vlc_configuration.h \
61 ../include/vlc_dialog.h \
62 ../include/vlc_demux.h \
63 ../include/vlc_epg.h \
65 ../include/vlc_es_out.h \
66 ../include/vlc_events.h \
67 ../include/vlc_filter.h \
68 ../include/vlc_fourcc.h \
69 ../include/vlc_gcrypt.h \
70 ../include/vlc_httpd.h \
71 ../include/vlc_image.h \
72 ../include/vlc_input.h \
73 ../include/vlc_input_item.h \
74 ../include/vlc_main.h \
75 ../include/vlc_md5.h \
76 ../include/vlc_messages.h \
77 ../include/vlc_meta.h \
78 ../include/vlc_modules.h \
79 ../include/vlc_mtime.h \
80 ../include/vlc_objects.h \
81 ../include/vlc_picture.h \
82 ../include/vlc_picture_fifo.h \
83 ../include/vlc_picture_pool.h \
84 ../include/vlc_playlist.h \
85 ../include/vlc_plugin.h \
86 ../include/vlc_rand.h \
87 ../include/vlc_services_discovery.h \
88 ../include/vlc_sout.h \
89 ../include/vlc_stream.h \
90 ../include/vlc_strings.h \
91 ../include/vlc_subpicture.h \
92 ../include/vlc_threads.h \
93 ../include/vlc_url.h \
94 ../include/vlc_variables.h \
95 ../include/vlc_vlm.h \
96 ../include/vlc_video_splitter.h \
97 ../include/vlc_vout.h \
98 ../include/vlc_window.h \
99 ../include/vlc_xml.h \
104 ../include/vlc_codec_synchro.h \
105 ../include/vlc_codecs.h \
106 ../include/vlc_devices.h \
107 ../include/vlc_fixups.h \
108 ../include/vlc_interface.h \
109 ../include/vlc_intf_strings.h \
110 ../include/vlc_iso_lang.h \
111 ../include/vlc_keys.h \
112 ../include/vlc_network.h \
113 ../include/vlc_osd.h \
114 ../include/vlc_pgpkey.h \
115 ../include/vlc_tls.h \
116 ../include/vlc_update.h \
117 ../include/vlc_vod.h \
120 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
122 mkdir -p -- ../include
123 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
124 echo "static const char psz_license[] =" >> "$@.tmp"
125 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
127 echo "static const char psz_thanks[] =" >> "$@.tmp"
128 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
130 echo "static const char psz_authors[] =" >> "$@.tmp"
131 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
133 mv -f -- "$@.tmp" "$@"
135 ###############################################################################
136 # pkg-config integration
137 ###############################################################################
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
141 CLEANFILES += $(pkgconfig_DATA)
143 .pc.in.pc: $(top_builddir)/config.status
144 cd "$(top_builddir)" && \
145 $(SHELL) ./config.status --file="src/$@"
147 ###############################################################################
149 ###############################################################################
152 $(top_builddir)/compile
154 lib_LTLIBRARIES = libvlccore.la libvlc.la
156 AM_LDFLAGS = -no-undefined
158 AM_LDFLAGS += -avoid-version
161 AM_LDFLAGS += -avoid-version
164 libvlccore_la_SOURCES = $(SOURCES_libvlc)
165 nodist_libvlccore_la_SOURCES = revision.c
166 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
167 -DMODULE_STRING=\"main\" \
168 -DLOCALEDIR=\"$(localedir)\" \
169 -DSYSCONFDIR=\"$(sysconfdir)\" \
170 -DDATA_PATH=\"$(vlcdatadir)\" \
171 -DLIBDIR=\"$(libdir)\" \
172 -DPLUGIN_PATH=\"$(vlclibdir)\"
173 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
175 -export-symbols $(srcdir)/libvlccore.sym \
177 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
178 $(LTLIBINTL) ../compat/libcompat.la
179 libvlccore_la_DEPENDENCIES = libvlccore.sym
181 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
182 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
185 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
186 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
188 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
189 nodist_libvlc_la_SOURCES = revision.c
190 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
191 libvlccore.la ../compat/libcompat.la
192 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
193 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
194 -version-info 5:0:0 \
195 -export-symbols $(srcdir)/libvlc.sym
196 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
198 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
199 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
203 EXTRA_libvlccore_la_SOURCES = \
204 $(SOURCES_libvlc_beos) \
205 $(SOURCES_libvlc_darwin) \
206 $(SOURCES_libvlc_linux) \
207 $(SOURCES_libvlc_win32) \
208 $(SOURCES_libvlc_other) \
209 $(SOURCES_libvlc_dirent) \
210 $(SOURCES_libvlc_getopt) \
211 $(SOURCES_libvlc_httpd) \
212 $(SOURCES_libvlc_sout) \
213 $(SOURCES_libvlc_vlm) \
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
219 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
225 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
228 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
240 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
243 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
246 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
248 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
252 SOURCES_libvlc_beos = \
256 SOURCES_libvlc_darwin = \
258 misc/darwin_specific.c \
261 SOURCES_libvlc_linux = \
263 misc/linux_specific.c \
266 SOURCES_libvlc_win32 = \
268 misc/win32_specific.c \
272 SOURCES_libvlc_other = \
276 SOURCES_libvlc_dirent = \
280 SOURCES_libvlc_getopt = \
286 SOURCES_libvlc_common = \
293 interface/interface.c \
294 interface/intf_eject.c \
295 playlist/playlist_internal.h \
304 playlist/loadsave.c \
305 playlist/preparser.c \
306 playlist/preparser.h \
310 playlist/services_discovery.c \
316 input/decoder_synchro.c \
319 input/es_out_timeshift.c \
328 input/es_out_timeshift.h \
332 input/input_internal.h \
333 input/input_interface.h \
334 input/vlm_internal.h \
339 input/stream_demux.c \
340 input/stream_filter.c \
341 input/stream_memory.c \
344 video_output/video_output.c \
345 video_output/vout_pictures.c \
346 video_output/vout_pictures.h \
347 video_output/video_text.c \
348 video_output/video_widgets.c \
349 video_output/vout_subpictures.c \
350 video_output/vout_intf.c \
351 video_output/vout_internal.h \
352 video_output/vout_control.h \
353 audio_output/aout_internal.h \
354 audio_output/common.c \
356 audio_output/filters.c \
357 audio_output/input.c \
358 audio_output/mixer.c \
359 audio_output/output.c \
360 audio_output/intf.c \
365 network/getaddrinfo.c \
394 config/configuration.h \
414 misc/filter_chain.c \
417 SOURCES_libvlc_httpd = \
421 SOURCES_libvlc_sout = \
422 stream_output/stream_output.c \
423 stream_output/stream_output.h \
424 stream_output/announce.c \
425 stream_output/sap.c \
426 stream_output/sdp.c \
429 SOURCES_libvlc_vlm = \
436 $(SOURCES_libvlc_common) \
437 $(OPT_SOURCES_libvlc_beos) \
438 $(OPT_SOURCES_libvlc_darwin) \
439 $(OPT_SOURCES_libvlc_win32) \
440 $(OPT_SOURCES_libvlc_dirent) \
441 $(OPT_SOURCES_libvlc_getopt) \
444 SOURCES_libvlc_control = \
445 control/libvlc_internal.h \
446 control/event_internal.h \
447 control/media_internal.h \
448 control/media_list_internal.h \
449 control/media_list_view_internal.h \
450 control/media_player_internal.h \
458 control/event_async.c \
459 control/flat_media_list_view.c \
460 control/hierarchical_media_list_view.c \
461 control/hierarchical_node_media_list_view.c \
463 control/media_player.c \
464 control/media_list.c \
465 control/media_list_path.h \
466 control/media_list_player.c \
467 control/media_list_view.c \
468 control/media_library.c \
469 control/mediacontrol_internal.h \
470 control/mediacontrol_core.c \
471 control/mediacontrol_util.c \
472 control/mediacontrol_audio_video.c \
473 control/media_discoverer.c
475 ###############################################################################
477 ###############################################################################
479 BUILT_SOURCES += stamp-revision
480 CLEANFILES += revision.txt revision.c
482 revision.c: revision.txt
484 echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
488 $(MAKE) stamp-revision
492 rm -f -- revision.tmp
493 (git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
494 --always || echo exported) > revision.tmp
495 diff revision.tmp revision.txt >/dev/null 2>&1 || \
496 mv -f -- revision.tmp revision.txt
498 ###############################################################################
499 # Unit/regression test
500 ###############################################################################
502 dist_check_SCRIPTS = check_symbols check_headers
503 TESTS = check_symbols
506 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
508 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
509 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
511 echo "Header $$h not included in test/headers.c!"; \
515 $(srcdir)/check_headers $(pkginclude_HEADERS)
516 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
519 @echo "Generated source cannot be phony. Go away." >&2