1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
14 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
15 CLEANFILES = $(BUILT_SOURCES)
17 SUFFIXES = .pc.in .pc .rc.in .rc
19 ###############################################################################
21 ###############################################################################
23 pluginsincludedir = $(pkgincludedir)/plugins
25 pluginsinclude_HEADERS = \
26 ../include/vlc_access.h \
27 ../include/vlc_acl.h \
28 ../include/vlc_aout.h \
29 ../include/vlc_aout_intf.h \
30 ../include/vlc_aout_mixer.h \
31 ../include/vlc_arrays.h \
32 ../include/vlc_art_finder.h \
33 ../include/vlc_atomic.h \
34 ../include/vlc_avcodec.h \
35 ../include/vlc_bits.h \
36 ../include/vlc_block.h \
37 ../include/vlc_block_helper.h \
38 ../include/vlc_charset.h \
39 ../include/vlc_codec.h \
40 ../include/vlc_common.h \
41 ../include/vlc_config.h \
42 ../include/vlc_config_cat.h \
43 ../include/vlc_configuration.h \
44 ../include/vlc_cpu.h \
45 ../include/vlc_dialog.h \
46 ../include/vlc_demux.h \
47 ../include/vlc_epg.h \
49 ../include/vlc_es_out.h \
50 ../include/vlc_events.h \
51 ../include/vlc_filter.h \
52 ../include/vlc_fourcc.h \
54 ../include/vlc_gcrypt.h \
55 ../include/vlc_opengl.h \
56 ../include/vlc_http.h \
57 ../include/vlc_httpd.h \
58 ../include/vlc_image.h \
59 ../include/vlc_inhibit.h \
60 ../include/vlc_input.h \
61 ../include/vlc_input_item.h \
62 ../include/vlc_main.h \
63 ../include/vlc_md5.h \
64 ../include/vlc_messages.h \
65 ../include/vlc_meta.h \
66 ../include/vlc_media_library.h \
67 ../include/vlc_modules.h \
68 ../include/vlc_mouse.h \
69 ../include/vlc_mtime.h \
70 ../include/vlc_network.h \
71 ../include/vlc_objects.h \
72 ../include/vlc_picture.h \
73 ../include/vlc_picture_fifo.h \
74 ../include/vlc_picture_pool.h \
75 ../include/vlc_playlist.h \
76 ../include/vlc_plugin.h \
77 ../include/vlc_probe.h \
78 ../include/vlc_rand.h \
79 ../include/vlc_services_discovery.h \
80 ../include/vlc_sql.h \
81 ../include/vlc_sout.h \
82 ../include/vlc_spu.h \
83 ../include/vlc_stream.h \
84 ../include/vlc_strings.h \
85 ../include/vlc_subpicture.h \
86 ../include/vlc_text_style.h \
87 ../include/vlc_threads.h \
88 ../include/vlc_tls.h \
89 ../include/vlc_url.h \
90 ../include/vlc_variables.h \
91 ../include/vlc_vlm.h \
92 ../include/vlc_video_splitter.h \
93 ../include/vlc_vout.h \
94 ../include/vlc_vout_display.h \
95 ../include/vlc_vout_osd.h \
96 ../include/vlc_vout_window.h \
97 ../include/vlc_xml.h \
98 ../include/vlc_xlib.h \
100 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
103 ../include/vlc_codec_synchro.h \
104 ../include/vlc_codecs.h \
105 ../include/vlc_extensions.h \
106 ../include/vlc_fixups.h \
107 ../include/vlc_interface.h \
108 ../include/vlc_intf_strings.h \
109 ../include/vlc_iso_lang.h \
110 ../include/vlc_keys.h \
111 ../include/vlc_memory.h \
112 ../include/vlc_osd.h \
113 ../include/vlc_pgpkey.h \
114 ../include/vlc_update.h \
115 ../include/vlc_vod.h \
116 ../include/vlc_vout_wrapper.h \
117 ../include/vlc_windows_interfaces.h \
120 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
121 $(AM_V_at)rm -f -- "$@.tmp"
122 $(AM_V_at)mkdir -p -- ../include
123 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
124 echo "static const char psz_license[] =" && \
125 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
127 echo "static const char psz_thanks[] =" && \
128 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
129 "$(top_srcdir)/THANKS" && \
131 echo "static const char psz_authors[] =" && \
132 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
133 "$(top_srcdir)/AUTHORS" && \
134 echo ";") >> "$@.tmp"
135 $(AM_V_at)mv -f -- "$@.tmp" "$@"
137 ###############################################################################
138 # pkg-config integration
139 ###############################################################################
141 pkgconfigdir = $(libdir)/pkgconfig
142 pkgconfig_DATA = vlc-plugin.pc
143 CLEANFILES += $(pkgconfig_DATA)
145 .pc.in.pc: $(top_builddir)/config.status
146 $(AM_V_GEN)cd "$(top_builddir)" && \
147 $(SHELL) ./config.status --file="src/$@"
149 ##############################################################################
150 # Windows resource files
151 ##############################################################################
154 noinst_DATA = libvlc_win32_rc.rc
156 EXTRA_DIST += libvlc_win32_rc.rc.in
158 .rc.in.rc: $(top_builddir)/config.status
159 cd "$(top_builddir)" && \
160 $(SHELL) ./config.status --file="src/$@"
162 ###############################################################################
164 ###############################################################################
166 lib_LTLIBRARIES = libvlccore.la
168 AM_CPPFLAGS = $(INCICONV) \
169 -DMODULE_STRING=\"main\" \
170 -DLOCALEDIR=\"$(localedir)\" \
171 -DSYSCONFDIR=\"$(sysconfdir)\" \
172 -DDATA_PATH=\"$(vlcdatadir)\" \
173 -DPKGLIBDIR=\"$(vlclibdir)\"
174 AM_CFLAGS = $(CFLAGS_libvlccore)
176 libvlccore_la_SOURCES = $(SOURCES_libvlc)
177 libvlccore_la_LDFLAGS = \
179 $(LDFLAGS_libvlccore) \
181 -export-symbols $(srcdir)/libvlccore.sym \
183 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
184 $(LTLIBINTL) $(LTLIBICONV) \
185 $(SOCKET_LIBS) $(LIBDL) $(LIBM) \
186 ../compat/libcompat.la
187 libvlccore_la_DEPENDENCIES = libvlccore.sym
189 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
190 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
193 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
194 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
196 EXTRA_libvlccore_la_SOURCES = \
197 $(SOURCES_libvlc_darwin) \
198 $(SOURCES_libvlc_linux) \
199 $(SOURCES_libvlc_win32) \
200 $(SOURCES_libvlc_os2) \
201 $(SOURCES_libvlc_other) \
202 $(SOURCES_libvlc_httpd) \
203 $(SOURCES_libvlc_sout) \
204 $(SOURCES_libvlc_vlm) \
207 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
210 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
213 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
219 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
224 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
235 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
241 SOURCES_libvlc_darwin = \
242 posix/darwin_dirs.c \
248 posix/darwin_specific.c \
251 SOURCES_libvlc_linux = \
258 posix/linux_specific.c \
261 SOURCES_libvlc_win32 = \
272 SOURCES_libvlc_symbian = \
279 SOURCES_libvlc_os2 = \
289 SOURCES_libvlc_other = \
298 SOURCES_libvlc_common = \
306 interface/interface.c \
307 interface/intf_eject.c \
308 playlist/playlist_internal.h \
317 playlist/loadsave.c \
318 playlist/preparser.c \
319 playlist/preparser.h \
323 playlist/services_discovery.c \
329 input/decoder_synchro.c \
332 input/es_out_timeshift.c \
342 input/es_out_timeshift.h \
346 input/input_internal.h \
347 input/input_interface.h \
348 input/vlm_internal.h \
353 input/stream_demux.c \
354 input/stream_filter.c \
355 input/stream_memory.c \
358 video_output/chrono.h \
359 video_output/control.c \
360 video_output/control.h \
361 video_output/display.c \
362 video_output/display.h \
363 video_output/event.h \
364 video_output/inhibit.c \
365 video_output/inhibit.h \
366 video_output/interlacing.c \
367 video_output/interlacing.h \
368 video_output/snapshot.c \
369 video_output/snapshot.h \
370 video_output/statistic.h \
371 video_output/postprocessing.c \
372 video_output/postprocessing.h \
373 video_output/video_output.c \
374 video_output/video_text.c \
375 video_output/video_epg.c \
376 video_output/video_widgets.c \
377 video_output/vout_subpictures.c \
378 video_output/window.c \
379 video_output/opengl.c \
380 video_output/vout_intf.c \
381 video_output/vout_internal.h \
382 video_output/vout_control.h \
383 video_output/vout_wrapper.c \
384 audio_output/aout_internal.h \
385 audio_output/common.c \
387 audio_output/filters.c \
388 audio_output/input.c \
389 audio_output/mixer.c \
390 audio_output/output.c \
391 audio_output/intf.c \
395 network/getaddrinfo.c \
415 misc/picture_fifo.c \
416 misc/picture_pool.c \
422 modules/textdomain.c \
428 config/configuration.h \
438 config/vlc_getopt.h \
448 misc/update_crypto.c \
450 misc/media_library.c \
454 misc/filter_chain.c \
462 SOURCES_libvlc_httpd = \
466 SOURCES_libvlc_sout = \
467 stream_output/stream_output.c \
468 stream_output/stream_output.h \
469 stream_output/announce.c \
470 stream_output/sap.c \
471 stream_output/sdp.c \
474 SOURCES_libvlc_vlm = \
481 $(SOURCES_libvlc_common) \
484 ###############################################################################
486 ###############################################################################
488 BUILT_SOURCES += stamp-revision
489 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
491 $(srcdir)/revision.c: $(srcdir)/revision.txt
492 $(AM_V_at)rm -f -- $@
493 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
496 $(srcdir)/revision.txt:
497 $(AM_V_at)$(MAKE) stamp-revision
501 $(AM_V_at)rm -f -- revision.tmp
502 $(AM_V_GEN)if ! git \
503 --git-dir="$(top_srcdir)/.git/" describe \
504 --tags --long --match '?.*.*' --always; then \
505 cat $(srcdir)/revision.txt ; \
507 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
508 rm -f -- revision.tmp; \
510 mv -f -- revision.tmp $(srcdir)/revision.txt; \
514 ###############################################################################
515 # Unit/regression test
516 ###############################################################################
518 dist_check_SCRIPTS = check_headers
521 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
523 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
524 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
526 echo "Header $$h not included in test/headers.c!"; \
530 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
533 @echo "Generated source cannot be phony. Go away." >&2