i18n: missing . at the end of a sentence
[vlc.git] / src / Makefile.am
blob7a4fe5dafd81373f84d8be93def0c01f0553d126
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
7 NULL =
8 EXTRA_DIST = \
9         vlc-plugin.pc.in \
10         libvlccore.sym \
11         revision.txt
13 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
14 CLEANFILES = $(BUILT_SOURCES)
16 SUFFIXES = .pc.in .pc .rc.in .rc
18 ###############################################################################
19 # Headers
20 ###############################################################################
22 pluginsincludedir = $(pkgincludedir)/plugins
24 pluginsinclude_HEADERS = \
25         ../include/vlc_access.h \
26         ../include/vlc_actions.h \
27         ../include/vlc_addons.h \
28         ../include/vlc_aout.h \
29         ../include/vlc_aout_volume.h \
30         ../include/vlc_arrays.h \
31         ../include/vlc_atomic.h \
32         ../include/vlc_avcodec.h \
33         ../include/vlc_bits.h \
34         ../include/vlc_block.h \
35         ../include/vlc_block_helper.h \
36         ../include/vlc_boxes.h \
37         ../include/vlc_charset.h \
38         ../include/vlc_codec.h \
39         ../include/vlc_common.h \
40         ../include/vlc_config.h \
41         ../include/vlc_config_cat.h \
42         ../include/vlc_configuration.h \
43         ../include/vlc_cpu.h \
44         ../include/vlc_dialog.h \
45         ../include/vlc_demux.h \
46         ../include/vlc_epg.h \
47         ../include/vlc_es.h \
48         ../include/vlc_es_out.h \
49         ../include/vlc_events.h \
50         ../include/vlc_filter.h \
51         ../include/vlc_fourcc.h \
52         ../include/vlc_fs.h \
53         ../include/vlc_gcrypt.h \
54         ../include/vlc_opengl.h \
55         ../include/vlc_http.h \
56         ../include/vlc_httpd.h \
57         ../include/vlc_image.h \
58         ../include/vlc_inhibit.h \
59         ../include/vlc_input.h \
60         ../include/vlc_input_item.h \
61         ../include/vlc_interface.h \
62         ../include/vlc_keystore.h \
63         ../include/vlc_main.h \
64         ../include/vlc_md5.h \
65         ../include/vlc_messages.h \
66         ../include/vlc_meta.h \
67         ../include/vlc_meta_fetcher.h \
68         ../include/vlc_media_library.h \
69         ../include/vlc_memstream.h \
70         ../include/vlc_mime.h \
71         ../include/vlc_modules.h \
72         ../include/vlc_mouse.h \
73         ../include/vlc_mtime.h \
74         ../include/vlc_network.h \
75         ../include/vlc_objects.h \
76         ../include/vlc_picture.h \
77         ../include/vlc_picture_fifo.h \
78         ../include/vlc_picture_pool.h \
79         ../include/vlc_playlist.h \
80         ../include/vlc_plugin.h \
81         ../include/vlc_probe.h \
82         ../include/vlc_rand.h \
83         ../include/vlc_services_discovery.h \
84         ../include/vlc_fingerprinter.h \
85         ../include/vlc_interrupt.h \
86         ../include/vlc_renderer_discovery.h \
87         ../include/vlc_sout.h \
88         ../include/vlc_spu.h \
89         ../include/vlc_stream.h \
90         ../include/vlc_stream_extractor.h \
91         ../include/vlc_strings.h \
92         ../include/vlc_subpicture.h \
93         ../include/vlc_text_style.h \
94         ../include/vlc_threads.h \
95         ../include/vlc_timestamp_helper.h \
96         ../include/vlc_tls.h \
97         ../include/vlc_url.h \
98         ../include/vlc_variables.h \
99         ../include/vlc_viewpoint.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_osd.h \
105         ../include/vlc_vout_window.h \
106         ../include/vlc_xml.h \
107         ../include/vlc_xlib.h \
108         $(NULL)
109 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
111 noinst_HEADERS = \
112         ../include/vlc_codecs.h \
113         ../include/vlc_extensions.h \
114         ../include/vlc_fixups.h \
115         ../include/vlc_intf_strings.h \
116         ../include/vlc_iso_lang.h \
117         ../include/vlc_memory.h \
118         ../include/vlc_pgpkey.h \
119         ../include/vlc_update.h \
120         ../include/vlc_vod.h \
121         ../include/vlc_vout_wrapper.h \
122         $(NULL)
124 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
125         $(AM_V_at)rm -f -- "$@.tmp"
126         $(AM_V_at)mkdir -p -- ../include
127         $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
128         echo "static const char psz_license[] =" && \
129         sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
130         echo ";" && \
131         echo "static const char psz_thanks[] =" && \
132         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
133                 "$(top_srcdir)/THANKS" && \
134         echo ";" && \
135         echo "static const char psz_authors[] =" && \
136         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
137                 "$(top_srcdir)/AUTHORS" && \
138         echo ";") >> "$@.tmp"
139         $(AM_V_at)mv -f -- "$@.tmp" "$@"
141 ###############################################################################
142 # pkg-config integration
143 ###############################################################################
145 pkgconfigdir = $(libdir)/pkgconfig
146 pkgconfig_DATA = vlc-plugin.pc
147 CLEANFILES += $(pkgconfig_DATA)
149 .pc.in.pc: $(top_builddir)/config.status
150         $(AM_V_GEN)cd "$(top_builddir)" && \
151         $(SHELL) ./config.status --file="src/$@"
153 ##############################################################################
154 # Windows resource files
155 ##############################################################################
157 if HAVE_WIN32
158 noinst_DATA = libvlc_win32_rc.rc
159 endif
160 EXTRA_DIST += libvlc_win32_rc.rc.in
162 .rc.in.rc: $(top_builddir)/config.status
163         cd "$(top_builddir)" && \
164         $(SHELL) ./config.status --file="src/$@"
166 ###############################################################################
167 # Building libvlc
168 ###############################################################################
170 lib_LTLIBRARIES = libvlccore.la
172 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
173         -DMODULE_STRING=\"core\" \
174         -DLOCALEDIR=\"$(localedir)\" \
175         -DPKGDATADIR=\"$(vlcdatadir)\" \
176         -DPKGLIBDIR=\"$(vlclibdir)\"
177 AM_CFLAGS = $(CFLAGS_libvlccore)
178 if HAVE_DYNAMIC_PLUGINS
179 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
180 endif
181 if HAVE_DBUS
182 AM_CPPFLAGS += -DHAVE_DBUS
183 AM_CFLAGS += $(DBUS_CFLAGS)
184 endif
186 libvlccore_la_SOURCES = \
187         libvlc.c \
188         libvlc.h \
189         libvlc-module.c \
190         missing.c \
191         revision.c \
192         version.c \
193         config/configuration.h \
194         config/core.c \
195         config/chain.c \
196         config/file.c \
197         config/help.c \
198         config/intf.c \
199         config/cmdline.c \
200         config/getopt.c \
201         config/vlc_getopt.h \
202         extras/libc.c \
203         extras/tdestroy.c \
204         modules/modules.h \
205         modules/modules.c \
206         modules/bank.c \
207         modules/cache.c \
208         modules/entry.c \
209         modules/textdomain.c \
210         interface/dialog.c \
211         interface/interface.c \
212         playlist/playlist_internal.h \
213         playlist/art.c \
214         playlist/art.h \
215         playlist/aout.c \
216         playlist/thread.c \
217         playlist/control.c \
218         playlist/engine.c \
219         playlist/fetcher.c \
220         playlist/fetcher.h \
221         playlist/sort.c \
222         playlist/loadsave.c \
223         playlist/preparser.c \
224         playlist/preparser.h \
225         playlist/tree.c \
226         playlist/item.c \
227         playlist/search.c \
228         playlist/services_discovery.c \
229         playlist/renderer.c \
230         input/item.c \
231         input/access.c \
232         input/clock.c \
233         input/control.c \
234         input/decoder.c \
235         input/demux.c \
236         input/demux_chained.c \
237         input/es_out.c \
238         input/es_out_timeshift.c \
239         input/event.c \
240         input/input.c \
241         input/info.h \
242         input/meta.c \
243         input/clock.h \
244         input/decoder.h \
245         input/demux.h \
246         input/es_out.h \
247         input/es_out_timeshift.h \
248         input/event.h \
249         input/item.h \
250         input/mrl_helpers.h \
251         input/stream.h \
252         input/input_internal.h \
253         input/input_interface.h \
254         input/vlm_internal.h \
255         input/vlm_event.h \
256         input/resource.h \
257         input/resource.c \
258         input/services_discovery.c \
259         input/stats.c \
260         input/stream.c \
261         input/stream_fifo.c \
262         input/stream_extractor.c \
263         input/stream_filter.c \
264         input/stream_memory.c \
265         input/subtitles.c \
266         input/var.c \
267         audio_output/aout_internal.h \
268         audio_output/common.c \
269         audio_output/dec.c \
270         audio_output/filters.c \
271         audio_output/output.c \
272         audio_output/volume.c \
273         video_output/chrono.h \
274         video_output/control.c \
275         video_output/control.h \
276         video_output/display.c \
277         video_output/display.h \
278         video_output/event.h \
279         video_output/inhibit.c \
280         video_output/inhibit.h \
281         video_output/interlacing.c \
282         video_output/interlacing.h \
283         video_output/snapshot.c \
284         video_output/snapshot.h \
285         video_output/statistic.h \
286         video_output/video_output.c \
287         video_output/video_text.c \
288         video_output/video_epg.c \
289         video_output/video_widgets.c \
290         video_output/vout_subpictures.c \
291         video_output/vout_spuregion_helper.h \
292         video_output/window.c \
293         video_output/window.h \
294         video_output/opengl.c \
295         video_output/vout_intf.c \
296         video_output/vout_internal.h \
297         video_output/vout_control.h \
298         video_output/vout_wrapper.c \
299         network/getaddrinfo.c \
300         network/http_auth.c \
301         network/httpd.c \
302         network/io.c \
303         network/tcp.c \
304         network/udp.c \
305         network/rootbind.c \
306         network/tls.c \
307         text/charset.c \
308         text/memstream.c \
309         text/strings.c \
310         text/unicode.c \
311         text/url.c \
312         text/filesystem.c \
313         text/iso_lang.c \
314         text/iso-639_def.h \
315         misc/actions.c \
316         misc/background_worker.c \
317         misc/background_worker.h \
318         misc/md5.c \
319         misc/probe.c \
320         misc/rand.c \
321         misc/mtime.c \
322         misc/block.c \
323         misc/fifo.c \
324         misc/fourcc.c \
325         misc/fourcc_list.h \
326         misc/es_format.c \
327         misc/picture.c \
328         misc/picture.h \
329         misc/picture_fifo.c \
330         misc/picture_pool.c \
331         misc/interrupt.h \
332         misc/interrupt.c \
333         misc/keystore.c \
334         misc/renderer_discovery.c \
335         misc/threads.c \
336         misc/cpu.c \
337         misc/epg.c \
338         misc/exit.c \
339         misc/events.c \
340         misc/image.c \
341         misc/messages.c \
342         misc/mime.c \
343         misc/objects.c \
344         misc/objres.c \
345         misc/variables.h \
346         misc/variables.c \
347         misc/error.c \
348         misc/xml.c \
349         misc/addons.c \
350         misc/filter.c \
351         misc/filter_chain.c \
352         misc/httpcookies.c \
353         misc/fingerprinter.c \
354         misc/text_style.c \
355         misc/subpicture.c \
356         misc/subpicture.h
357 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
358         ../compat/libcompat.la \
359         $(LTLIBINTL) $(LTLIBICONV) \
360         $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
362 if HAVE_WIN32
363 libvlccore_la_SOURCES += \
364         win32/dirs.c \
365         win32/error.c \
366         win32/filesystem.c \
367         win32/netconf.c \
368         win32/plugin.c \
369         win32/rand.c \
370         win32/specific.c \
371         win32/thread.c \
372         win32/winsock.c
373 if HAVE_WINSTORE
374 libvlccore_la_SOURCES += posix/timer.c
375 else
376 libvlccore_la_SOURCES += win32/timer.c
377 endif
378 else
379 if HAVE_OS2
380 libvlccore_la_SOURCES += \
381         os2/dirs.c \
382         darwin/error.c \
383         os2/filesystem.c \
384         os2/getaddrinfo.c \
385         os2/netconf.c \
386         os2/plugin.c \
387         os2/specific.c \
388         os2/rand.c \
389         os2/thread.c
390 else
391 if HAVE_NACL
392 libvlccore_la_SOURCES += \
393         android/error.c \
394         posix/dirs.c \
395         posix/filesystem.c \
396         posix/netconf.c \
397         posix/rand.c \
398         posix/specific.c \
399         posix/timer.c
400 else
401 libvlccore_la_SOURCES += \
402         posix/filesystem.c \
403         posix/plugin.c \
404         posix/rand.c \
405         posix/timer.c
406 if HAVE_ANDROID
407 libvlccore_la_SOURCES += \
408         android/error.c \
409         android/specific.c \
410         android/thread.c \
411         linux/cpu.c \
412         linux/dirs.c \
413         linux/thread.c
414 else
415 if HAVE_DARWIN
416 libvlccore_la_SOURCES += \
417         darwin/dirs.c \
418         darwin/error.c \
419         darwin/netconf.c \
420         darwin/specific.c \
421         darwin/thread.c
422 else
423 libvlccore_la_SOURCES += \
424         posix/dirs.c \
425         posix/error.c \
426         posix/netconf.c \
427         posix/specific.c \
428         posix/thread.c
429 if HAVE_LINUX
430 libvlccore_la_SOURCES += \
431         linux/cpu.c \
432         linux/dirs.c \
433         linux/getaddrinfo.c \
434         linux/thread.c
435 libvlccore_la_LIBADD += -lanl
436 else
437 libvlccore_la_SOURCES += \
438         posix/getaddrinfo.c
439 endif
440 endif
441 endif
442 endif
443 endif
444 endif
446 if ENABLE_SOUT
447 libvlccore_la_SOURCES += \
448         stream_output/sap.c stream_output/sdp.c \
449         stream_output/stream_output.c stream_output/stream_output.h
450 if ENABLE_VLM
451 libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
452 endif
453 endif
455 if UPDATE_CHECK
456 libvlccore_la_SOURCES += \
457         misc/update.h misc/update.c \
458         misc/update_crypto.c
459 AM_CPPFLAGS += -DUPDATE_CHECK
460 AM_CFLAGS += $(GCRYPT_CFLAGS)
461 libvlccore_la_LIBADD += $(GCRYPT_LIBS)
462 endif
464 libvlccore_la_LDFLAGS = \
465         $(LDFLAGS_libvlccore) \
466         -no-undefined \
467         -export-symbols $(srcdir)/libvlccore.sym \
468         -version-info 9:0:0
469 libvlccore_la_DEPENDENCIES = libvlccore.sym
470 if HAVE_WIN32
471 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
472 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
473 endif
474 if HAVE_OS2
475 libvlccore_la_LDFLAGS += -avoid-version
476 endif
477 if HAVE_DBUS
478 libvlccore_la_LIBADD += $(DBUS_LIBS)
479 endif
480 if HAVE_DARWIN
481 libvlccore_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib
482 endif
484 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
485         $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
487 # FourCC tables
488 BUILT_SOURCES += fourcc_tables.h
489 EXTRA_DIST += misc/fourcc_gen.c
490 MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
492 fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
493         $(AM_V_at)rm -f -- $@
494         $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
496 fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
497         $(AM_V_at)rm -f -- $@.tmp
498         $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
499         $(AM_V_at)mv -f -- $@.tmp $@
501 # Unit/regression tests
503 check_PROGRAMS = \
504         test_block \
505         test_dictionary \
506         test_i18n_atof \
507         test_interrupt \
508         test_md5 \
509         test_picture_pool \
510         test_sort \
511         test_timer \
512         test_url \
513         test_utf8 \
514         test_xmlent \
515         test_headers \
516         test_mrl_helpers
518 TESTS = $(check_PROGRAMS) check_symbols
520 test_block_SOURCES = test/block_test.c
521 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
522 test_block_DEPENDENCIES =
524 test_dictionary_SOURCES = test/dictionary.c
525 test_i18n_atof_SOURCES = test/i18n_atof.c
526 test_interrupt_SOURCES = test/interrupt.c
527 test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore) $(LIBPTHREAD)
528 test_md5_SOURCES = test/md5.c
529 test_picture_pool_SOURCES = test/picture_pool.c
530 test_sort_SOURCES = test/sort.c
531 test_timer_SOURCES = test/timer.c
532 test_url_SOURCES = test/url.c
533 test_utf8_SOURCES = test/utf8.c
534 test_xmlent_SOURCES = test/xmlent.c
535 test_headers_SOURCES = test/headers.c
536 test_mrl_helpers_SOURCES = test/mrl_helpers.c
538 AM_LDFLAGS = -no-install
539 LDADD = libvlccore.la \
540         ../compat/libcompat.la
542 ###############################################################################
543 # GIT revision
544 ###############################################################################
546 BUILT_SOURCES += stamp-revision
547 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
549 $(srcdir)/revision.c: $(srcdir)/revision.txt
550         $(AM_V_at)rm -f -- $@
551         $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
552                 > $@
554 $(srcdir)/revision.txt:
555         $(AM_V_at)$(MAKE) stamp-revision
556         $(AM_V_GEN)touch $@
558 stamp-revision:
559         $(AM_V_at)rm -f -- revision.tmp
560         $(AM_V_GEN)if ! git \
561                         --git-dir="$(top_srcdir)/.git/" describe \
562                         --tags --long --match '?.*.*' --always; then \
563                 cat $(srcdir)/revision.txt ; \
564         fi > revision.tmp
565         $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
566                 rm -f -- revision.tmp; \
567         else \
568                 mv -f -- revision.tmp $(srcdir)/revision.txt; \
569         fi
570 #2>&1
572 ###############################################################################
573 # Unit/regression test
574 ###############################################################################
576 dist_check_SCRIPTS = check_headers check_symbols
578 check-local:
579         for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
580         do \
581                 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
582                 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
583                 then \
584                         echo "Header $$h not included in test/headers.c!"; \
585                         exit 1; \
586                 fi ; \
587         done
588         $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
590 FORCE:
591         @echo "Generated source cannot be phony. Go away." >&2
592         @exit 1
594 .PHONY: FORCE