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_gcrypt.h \
62 ../include/vlc_httpd.h \
63 ../include/vlc_image.h \
64 ../include/vlc_input.h \
65 ../include/vlc_input_item.h \
66 ../include/vlc_main.h \
67 ../include/vlc_md5.h \
68 ../include/vlc_messages.h \
69 ../include/vlc_meta.h \
70 ../include/vlc_modules.h \
71 ../include/vlc_mtime.h \
72 ../include/vlc_objects.h \
73 ../include/vlc_playlist.h \
74 ../include/vlc_plugin.h \
75 ../include/vlc_rand.h \
76 ../include/vlc_services_discovery.h \
77 ../include/vlc_sout.h \
78 ../include/vlc_stream.h \
79 ../include/vlc_strings.h \
80 ../include/vlc_threads.h \
81 ../include/vlc_url.h \
82 ../include/vlc_variables.h \
83 ../include/vlc_vlm.h \
84 ../include/vlc_vout.h \
85 ../include/vlc_window.h \
86 ../include/vlc_xml.h \
91 ../include/vlc_codec_synchro.h \
92 ../include/vlc_codecs.h \
93 ../include/vlc_devices.h \
94 ../include/vlc_fixups.h \
95 ../include/vlc_interface.h \
96 ../include/vlc_intf_strings.h \
97 ../include/vlc_iso_lang.h \
98 ../include/vlc_keys.h \
99 ../include/vlc_network.h \
100 ../include/vlc_osd.h \
101 ../include/vlc_pgpkey.h \
102 ../include/vlc_tls.h \
103 ../include/vlc_update.h \
104 ../include/vlc_vod.h \
107 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
109 mkdir -p -- ../include
110 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
111 echo "static const char psz_license[] =" >> "$@.tmp"
112 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
114 echo "static const char psz_thanks[] =" >> "$@.tmp"
115 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
117 echo "static const char psz_authors[] =" >> "$@.tmp"
118 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
120 mv -f -- "$@.tmp" "$@"
122 ###############################################################################
123 # pkg-config integration
124 ###############################################################################
126 pkgconfigdir = $(libdir)/pkgconfig
127 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
128 CLEANFILES += $(pkgconfig_DATA)
130 .pc.in.pc: $(top_builddir)/config.status
131 cd "$(top_builddir)" && \
132 $(SHELL) ./config.status --file="src/$@"
134 ###############################################################################
136 ###############################################################################
139 $(top_builddir)/compile
141 lib_LTLIBRARIES = libvlccore.la libvlc.la
143 AM_LDFLAGS = -no-undefined
145 AM_LDFLAGS += -avoid-version
148 AM_LDFLAGS += -avoid-version
151 libvlccore_la_SOURCES = $(SOURCES_libvlc)
152 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
153 -DMODULE_STRING=\"main\" \
154 -DLOCALEDIR=\"$(localedir)\" \
155 -DSYSCONFDIR=\"$(sysconfdir)\" \
156 -DDATA_PATH=\"$(vlcdatadir)\" \
157 -DLIBDIR=\"$(libdir)\" \
158 -DPLUGIN_PATH=\"$(vlclibdir)\"
159 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
161 -export-symbols $(srcdir)/libvlccore.sym \
163 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) \
164 $(LTLIBINTL) ../compat/libcompat.la
165 libvlccore_la_DEPENDENCIES = libvlccore.sym
167 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
168 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
171 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
172 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
174 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
175 libvlc_la_LIBADD = libvlccore.la ../compat/libcompat.la
176 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
177 -DMODULE_STRING=\"control\"
178 libvlc_la_LDFLAGS = $(AM_LDFLAGS) \
179 -version-info 4:0:2 \
180 -export-symbols $(srcdir)/libvlc.sym
181 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
183 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
184 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
188 EXTRA_libvlccore_la_SOURCES = \
189 $(SOURCES_libvlc_beos) \
190 $(SOURCES_libvlc_darwin) \
191 $(SOURCES_libvlc_linux) \
192 $(SOURCES_libvlc_win32) \
193 $(SOURCES_libvlc_other) \
194 $(SOURCES_libvlc_dirent) \
195 $(SOURCES_libvlc_getopt) \
196 $(SOURCES_libvlc_httpd) \
197 $(SOURCES_libvlc_sout) \
198 $(SOURCES_libvlc_vlm) \
201 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
204 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
207 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
210 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
213 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
215 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
225 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
228 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
231 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
233 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
237 SOURCES_libvlc_beos = \
240 SOURCES_libvlc_darwin = \
241 misc/darwin_specific.c \
244 SOURCES_libvlc_linux = \
245 misc/linux_specific.c \
248 SOURCES_libvlc_win32 = \
249 misc/win32_specific.c \
253 SOURCES_libvlc_other = misc/not_specific.c
255 SOURCES_libvlc_dirent = \
259 SOURCES_libvlc_getopt = \
265 SOURCES_libvlc_common = \
272 interface/interface.c \
273 interface/intf_eject.c \
274 playlist/playlist_internal.h \
283 playlist/loadsave.c \
284 playlist/preparser.c \
285 playlist/preparser.h \
289 playlist/services_discovery.c \
295 input/decoder_synchro.c \
298 input/es_out_timeshift.c \
307 input/es_out_timeshift.h \
311 input/input_internal.h \
312 input/input_interface.h \
313 input/vlm_internal.h \
318 input/stream_demux.c \
319 input/stream_filter.c \
320 input/stream_memory.c \
323 video_output/video_output.c \
324 video_output/vout_pictures.c \
325 video_output/vout_pictures.h \
326 video_output/video_text.c \
327 video_output/video_widgets.c \
328 video_output/vout_subpictures.c \
329 video_output/vout_intf.c \
330 video_output/vout_internal.h \
331 video_output/vout_control.h \
332 audio_output/aout_internal.h \
333 audio_output/common.c \
335 audio_output/filters.c \
336 audio_output/input.c \
337 audio_output/mixer.c \
338 audio_output/output.c \
339 audio_output/intf.c \
344 network/getaddrinfo.c \
372 config/configuration.h \
391 misc/filter_chain.c \
394 SOURCES_libvlc_httpd = \
398 SOURCES_libvlc_sout = \
399 stream_output/stream_output.c \
400 stream_output/stream_output.h \
401 stream_output/announce.c \
402 stream_output/sap.c \
403 stream_output/sdp.c \
406 SOURCES_libvlc_vlm = \
413 $(SOURCES_libvlc_common) \
414 $(OPT_SOURCES_libvlc_beos) \
415 $(OPT_SOURCES_libvlc_darwin) \
416 $(OPT_SOURCES_libvlc_win32) \
417 $(OPT_SOURCES_libvlc_dirent) \
418 $(OPT_SOURCES_libvlc_getopt) \
421 SOURCES_libvlc_control = \
422 control/libvlc_internal.h \
430 control/flat_media_list_view.c \
431 control/hierarchical_media_list_view.c \
432 control/hierarchical_node_media_list_view.c \
434 control/media_player.c \
435 control/media_list.c \
436 control/media_list_path.h \
437 control/media_list_player.c \
438 control/media_list_view.c \
439 control/media_library.c \
440 control/mediacontrol_internal.h \
441 control/mediacontrol_core.c \
442 control/mediacontrol_util.c \
443 control/mediacontrol_audio_video.c \
444 control/media_discoverer.c
446 ###############################################################################
447 # Unit/regression test
448 ###############################################################################
450 dist_check_SCRIPTS = check_symbols check_headers
451 TESTS = check_symbols
454 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
456 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
457 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
459 echo "Header $$h not included in test/headers.c!"; \
463 $(srcdir)/check_headers $(pkginclude_HEADERS)
464 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
467 @echo "Generated source cannot be phony. Go away." >&2