]> git.sesse.net Git - vlc/blob - src/Makefile.am
Added basic VLM events.
[vlc] / src / Makefile.am
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
4
5 AUTOMAKE_OPTIONS = subdir-objects
6 SUBDIRS = . test
7
8 NULL =
9 EXTRA_DIST = extras/COPYING \
10         misc/beos_specific.cpp \
11         libvlc.pc.in \
12         vlc-plugin.pc.in \
13         libvlc.sym \
14         libvlccore.sym
15
16 BUILT_SOURCES = ../include/vlc_about.h
17 CLEANFILES = $(BUILT_SOURCES)
18
19 SUFFIXES = .pc.in .pc
20
21 ###############################################################################
22 # Headers
23 ###############################################################################
24
25 pluginsincludedir = $(pkgincludedir)/plugins
26
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 \
37         $(NULL)
38
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 \
56         ../include/vlc_es.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 \
86         $(NULL)
87
88 noinst_HEADERS = \
89         ../include/mmx.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 \
104         $(NULL)
105
106 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
107         rm -f -- "$@.tmp"
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"
112         echo ";" >> "$@.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"
115         echo ";" >> "$@.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"
118         echo ";" >> "$@.tmp"
119         mv -f -- "$@.tmp" "$@"
120
121 ###############################################################################
122 # pkg-config integration
123 ###############################################################################
124
125 pkgconfigdir = $(libdir)/pkgconfig
126 pkgconfig_DATA = libvlc.pc vlc-plugin.pc
127 CLEANFILES += $(pkgconfig_DATA)
128
129 .pc.in.pc: $(top_builddir)/config.status
130         cd "$(top_builddir)" && \
131         $(SHELL) ./config.status --file="src/$@"
132
133 ###############################################################################
134 # Building libvlc
135 ###############################################################################
136
137 nice:
138         $(top_builddir)/compile
139
140 lib_LTLIBRARIES = libvlccore.la libvlc.la
141
142 AM_LDFLAGS = -no-undefined
143 if HAVE_WIN32
144 AM_LDFLAGS += -avoid-version
145 endif
146 if HAVE_WINCE
147 AM_LDFLAGS += -avoid-version
148 endif
149
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 \
160         -version-info 2:0:0
161 libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
162 libvlccore_la_DEPENDENCIES = libvlccore.sym
163 if HAVE_WIN32
164 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
165 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
166 endif
167
168 libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
169         $(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@
170
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
179 if HAVE_WIN32
180 libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
181 libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
182 endif
183
184
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) \
196         $(NULL)
197 if HAVE_BEOS
198 libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
199 else
200 if HAVE_DARWIN
201 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
202 else
203 if HAVE_LINUX
204 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
205 else
206 if HAVE_WIN32
207 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
208 else
209 if HAVE_WINCE
210 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
211 else
212 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
213 endif
214 endif
215 endif
216 endif
217 endif
218 if BUILD_DIRENT
219 libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
220 endif
221 if BUILD_GETOPT
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
223 endif
224 if BUILD_HTTPD
225 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
226 endif
227 if ENABLE_SOUT
228 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
229 if ENABLE_VLM
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
231 endif
232 endif
233
234 SOURCES_libvlc_beos = \
235         $(NULL)
236
237 SOURCES_libvlc_darwin = \
238         misc/darwin_specific.c \
239         $(NULL)
240
241 SOURCES_libvlc_linux = \
242         misc/linux_specific.c \
243         $(NULL)
244
245 SOURCES_libvlc_win32 = \
246         misc/win32_specific.c \
247         network/winsock.c \
248         $(NULL)
249
250 SOURCES_libvlc_other = misc/not_specific.c
251
252 SOURCES_libvlc_dirent = \
253         extras/dirent.c \
254         $(NULL)
255
256 SOURCES_libvlc_getopt = \
257         extras/getopt.c \
258         extras/getopt.h \
259         extras/getopt1.c \
260         $(NULL)
261
262 SOURCES_libvlc_common = \
263         libvlc.c \
264         libvlc.h \
265         libvlc-module.c \
266         missing.c \
267         version.c \
268         interface/dialog.c \
269         interface/interface.h \
270         interface/interface.c \
271         interface/intf_eject.c \
272         interface/interaction.c \
273         playlist/playlist_internal.h \
274         playlist/art.c \
275         playlist/art.h \
276         playlist/thread.c \
277         playlist/control.c \
278         playlist/engine.c \
279         playlist/fetcher.c \
280         playlist/fetcher.h \
281         playlist/sort.c \
282         playlist/loadsave.c \
283         playlist/preparser.c \
284         playlist/preparser.h \
285         playlist/tree.c \
286         playlist/item.c \
287         playlist/search.c \
288         playlist/services_discovery.c \
289         input/item.c \
290         input/access.c \
291         input/clock.c \
292         input/control.c \
293         input/decoder.c \
294         input/decoder_synchro.c \
295         input/demux.c \
296         input/es_out.c \
297         input/es_out_timeshift.c \
298         input/event.c \
299         input/input.c \
300         input/meta.c \
301         input/access.h \
302         input/clock.h \
303         input/decoder.h \
304         input/demux.h \
305         input/es_out.h \
306         input/es_out_timeshift.h \
307         input/event.h \
308         input/item.h \
309         input/stream.h \
310         input/input_internal.h \
311         input/input_interface.h \
312         input/vlm_internal.h \
313         input/vlm_event.h \
314         input/resource.h \
315         input/resource.c \
316         input/stream.c \
317         input/stream_demux.c \
318         input/stream_filter.c \
319         input/stream_memory.c \
320         input/subtitles.c \
321         input/var.c \
322         video_output/video_output.c \
323         video_output/vout_pictures.c \
324         video_output/vout_pictures.h \
325         video_output/video_text.c \
326         video_output/video_widgets.c \
327         video_output/vout_subpictures.c \
328         video_output/vout_intf.c \
329         video_output/vout_internal.h \
330         video_output/vout_control.h \
331         audio_output/aout_internal.h \
332         audio_output/common.c \
333         audio_output/dec.c \
334         audio_output/filters.c \
335         audio_output/input.c \
336         audio_output/mixer.c \
337         audio_output/output.c \
338         audio_output/intf.c \
339         osd/osd.c \
340         osd/osd_text.c \
341         osd/osd_widgets.c \
342         network/acl.c \
343         network/getaddrinfo.c \
344         network/io.c \
345         network/tcp.c \
346         network/udp.c \
347         network/rootbind.c \
348         network/tls.c \
349         network/poll.c \
350         text/charset.c \
351         text/strings.c \
352         text/unicode.c \
353         text/filesystem.c \
354         text/wincp.c \
355         text/iso_lang.c \
356         text/iso-639_def.h \
357         misc/md5.c \
358         misc/rand.c \
359         misc/mtime.c \
360         misc/block.c \
361         misc/es_format.c \
362         modules/modules.h \
363         modules/modules.c \
364         modules/cache.c \
365         modules/entry.c \
366         modules/os.c \
367         misc/threads.c \
368         misc/stats.c \
369         misc/cpu.c \
370         misc/action.c \
371         config/configuration.h \
372         config/core.c \
373         config/dirs.c \
374         config/chain.c \
375         config/file.c \
376         config/intf.c \
377         config/cmdline.c \
378         misc/events.c \
379         misc/image.c \
380         misc/messages.c \
381         misc/objects.c \
382         misc/variables.h \
383         misc/variables.c \
384         misc/error.c \
385         misc/update.h \
386         misc/update.c \
387         misc/xml.c \
388         misc/devices.c \
389         extras/libc.c \
390         misc/filter_chain.c \
391         $(NULL)
392
393 SOURCES_libvlc_httpd = \
394         network/httpd.c \
395         $(NULL)
396
397 SOURCES_libvlc_sout = \
398         stream_output/stream_output.c \
399         stream_output/stream_output.h \
400         stream_output/announce.c \
401         stream_output/sap.c \
402         stream_output/sdp.c \
403         $(NULL)
404
405 SOURCES_libvlc_vlm = \
406         input/vlm.c \
407         input/vlm_event.c \
408         input/vlmshell.c \
409         $(NULL)
410
411 SOURCES_libvlc = \
412         $(SOURCES_libvlc_common) \
413         $(OPT_SOURCES_libvlc_beos) \
414         $(OPT_SOURCES_libvlc_darwin) \
415         $(OPT_SOURCES_libvlc_win32) \
416         $(OPT_SOURCES_libvlc_dirent) \
417         $(OPT_SOURCES_libvlc_getopt) \
418         $(NULL)
419
420 SOURCES_libvlc_control = \
421         control/libvlc_internal.h \
422         control/core.c \
423         control/log.c \
424         control/playlist.c \
425         control/vlm.c \
426         control/video.c \
427         control/audio.c \
428         control/event.c \
429         control/flat_media_list_view.c \
430         control/hierarchical_media_list_view.c \
431         control/hierarchical_node_media_list_view.c \
432         control/media.c \
433         control/media_player.c \
434         control/media_list.c \
435         control/media_list_path.h \
436         control/media_list_player.c \
437         control/media_list_view.c \
438         control/media_library.c \
439         control/mediacontrol_internal.h \
440         control/mediacontrol_core.c \
441         control/mediacontrol_util.c \
442         control/mediacontrol_audio_video.c \
443         control/media_discoverer.c
444
445 ###############################################################################
446 # Unit/regression test
447 ###############################################################################
448
449 dist_check_SCRIPTS = check_symbols check_headers
450 TESTS = check_symbols
451
452 check-local:
453         for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
454         do \
455                 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
456                 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
457                 then \
458                         echo "Header $$h not included in test/headers.c!"; \
459                         exit 1; \
460                 fi ; \
461         done
462         $(srcdir)/check_headers $(pkginclude_HEADERS)
463         $(srcdir)/check_headers $(pluginsinclude_HEADERS)
464
465 FORCE:
466         @echo "Generated source cannot be phony. Go away." >&2
467         @exit 1
468
469 .PHONY: FORCE