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
	misc/beos_specific.cpp \
11
	libvlc.pc.in \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
12
	vlc-plugin.pc.in \
13
	libvlc.sym \
14 15
	libvlccore.sym \
	../include/vlc/libvlc_version.h.in
16

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

22
SUFFIXES = .pc.in .pc .rc.in .rc
23

24 25 26 27
###############################################################################
# Headers
###############################################################################

28
pluginsincludedir = $(pkgincludedir)/plugins
29

30
pkginclude_HEADERS = \
31
	../include/vlc/vlc.h \
32
	../include/vlc/deprecated.h \
33
	../include/vlc/libvlc.h \
34
	../include/vlc/libvlc_events.h \
35 36 37 38 39 40 41
	../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 \
42
	../include/vlc/libvlc_vlm.h \
43
	$(NULL)
44
nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
45

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

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

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

144
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
145 146 147 148 149 150 151
	$(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
152
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
153 154 155
		"$(top_srcdir)/THANKS" && \
	echo ";" && \
	echo "static const char psz_authors[] =" && \
156
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
157 158 159
		"$(top_srcdir)/AUTHORS" && \
	echo ";") >> "$@.tmp"
	$(AM_V_at)mv -f -- "$@.tmp" "$@"
160

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

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

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

173 174 175 176 177 178 179 180 181 182 183 184 185
##############################################################################
# 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/$@"

186 187 188 189
###############################################################################
# Building libvlc
###############################################################################

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

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

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

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

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

237

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

279
SOURCES_libvlc_beos = \
280
	misc/atomic.c \
281
	misc/pthread.c \
282 283 284
	$(NULL)

SOURCES_libvlc_darwin = \
285
	config/dirs_macos.c \
286
	misc/atomic.c \
287
	misc/pthread.c \
288
	misc/darwin_specific.c \
289 290
	$(NULL)

291
SOURCES_libvlc_linux = \
292
	config/dirs_xdg.c \
293
	misc/atomic.c \
294
	misc/pthread.c \
295 296 297
	misc/linux_specific.c \
	$(NULL)

298
SOURCES_libvlc_win32 = \
299 300
	win32/dirs.c \
	win32/specific.c \
301
	win32/atomic.c \
302 303
	win32/thread.c \
	win32/winsock.c \
304 305
	$(NULL)

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

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

475 476 477 478
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

479 480 481 482 483 484 485 486
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)

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

493 494 495 496 497 498 499
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(OPT_SOURCES_libvlc_beos) \
	$(OPT_SOURCES_libvlc_darwin) \
	$(OPT_SOURCES_libvlc_win32) \
	$(NULL)

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

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

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

revision.c: revision.txt
531 532
	$(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
533 534
		> revision.c

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

stamp-revision:
540 541
	$(AM_V_at)rm -f -- revision.tmp
	$(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
542
		--match '?.*.*' --always || echo exported) > revision.tmp
543
	$(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
544 545 546 547
		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
548

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

553
dist_check_SCRIPTS = check_symbols check_headers
554
TESTS = check_symbols
555

556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
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

572
check-local:
573
	for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
574 575 576 577 578 579 580 581
	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
582
	$(srcdir)/check_headers $(pkginclude_HEADERS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
583
	$(srcdir)/check_headers $(pluginsinclude_HEADERS)
584

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

.PHONY: FORCE