Makefile.am 14.8 KB
Newer Older
1
###############################################################################
2 3 4
# Automake targets and declarations
###############################################################################

5
AUTOMAKE_OPTIONS = subdir-objects
6
SUBDIRS = . test
7

8
NULL =
9
EXTRA_DIST = extras/COPYING \
10
	libvlc.pc.in \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
11
	vlc-plugin.pc.in \
12
	libvlc.sym \
13 14
	libvlccore.sym \
	../include/vlc/libvlc_version.h.in
15

16 17
BUILT_SOURCES = \
	$(nodist_pkginclude_HEADERS) \
18
	$(nodist_pluginsinclude_HEADERS)
Christophe Mutricy's avatar
Christophe Mutricy committed
19
CLEANFILES = $(BUILT_SOURCES)
20

21
SUFFIXES = .pc.in .pc .rc.in .rc
22

23 24 25 26
###############################################################################
# Headers
###############################################################################

27
pluginsincludedir = $(pkgincludedir)/plugins
28

29
pkginclude_HEADERS = \
30
	../include/vlc/vlc.h \
31
	../include/vlc/deprecated.h \
32
	../include/vlc/libvlc.h \
33
	../include/vlc/libvlc_events.h \
34 35 36 37 38 39 40
	../include/vlc/libvlc_media.h \
	../include/vlc/libvlc_media_discoverer.h \
	../include/vlc/libvlc_media_library.h \
	../include/vlc/libvlc_media_list.h \
	../include/vlc/libvlc_media_list_player.h \
	../include/vlc/libvlc_media_player.h \
	../include/vlc/libvlc_structures.h \
41
	../include/vlc/libvlc_vlm.h \
42
	$(NULL)
43
nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
44

45
pluginsinclude_HEADERS = \
46 47
	../include/vlc_access.h \
	../include/vlc_acl.h \
48
	../include/vlc_aout.h \
49
	../include/vlc_aout_mixer.h \
50
	../include/vlc_arrays.h \
Pierre Ynard's avatar
Pierre Ynard committed
51
	../include/vlc_art_finder.h \
52
	../include/vlc_atomic.h \
53
	../include/vlc_avcodec.h \
54 55 56 57 58
	../include/vlc_bits.h \
	../include/vlc_block.h \
	../include/vlc_block_helper.h \
	../include/vlc_charset.h \
	../include/vlc_codec.h \
59 60
	../include/vlc_common.h \
	../include/vlc_config.h \
61
	../include/vlc_config_cat.h \
62
	../include/vlc_configuration.h \
63
	../include/vlc_cpu.h \
64
	../include/vlc_dialog.h \
65
	../include/vlc_demux.h \
66
	../include/vlc_epg.h \
67
	../include/vlc_es.h \
68 69
	../include/vlc_es_out.h \
	../include/vlc_events.h \
70
	../include/vlc_filter.h \
71
	../include/vlc_fourcc.h \
72
	../include/vlc_fs.h \
73
	../include/vlc_gcrypt.h \
74
	../include/vlc_http.h \
75
	../include/vlc_httpd.h \
76
	../include/vlc_image.h \
77
	../include/vlc_inhibit.h \
78
	../include/vlc_input.h \
79
	../include/vlc_input_item.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
80
	../include/vlc_main.h \
81
	../include/vlc_md5.h \
82
	../include/vlc_messages.h \
83
	../include/vlc_meta.h \
jetru's avatar
jetru committed
84
	../include/vlc_media_library.h \
85
	../include/vlc_modules.h \
Pierre Ynard's avatar
Pierre Ynard committed
86
	../include/vlc_mouse.h \
87 88
	../include/vlc_mtime.h \
	../include/vlc_objects.h \
89
	../include/vlc_picture.h \
90 91
	../include/vlc_picture_fifo.h \
	../include/vlc_picture_pool.h \
92
	../include/vlc_playlist.h \
93
	../include/vlc_plugin.h \
94
	../include/vlc_probe.h \
95 96
	../include/vlc_rand.h \
	../include/vlc_services_discovery.h \
jetru's avatar
jetru committed
97
	../include/vlc_sql.h \
98
	../include/vlc_sout.h \
99
	../include/vlc_spu.h \
