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_bits.h \
45 ../include/vlc_block.h \
46 ../include/vlc_block_helper.h \
47 ../include/vlc_charset.h \
48 ../include/vlc_codec.h \
49 ../include/vlc_common.h \
50 ../include/vlc_config.h \
51 ../include/vlc_config_cat.h \
52 ../include/vlc_configuration.h \
53 ../include/vlc_dialog.h \
54 ../include/vlc_demux.h \
55 ../include/vlc_epg.h \
57 ../include/vlc_es_out.h \
58 ../include/vlc_events.h \
59 ../include/vlc_filter.h \
60 ../include/vlc_gcrypt.h \
61 ../include/vlc_httpd.h \
62 ../include/vlc_image.h \
63 ../include/vlc_input.h \
64 ../include/vlc_input_item.h \
65 ../include/vlc_main.h \
66 ../include/vlc_md5.h \
67 ../include/vlc_messages.h \
68 ../include/vlc_meta.h \
69 ../include/vlc_modules.h \
70 ../include/vlc_mtime.h \
71 ../include/vlc_objects.h \
72 ../include/vlc_playlist.h \
73 ../include/vlc_plugin.h \
74 ../include/vlc_rand.h \
75 ../include/vlc_services_discovery.h \
76 ../include/vlc_sout.h \
77 ../include/vlc_stream.h \
78 ../include/vlc_strings.h \
79 ../include/vlc_threads.h \
80 ../include/vlc_url.h \
81 ../include/vlc_variables.h \
82 ../include/vlc_vlm.h \
83 ../include/vlc_vout.h \
84 ../include/vlc_window.h \
85 ../include/vlc_xml.h \
90 ../include/vlc_codec_synchro.h \
91 ../include/vlc_codecs.h \
92 ../include/vlc_devices.h \
93 ../include/vlc_fixups.h \
94 ../include/vlc_interface.h \
95 ../include/vlc_intf_strings.h \
96 ../include/vlc_iso_lang.h \
97 ../include/vlc_keys.h \
98 ../include/vlc_network.h \
99 ../include/vlc_osd.h \
100 ../include/vlc_pgpkey.h \
101 ../include/vlc_tls.h \
102 ../include/vlc_update.h \
103 ../include/vlc_vod.h \
106 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
108 mkdir -p -- ../include
109 echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
110 echo "static const char psz_license[] =" >> "$@.tmp"
111 cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
113 echo "static const char psz_thanks[] =" >> "$@.tmp"
114 grep -v '$$Id:' $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }'|sed s/"<.*.> "// >> "$@.tmp"
116 echo "static const char psz_authors[] =" >> "$@.tmp"
117 grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | $(AWK) '{ print "\""$$0"\\n\"" }' >> "$@.tmp"
119 mv -f -- "$@.tmp" "$@"
121 ###############################################################################
122 # pkg-config integration
123 ###############################################################################
125 pkgconfigdir = $(libdir)/pkgconfig
126 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
127 CLEANFILES += $(pkgconfig_DATA)
129 .pc.in.pc: $(top_builddir)/config.status
130 cd "$(top_builddir)" && \
131 $(SHELL) ./config.status --file="src/$@"
133 ###############################################################################
135 ###############################################################################
138 $(top_builddir)/compile
140 lib_LTLIBRARIES = libvlccore.la libvlc.la
142 AM_LDFLAGS = -no-undefined
144 AM_LDFLAGS += -avoid-version
147 AM_LDFLAGS += -avoid-version
150 libvlccore_la_SOURCES = $(SOURCES_libvlc)
151 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
152 -DMODULE_STRING=\"main\" \
153 -DLOCALEDIR=\"$(localedir)\" \
154 -DSYSCONFDIR=\"$(sysconfdir)\" \
155 -DDATA_PATH=\"$(vlcdatadir)\" \
156 -DLIBDIR=\"$(libdir)\" \
157 -DPLUGIN_PATH=\"$(vlclibdir)\"
158 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
159 -export-symbols $(srcdir)/libvlccore.sym \
161 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
162 libvlccore_la_DEPENDENCIES = libvlccore.sym
164 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
165 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
168 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
169 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
171 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
172 libvlc_la_LIBADD = libvlccore.la
173 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
174 -DMODULE_STRING=\"control\"
175 libvlc_la_LDFLAGS = $(AM_LDFLAGS) \
176 -version-info 4:0:2 \
177 -export-symbols $(srcdir)/libvlc.sym
178 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
180 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
181 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
185 EXTRA_libvlccore_la_SOURCES = \
186 $(SOURCES_libvlc_beos) \
187 $(SOURCES_libvlc_darwin) \
188 $(SOURCES_libvlc_linux) \
189 $(SOURCES_libvlc_win32) \
190 $(SOURCES_libvlc_other) \
191 $(SOURCES_libvlc_dirent) \
192 $(SOURCES_libvlc_getopt) \
193 $(SOURCES_libvlc_httpd) \
194 $(SOURCES_libvlc_sout) \
195 $(SOURCES_libvlc_vlm) \
198 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
201 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
204 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
207 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
210 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
212 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
219 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
225 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
228 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
234 SOURCES_libvlc_beos = \
237 SOURCES_libvlc_darwin = \
238 misc/darwin_specific.c \
241 SOURCES_libvlc_linux = \
242 misc/linux_specific.c \
245 SOURCES_libvlc_win32 = \
246 misc/win32_specific.c \
250 SOURCES_libvlc_other = misc/not_specific.c
252 SOURCES_libvlc_dirent = \
256 SOURCES_libvlc_getopt = \
262 SOURCES_libvlc_common = \
269 interface/interface.h \
270 interface/interface.c \
271 interface/intf_eject.c \
272 interface/interaction.c \
273 playlist/playlist_internal.h \
282 playlist/loadsave.c \
283 playlist/preparser.c \
284 playlist/preparser.h \
288 playlist/services_discovery.c \
294 input/decoder_synchro.c \
297 input/es_out_timeshift.c \
306 input/es_out_timeshift.h \
310 input/input_internal.h \
311 input/input_interface.h \
312 input/vlm_internal.h \
316 input/stream_demux.c \
317 input/stream_filter.c \
318 input/stream_memory.c \
321 video_output/video_output.c \
322 video_output/vout_pictures.c \
323 video_output/vout_pictures.h \
324 video_output/video_text.c \
325 video_output/video_widgets.c \
326 video_output/vout_subpictures.c \
327 video_output/vout_intf.c \
328 video_output/vout_internal.h \
329 video_output/vout_control.h \
330 audio_output/aout_internal.h \
331 audio_output/common.c \
333 audio_output/filters.c \
334 audio_output/input.c \
335 audio_output/mixer.c \
336 audio_output/output.c \
337 audio_output/intf.c \
342 network/getaddrinfo.c \
370 config/configuration.h \
389 misc/filter_chain.c \
392 SOURCES_libvlc_httpd = \
396 SOURCES_libvlc_sout = \
397 stream_output/stream_output.c \
398 stream_output/stream_output.h \
399 stream_output/announce.c \
400 stream_output/sap.c \
401 stream_output/sdp.c \
404 SOURCES_libvlc_vlm = \
410 $(SOURCES_libvlc_common) \
411 $(OPT_SOURCES_libvlc_beos) \
412 $(OPT_SOURCES_libvlc_darwin) \
413 $(OPT_SOURCES_libvlc_win32) \
414 $(OPT_SOURCES_libvlc_dirent) \
415 $(OPT_SOURCES_libvlc_getopt) \
418 SOURCES_libvlc_control = \
419 control/libvlc_internal.h \
427 control/flat_media_list_view.c \
428 control/hierarchical_media_list_view.c \
429 control/hierarchical_node_media_list_view.c \
431 control/media_player.c \
432 control/media_list.c \
433 control/media_list_path.h \
434 control/media_list_player.c \
435 control/media_list_view.c \
436 control/media_library.c \
437 control/mediacontrol_internal.h \
438 control/mediacontrol_core.c \
439 control/mediacontrol_util.c \
440 control/mediacontrol_audio_video.c \
441 control/media_discoverer.c
443 ###############################################################################
444 # Unit/regression test
445 ###############################################################################
447 dist_check_SCRIPTS = check_symbols check_headers
448 TESTS = check_symbols
451 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
453 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
454 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
456 echo "Header $$h not included in test/headers.c!"; \
460 $(srcdir)/check_headers $(pkginclude_HEADERS)
461 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
464 @echo "Generated source cannot be phony. Go away." >&2