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)
19 SUFFIXES = .pc.in .pc .rc.in .rc
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.h \
33 ../include/vlc/libvlc_media_discoverer.h \
34 ../include/vlc/libvlc_media_library.h \
35 ../include/vlc/libvlc_media_list.h \
36 ../include/vlc/libvlc_media_list_player.h \
37 ../include/vlc/libvlc_media_player.h \
38 ../include/vlc/libvlc_structures.h \
39 ../include/vlc/libvlc_vlm.h \
42 pluginsinclude_HEADERS = \
43 ../include/vlc_access.h \
44 ../include/vlc_acl.h \
45 ../include/vlc_aout.h \
46 ../include/vlc_aout_mixer.h \
47 ../include/vlc_arrays.h \
48 ../include/vlc_art_finder.h \
49 ../include/vlc_avcodec.h \
50 ../include/vlc_bits.h \
51 ../include/vlc_block.h \
52 ../include/vlc_block_helper.h \
53 ../include/vlc_charset.h \
54 ../include/vlc_codec.h \
55 ../include/vlc_common.h \
56 ../include/vlc_config.h \
57 ../include/vlc_config_cat.h \
58 ../include/vlc_configuration.h \
59 ../include/vlc_cpu.h \
60 ../include/vlc_dialog.h \
61 ../include/vlc_demux.h \
62 ../include/vlc_epg.h \
64 ../include/vlc_es_out.h \
65 ../include/vlc_events.h \
66 ../include/vlc_filter.h \
67 ../include/vlc_fourcc.h \
69 ../include/vlc_gcrypt.h \
70 ../include/vlc_http.h \
71 ../include/vlc_httpd.h \
72 ../include/vlc_image.h \
73 ../include/vlc_inhibit.h \
74 ../include/vlc_input.h \
75 ../include/vlc_input_item.h \
76 ../include/vlc_main.h \
77 ../include/vlc_md5.h \
78 ../include/vlc_messages.h \
79 ../include/vlc_meta.h \
80 ../include/vlc_modules.h \
81 ../include/vlc_mouse.h \
82 ../include/vlc_mtime.h \
83 ../include/vlc_objects.h \
84 ../include/vlc_picture.h \
85 ../include/vlc_picture_fifo.h \
86 ../include/vlc_picture_pool.h \
87 ../include/vlc_playlist.h \
88 ../include/vlc_plugin.h \
89 ../include/vlc_probe.h \
90 ../include/vlc_rand.h \
91 ../include/vlc_services_discovery.h \
92 ../include/vlc_sql.h \
93 ../include/vlc_sout.h \
94 ../include/vlc_stream.h \
95 ../include/vlc_strings.h \
96 ../include/vlc_subpicture.h \
97 ../include/vlc_threads.h \
98 ../include/vlc_url.h \
99 ../include/vlc_variables.h \
100 ../include/vlc_vlm.h \
101 ../include/vlc_video_splitter.h \
102 ../include/vlc_vout.h \
103 ../include/vlc_vout_display.h \
104 ../include/vlc_vout_opengl.h \
105 ../include/vlc_vout_window.h \
106 ../include/vlc_xml.h \
110 ../include/vlc_codec_synchro.h \
111 ../include/vlc_codecs.h \
112 ../include/vlc_extensions.h \
113 ../include/vlc_fixups.h \
114 ../include/vlc_interface.h \
115 ../include/vlc_intf_strings.h \
116 ../include/vlc_iso_lang.h \
117 ../include/vlc_keys.h \
118 ../include/vlc_memory.h \
119 ../include/vlc_network.h \
120 ../include/vlc_osd.h \
121 ../include/vlc_pgpkey.h \
122 ../include/vlc_tls.h \
123 ../include/vlc_update.h \
124 ../include/vlc_vod.h \
125 ../include/vlc_vout_wrapper.h \
128 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
129 $(AM_V_at)rm -f -- "$@.tmp"
130 $(AM_V_at)mkdir -p -- ../include
131 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
132 echo "static const char psz_license[] =" && \
133 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
135 echo "static const char psz_thanks[] =" && \
136 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
137 "$(top_srcdir)/THANKS" && \
139 echo "static const char psz_authors[] =" && \
140 sed -n '/^N: /{;s///;s/"/\\"/g;s/^.*$$/\"&\\n\"/;p;}' \
141 "$(top_srcdir)/AUTHORS" && \
142 echo ";") >> "$@.tmp"
143 $(AM_V_at)mv -f -- "$@.tmp" "$@"
145 ###############################################################################
146 # pkg-config integration
147 ###############################################################################
149 pkgconfigdir = $(libdir)/pkgconfig
150 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
151 CLEANFILES += $(pkgconfig_DATA)
153 .pc.in.pc: $(top_builddir)/config.status
154 $(AM_V_GEN)cd "$(top_builddir)" && \
155 $(SHELL) ./config.status --file="src/$@"
157 ##############################################################################
158 # Windows resource files
159 ##############################################################################
162 noinst_DATA = libvlc_win32_rc.rc
164 EXTRA_DIST += libvlc_win32_rc.rc.in
166 .rc.in.rc: $(top_builddir)/config.status
167 cd "$(top_builddir)" && \
168 $(SHELL) ./config.status --file="src/$@"
170 ###############################################################################
172 ###############################################################################
174 lib_LTLIBRARIES = libvlccore.la libvlc.la
176 AM_LDFLAGS = -no-undefined
178 AM_LDFLAGS += -avoid-version
181 AM_LDFLAGS += -avoid-version
184 libvlccore_la_SOURCES = $(SOURCES_libvlc)
185 nodist_libvlccore_la_SOURCES = revision.c
186 libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
187 -DMODULE_STRING=\"main\" \
188 -DLOCALEDIR=\"$(localedir)\" \
189 -DSYSCONFDIR=\"$(sysconfdir)\" \
190 -DDATA_PATH=\"$(vlcdatadir)\" \
191 -DPKGLIBDIR=\"$(vlclibdir)\"
192 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
194 -export-symbols $(srcdir)/libvlccore.sym \
196 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
197 $(LTLIBINTL) ../compat/libcompat.la
198 libvlccore_la_DEPENDENCIES = libvlccore.sym
200 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
201 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
204 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
205 $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
207 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
208 nodist_libvlc_la_SOURCES = revision.c
209 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
210 libvlccore.la ../compat/libcompat.la
211 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
212 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
213 -version-info 5:0:0 \
214 -export-symbols $(srcdir)/libvlc.sym
215 libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
217 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
218 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
222 EXTRA_libvlccore_la_SOURCES = \
223 $(SOURCES_libvlc_beos) \
224 $(SOURCES_libvlc_darwin) \
225 $(SOURCES_libvlc_linux) \
226 $(SOURCES_libvlc_win32) \
227 $(SOURCES_libvlc_other) \
228 $(SOURCES_libvlc_dirent) \
229 $(SOURCES_libvlc_httpd) \
230 $(SOURCES_libvlc_sout) \
231 $(SOURCES_libvlc_vlm) \
234 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
240 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
243 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
246 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
248 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
255 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
258 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
261 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
263 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
267 SOURCES_libvlc_beos = \
271 SOURCES_libvlc_darwin = \
272 config/dirs_macos.c \
274 misc/darwin_specific.c \
277 SOURCES_libvlc_linux = \
280 misc/linux_specific.c \
283 SOURCES_libvlc_win32 = \
290 SOURCES_libvlc_other = \
295 SOURCES_libvlc_dirent = \
299 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/display.c \
359 video_output/display.h \
360 video_output/event.h \
361 video_output/inhibit.c \
362 video_output/inhibit.h \
363 video_output/snapshot.c \
364 video_output/snapshot.h \
365 video_output/statistic.h \
366 video_output/video_output.c \
367 video_output/vout_pictures.c \
368 video_output/vout_pictures.h \
369 video_output/video_text.c \
370 video_output/video_epg.c \
371 video_output/video_widgets.c \
372 video_output/vout_subpictures.c \
373 video_output/window.c \
374 video_output/vout_intf.c \
375 video_output/vout_internal.h \
376 video_output/vout_control.h \
377 audio_output/aout_internal.h \
378 audio_output/common.c \
380 audio_output/filters.c \
381 audio_output/input.c \
382 audio_output/mixer.c \
383 audio_output/output.c \
384 audio_output/intf.c \
389 network/getaddrinfo.c \
409 misc/picture_fifo.c \
410 misc/picture_pool.c \
416 modules/textdomain.c \
422 config/configuration.h \
431 config/vlc_getopt.h \
441 misc/update_crypto.c \
446 misc/filter_chain.c \
451 SOURCES_libvlc_httpd = \
455 SOURCES_libvlc_sout = \
456 stream_output/stream_output.c \
457 stream_output/stream_output.h \
458 stream_output/announce.c \
459 stream_output/sap.c \
460 stream_output/sdp.c \
463 SOURCES_libvlc_vlm = \
470 $(SOURCES_libvlc_common) \
471 $(OPT_SOURCES_libvlc_beos) \
472 $(OPT_SOURCES_libvlc_darwin) \
473 $(OPT_SOURCES_libvlc_win32) \
474 $(OPT_SOURCES_libvlc_dirent) \
477 SOURCES_libvlc_control = \
478 control/libvlc_internal.h \
479 control/event_internal.h \
480 control/media_internal.h \
481 control/media_list_internal.h \
482 control/media_player_internal.h \
491 control/event_async.c \
493 control/media_player.c \
494 control/media_list.c \
495 control/media_list_path.h \
496 control/media_list_player.c \
497 control/media_library.c \
498 control/media_discoverer.c
500 ###############################################################################
502 ###############################################################################
504 BUILT_SOURCES += stamp-revision
505 CLEANFILES += revision.txt revision.c
507 revision.c: revision.txt
508 $(AM_V_at)rm -f -- revision.c
509 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
512 revision.txt: Makefile.am
513 $(AM_V_at)$(MAKE) stamp-revision
514 $(AM_V_GEN)touch revision.txt
517 $(AM_V_at)rm -f -- revision.tmp
518 $(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
519 --match '?.*.*' --always || echo exported) > revision.tmp
520 $(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
521 rm -f -- revision.tmp; \
523 mv -f -- revision.tmp revision.txt; \
526 ###############################################################################
527 # Unit/regression test
528 ###############################################################################
530 dist_check_SCRIPTS = check_symbols check_headers
531 TESTS = check_symbols
533 check_DATA = libvlc-headers.sym libvlc-sorted.sym
534 CLEANFILES += $(check_DATA)
536 libvlc-sorted.sym: libvlccore.sym
537 rm -f libvlc-sorted.sym
538 sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
541 rm -f libvlc-headers.sym
542 cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
543 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
544 sed -e 's/[^a-zA-Z0-9_]*//' | \
545 sort -fdu > libvlc-headers.sym
547 .PHONY: libvlc-headers.sym
550 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
552 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
553 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
555 echo "Header $$h not included in test/headers.c!"; \
559 $(srcdir)/check_headers $(pkginclude_HEADERS)
560 $(srcdir)/check_headers $(pluginsinclude_HEADERS)
563 @echo "Generated source cannot be phony. Go away." >&2