100 101
	../include/vlc_stream.h \
	../include/vlc_strings.h \
102
	../include/vlc_subpicture.h \
103
	../include/vlc_text_style.h \
104
	../include/vlc_threads.h \
105
	../include/vlc_url.h \
106 107
	../include/vlc_variables.h \
	../include/vlc_vlm.h \
108
	../include/vlc_video_splitter.h \
109
	../include/vlc_vout.h \
110
	../include/vlc_vout_display.h \
111
	../include/vlc_vout_opengl.h \
112
	../include/vlc_vout_osd.h \
113
	../include/vlc_vout_window.h \
114
	../include/vlc_xml.h \
115
	../include/vlc_xlib.h \
116
	$(NULL)
117
nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
118

119
noinst_HEADERS = \
120
	../include/vlc_codec_synchro.h \
121
	../include/vlc_codecs.h \
Pierre Ynard's avatar
Pierre Ynard committed
122
	../include/vlc_extensions.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
123
	../include/vlc_fixups.h \
124
	../include/vlc_interface.h \
125
	../include/vlc_intf_strings.h \
126
	../include/vlc_iso_lang.h \
127
	../include/vlc_keys.h \
Pierre Ynard's avatar
Pierre Ynard committed
128
	../include/vlc_memory.h \
129
	../include/vlc_network.h \
130
	../include/vlc_osd.h \
Rémi Denis-Courmont's avatar
Tabs  
Rémi Denis-Courmont committed
131
	../include/vlc_pgpkey.h \
132
	../include/vlc_tls.h \
133 134
	../include/vlc_update.h \
	../include/vlc_vod.h \
Pierre Ynard's avatar
Pierre Ynard committed
135
	../include/vlc_vout_wrapper.h \
Pierre Ynard's avatar
Pierre Ynard committed
136
	../include/vlc_windows_interfaces.h \
137 138
	$(NULL)

139
../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
140 141
	$(AM_V_GEN)cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="src/$@"
142

143
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
144 145 146 147 148 149 150
	$(AM_V_at)rm -f -- "$@.tmp"
	$(AM_V_at)mkdir -p -- ../include
	$(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
	echo "static const char psz_license[] =" && \
	sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
	echo ";" && \
	echo "static const char psz_thanks[] =" && \
JP Dinger's avatar
JP Dinger committed
151
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
152 153 154
		"$(top_srcdir)/THANKS" && \
	echo ";" && \
	echo "static const char psz_authors[] =" && \
155
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
156 157 158
		"$(top_srcdir)/AUTHORS" && \
	echo ";") >> "$@.tmp"
	$(AM_V_at)mv -f -- "$@.tmp" "$@"
159

160 161 162 163 164
###############################################################################
# pkg-config integration
###############################################################################

pkgconfigdir = $(libdir)/pkgconfig
165
pkgconfig_DATA = libvlc.pc vlc-plugin.pc
166 167
CLEANFILES += $(pkgconfig_DATA)

168
.pc.in.pc: $(top_builddir)/config.status
169
	$(AM_V_GEN)cd "$(top_builddir)" && \
170 171
	$(SHELL) ./config.status --file="src/$@"

172 173 174 175 176 177 178 179 180 181 182 183 184
##############################################################################
# Windows resource files
##############################################################################

if HAVE_WIN32
noinst_DATA = libvlc_win32_rc.rc
endif
EXTRA_DIST += libvlc_win32_rc.rc.in

.rc.in.rc: $(top_builddir)/config.status
	cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="src/$@"

185 186 187 188
###############################################################################
# Building libvlc
###############################################################################

189
lib_LTLIBRARIES = libvlccore.la libvlc.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
190

191
AM_LDFLAGS = -no-undefined
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
192
if HAVE_WIN32
193
AM_LDFLAGS += -avoid-version
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
194
endif
195 196 197
if HAVE_WINCE
AM_LDFLAGS += -avoid-version
endif
198

199
libvlccore_la_SOURCES = $(SOURCES_libvlc)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
200
nodist_libvlccore_la_SOURCES = revision.c
201
libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
202
	-DMODULE_STRING=\"main\" \
203
	-DLOCALEDIR=\"$(localedir)\" \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
204
	-DSYSCONFDIR=\"$(sysconfdir)\" \
205
	-DDATA_PATH=\"$(vlcdatadir)\" \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
206
	-DPKGLIBDIR=\"$(vlclibdir)\"
207
libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
208
	-no-undefined \
209
	-export-symbols $(srcdir)/libvlccore.sym \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
210
	-version-info 5:0:0
211
libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
212
	$(LTLIBINTL) ../compat/libcompat.la
213
libvlccore_la_DEPENDENCIES = libvlccore.sym
214
if HAVE_WIN32
215 216
libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
217
endif
218

219
libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
220 221
	$(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@

222
libvlc_la_SOURCES = $(SOURCES_libvlc_control)
223
nodist_libvlc_la_SOURCES = revision.c
224 225
libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
	libvlccore.la ../compat/libcompat.la
226
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
227
libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
228
	-version-info 6:0:1 \
229
	-export-symbols $(srcdir)/libvlc.sym
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
230
libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
231
if HAVE_WIN32
232 233
libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
234 235
endif

236

237
EXTRA_libvlccore_la_SOURCES = \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
238
	$(SOURCES_libvlc_darwin) \
239
	$(SOURCES_libvlc_linux) \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
240
	$(SOURCES_libvlc_win32) \
241
	$(SOURCES_libvlc_other) \
242
	$(SOURCES_libvlc_httpd) \
243
	$(SOURCES_libvlc_sout) \
244
	$(SOURCES_libvlc_vlm) \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
245
	$(NULL)
246
if HAVE_DARWIN
247
libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
248 249
else
if HAVE_LINUX
250
libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
251
else
252
if HAVE_WIN32
253
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
254
else
255
if HAVE_WINCE
256
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
257
else
258
if HAVE_SYMBIAN
259
#libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
260
else
261
libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
262
endif
263 264 265
endif
endif
endif
266
endif
267 268 269
if BUILD_HTTPD
libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
endif
270
if ENABLE_SOUT
271
libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
272 273 274
if ENABLE_VLM
libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
endif
275
endif
276

277
SOURCES_libvlc_darwin = \
278
	config/dirs_macos.c \
279
	misc/atomic.c \
280
	misc/filesystem.c \
281
	misc/pthread.c \
282
	misc/darwin_specific.c \
283 284
	$(NULL)

285
SOURCES_libvlc_linux = \
286
	config/dirs_xdg.c \
287
	misc/atomic.c \
288
	misc/filesystem.c \
289
	misc/pthread.c \
290 291 292
	misc/linux_specific.c \
	$(NULL)

293
SOURCES_libvlc_win32 = \
294 295
	win32/dirs.c \
	win32/specific.c \
296
	win32/atomic.c \
297
	win32/filesystem.c \
298 299
	win32/thread.c \
	win32/winsock.c \
300 301
	$(NULL)

302 303
SOURCES_libvlc_symbian = \
	symbian/path.cpp \
Pankaj Yadav's avatar
Pankaj Yadav committed
304
        symbian/dirs.c \
305 306
	$(NULL)

307
SOURCES_libvlc_other = \
308
	config/dirs_xdg.c \
309
	misc/atomic.c \
310
	misc/filesystem.c \
311 312
	misc/pthread.c \
	misc/not_specific.c
313

314 315 316
SOURCES_libvlc_common = \
	libvlc.c \
	libvlc.h \
317
	libvlc-module.c \
318
	missing.c \
319
	version.c \
320
	interface/dialog.c \
321 322
	interface/interface.c \
	interface/intf_eject.c \
323
	playlist/playlist_internal.h \
324
	playlist/art.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
325
	playlist/art.h \
326 327 328
	playlist/thread.c \
	playlist/control.c \
	playlist/engine.c \
329
	playlist/fetcher.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
330
	playlist/fetcher.h \
331 332
	playlist/sort.c \
	playlist/loadsave.c \
333
	playlist/preparser.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
334
	playlist/preparser.h \
335
	playlist/tree.c \
336
	playlist/item.c \
337
	playlist/search.c \
338
	playlist/services_discovery.c \
339
	input/item.c \
340 341 342 343
	input/access.c \
	input/clock.c \
	input/control.c \
	input/decoder.c \
344
	input/decoder_synchro.c \
345 346
	input/demux.c \
	input/es_out.c \
347
	input/es_out_timeshift.c \
348
	input/event.c \
349
	input/input.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
350
	input/info.h \
351
	input/meta.c \
352
	input/access.h \
353 354
	input/clock.h \
	input/decoder.h \
355
	input/demux.h \
356
	input/es_out.h \
357
	input/es_out_timeshift.h \
358
	input/event.h \
359
	input/item.h \
360
	input/stream.h \
361
	input/input_internal.h \
362
	input/input_interface.h \
363
	input/vlm_internal.h \
Laurent Aimar's avatar
Laurent Aimar committed
364
	input/vlm_event.h \
365 366
	input/resource.h \
	input/resource.c \
367
	input/stream.c \
368
	input/stream_demux.c \
369
	input/stream_filter.c \
370
	input/stream_memory.c \
371 372
	input/subtitles.c \
	input/var.c \
ivoire's avatar
ivoire committed
373
	video_output/chrono.h \
374 375
	video_output/control.c \
	video_output/control.h \
376 377
	video_output/display.c \
	video_output/display.h \
Pierre Ynard's avatar
Pierre Ynard committed
378
	video_output/event.h \
379 380
	video_output/inhibit.c \
	video_output/inhibit.h \
381 382
	video_output/interlacing.c \
	video_output/interlacing.h \
383 384
	video_output/snapshot.c \
	video_output/snapshot.h \
385
	video_output/statistic.h \
386 387
	video_output/postprocessing.c \
	video_output/postprocessing.h \
388 389
	video_output/video_output.c \
	video_output/video_text.c \
390
	video_output/video_epg.c \
391 392
	video_output/video_widgets.c \
	video_output/vout_subpictures.c \
393
	video_output/window.c \
394
	video_output/vout_intf.c \
Laurent Aimar's avatar
Laurent Aimar committed
395
	video_output/vout_internal.h \
396
	video_output/vout_control.h \
397
	video_output/vout_wrapper.c \
zorglub's avatar
zorglub committed
398
	audio_output/aout_internal.h \
399 400 401
	audio_output/common.c \
	audio_output/dec.c \
	audio_output/filters.c \
402
	audio_output/input.c \
403 404 405 406 407 408 409 410 411 412
	audio_output/mixer.c \
	audio_output/output.c \
	audio_output/intf.c \
	osd/osd.c \
	osd/osd_text.c \
	network/acl.c \
	network/getaddrinfo.c \
	network/io.c \
	network/tcp.c \
	network/udp.c \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
413
	network/rootbind.c \
414
	network/tls.c \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
415
	network/poll.c \
416 417 418
	text/charset.c \
	text/strings.c \
	text/unicode.c \
419
	text/filesystem.c \
420 421
	text/iso_lang.c \
	text/iso-639_def.h \
422
	misc/md5.c \
423
	misc/probe.c \
424
	misc/rand.c \
425 426
	misc/mtime.c \
	misc/block.c \
427
	misc/fourcc.c \
428
	misc/es_format.c \
429
	misc/picture.c \
430 431
	misc/picture_fifo.c \
	misc/picture_pool.c \
432 433
	modules/modules.h \
	modules/modules.c \
434
	modules/cache.c \
435
	modules/entry.c \
436
	modules/os.c \
437
	modules/textdomain.c \
438 439 440
	misc/threads.c \
	misc/stats.c \
	misc/cpu.c \
441
	misc/action.c \
442
	misc/epg.c \
443
	misc/exit.c \
444
	config/configuration.h \
445 446 447
	config/core.c \
	config/chain.c \
	config/file.c \
448
	config/intf.c \
449
	config/keys.c \
450
	config/cmdline.c \
451
	config/dirs.c \
452 453
	config/getopt.c \
	config/vlc_getopt.h \
454
	misc/events.c \
455 456 457
	misc/image.c \
	misc/messages.c \
	misc/objects.c \
zorglub's avatar
zorglub committed
458
	misc/variables.h \
459 460
	misc/variables.c \
	misc/error.c \
Rafaël Carré's avatar
Typo  
Rafaël Carré committed
461
	misc/update.h \
462
	misc/update.c \
463
	misc/update_crypto.c \
464
	misc/xml.c \
jetru's avatar
jetru committed
465
	misc/media_library.c \
466
	extras/libc.c \
467
	extras/tdestroy.c \
Laurent Aimar's avatar
Laurent Aimar committed
468
	misc/filter.c \
469
	misc/filter_chain.c \
470
	misc/http_auth.c \
jetru's avatar
jetru committed
471
	misc/sql.c \
472
	misc/text_style.c \
473 474
	misc/subpicture.c \
	misc/subpicture.h \
475 476
	$(NULL)

477 478 479 480
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

481 482 483 484 485 486 487 488
SOURCES_libvlc_sout = \
	stream_output/stream_output.c \
	stream_output/stream_output.h \
	stream_output/announce.c \
	stream_output/sap.c \
	stream_output/sdp.c \
	$(NULL)

489 490
SOURCES_libvlc_vlm = \
	input/vlm.c \
Laurent Aimar's avatar
Laurent Aimar committed
491
	input/vlm_event.c \
492 493 494
	input/vlmshell.c \
	$(NULL)

495 496 497 498 499 500
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(OPT_SOURCES_libvlc_darwin) \
	$(OPT_SOURCES_libvlc_win32) \
	$(NULL)

501
SOURCES_libvlc_control = \
zorglub's avatar
zorglub committed
502
	control/libvlc_internal.h \
503
	control/event_internal.h \
504 505 506
	control/media_internal.h \
	control/media_list_internal.h \
	control/media_player_internal.h \
507
	control/core.c \
508
	control/error.c \
509 510 511 512 513
	control/log.c \
	control/playlist.c \
	control/vlm.c \
	control/video.c \
	control/audio.c \
littlejohn's avatar
littlejohn committed
514
	control/event.c \
515
	control/event_async.c \
516 517
	control/media.c \
	control/media_player.c \
518
	control/media_list.c \
519
	control/media_list_path.h \
520
	control/media_list_player.c \
521
	control/media_library.c \
522
	control/media_discoverer.c
523

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
524 525 526 527 528 529 530 531
###############################################################################
# GIT revision
###############################################################################

BUILT_SOURCES += stamp-revision
CLEANFILES += revision.txt revision.c

revision.c: revision.txt
532 533
	$(AM_V_at)rm -f -- revision.c
	$(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
534 535
		> revision.c

536
revision.txt: Makefile.am
537 538
	$(AM_V_at)$(MAKE) stamp-revision
	$(AM_V_GEN)touch revision.txt
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
539 540

stamp-revision:
541 542
	$(AM_V_at)rm -f -- revision.tmp
	$(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
543
		--match '?.*.*' --always || echo exported) > revision.tmp
544
	$(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
545 546 547 548
		rm -f -- revision.tmp; \
	else \
		mv -f -- revision.tmp revision.txt; \
	fi 2>&1
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
549

550 551 552
###############################################################################
# Unit/regression test
###############################################################################
553

554
dist_check_SCRIPTS = check_symbols check_headers
555
TESTS = check_symbols
556

557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572
check_DATA = libvlc-headers.sym libvlc-sorted.sym
CLEANFILES += $(check_DATA)

libvlc-sorted.sym: libvlccore.sym
	rm -f libvlc-sorted.sym
	sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym

libvlc-headers.sym:
	rm -f libvlc-headers.sym
	cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
	sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
	sed -e 's/[^a-zA-Z0-9_]*//' | \
	sort -fdu > libvlc-headers.sym

.PHONY: libvlc-headers.sym

573
check-local:
574
	for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
575 576 577 578 579 580 581 582
	do \
		echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
		if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
		then \
			echo "Header $$h not included in test/headers.c!"; \
			exit 1; \
		fi ; \
	done
583
	$(srcdir)/check_headers $(pkginclude_HEADERS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
584
	$(srcdir)/check_headers $(pluginsinclude_HEADERS)
585

586
FORCE:
587 588 589 590
	@echo "Generated source cannot be phony. Go away." >&2
	@exit 1

.PHONY: FORCE