Makefile.am 14.7 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
	libvlccore.sym
15

16
BUILT_SOURCES = ../include/vlc_about.h
Christophe Mutricy's avatar
Christophe Mutricy committed
17
CLEANFILES = $(BUILT_SOURCES)
18

19
SUFFIXES = .pc.in .pc .rc.in .rc
20

21 22 23 24
###############################################################################
# Headers
###############################################################################

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_events.h \
32 33 34 35 36 37 38 39
	../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_list_view.h \
	../include/vlc/libvlc_media_player.h \
	../include/vlc/libvlc_structures.h \
40
	../include/vlc/libvlc_vlm.h \
41 42 43 44
	../include/vlc/mediacontrol.h \
	../include/vlc/mediacontrol_structures.h \
	$(NULL)

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_avcodec.h \
53 54 55 56 57
	../include/vlc_bits.h \
	../include/vlc_block.h \
	../include/vlc_block_helper.h \
	../include/vlc_charset.h \
	../include/vlc_codec.h \
58 59
	../include/vlc_common.h \
	../include/vlc_config.h \
60
	../include/vlc_config_cat.h \
61
	../include/vlc_configuration.h \
62
	../include/vlc_cpu.h \
63
	../include/vlc_dialog.h \
64
	../include/vlc_demux.h \
65
	../include/vlc_epg.h \
66
	../include/vlc_es.h \
67 68
	../include/vlc_es_out.h \
	../include/vlc_events.h \
69
	../include/vlc_filter.h \
70
	../include/vlc_fourcc.h \
71
	../include/vlc_gcrypt.h \
72
	../include/vlc_http.h \
73
	../include/vlc_httpd.h \
74
	../include/vlc_image.h \
75
	../include/vlc_inhibit.h \
76
	../include/vlc_input.h \
77
	../include/vlc_input_item.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
78
	../include/vlc_main.h \
79
	../include/vlc_md5.h \
80
	../include/vlc_messages.h \
81
	../include/vlc_meta.h \
82
	../include/vlc_modules.h \
Pierre Ynard's avatar
Pierre Ynard committed
83
	../include/vlc_mouse.h \
84 85
	../include/vlc_mtime.h \
	../include/vlc_objects.h \
86
	../include/vlc_picture.h \
87 88
	../include/vlc_picture_fifo.h \
	../include/vlc_picture_pool.h \
89
	../include/vlc_playlist.h \
90
	../include/vlc_plugin.h \
91
	../include/vlc_probe.h \
92 93
	../include/vlc_rand.h \
	../include/vlc_services_discovery.h \
Srikanth Raju's avatar
Srikanth Raju committed
94
	../include/vlc_sql.h \
95
	../include/vlc_sout.h \
96 97
	../include/vlc_stream.h \
	../include/vlc_strings.h \
98
	../include/vlc_subpicture.h \
99
	../include/vlc_threads.h \
100
	../include/vlc_url.h \
101 102
	../include/vlc_variables.h \
	../include/vlc_vlm.h \
103
	../include/vlc_video_splitter.h \
104
	../include/vlc_vout.h \
105
	../include/vlc_vout_display.h \
106
	../include/vlc_vout_opengl.h \
107
	../include/vlc_vout_window.h \
108
	../include/vlc_xml.h \
109
	$(NULL)
110

111
noinst_HEADERS = \
112
	../include/vlc_codec_synchro.h \
113
	../include/vlc_codecs.h \
Pierre Ynard's avatar
Pierre Ynard committed
114
	../include/vlc_extensions.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
115
	../include/vlc_fixups.h \
116
	../include/vlc_interface.h \
117
	../include/vlc_intf_strings.h \
118
	../include/vlc_iso_lang.h \
119
	../include/vlc_keys.h \
Pierre Ynard's avatar
Pierre Ynard committed
120
	../include/vlc_memory.h \
121
	../include/vlc_network.h \
122
	../include/vlc_osd.h \
Rémi Denis-Courmont's avatar
Tabs  
Rémi Denis-Courmont committed
123
	../include/vlc_pgpkey.h \
124
	../include/vlc_tls.h \
125 126
	../include/vlc_update.h \
	../include/vlc_vod.h \
Pierre Ynard's avatar
Pierre Ynard committed
127
	../include/vlc_vout_wrapper.h \
128 129
	$(NULL)

130 131 132 133 134
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
	rm -f -- "$@.tmp"
	mkdir -p -- ../include
	echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
	echo "static const char psz_license[] =" >> "$@.tmp"
JP Dinger's avatar
JP Dinger committed
135
	sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" >> "$@.tmp"
136 137
	echo ";" >> "$@.tmp"
	echo "static const char psz_thanks[] =" >> "$@.tmp"
JP Dinger's avatar
JP Dinger committed
138 139
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
		"$(top_srcdir)/THANKS" >> "$@.tmp"
140 141
	echo ";" >> "$@.tmp"
	echo "static const char psz_authors[] =" >> "$@.tmp"
JP Dinger's avatar
JP Dinger committed
142 143
	sed -n '/^N: /{;s///;s/"/\\"/g;s/^.*$$/\"&\\n\"/;p;}' \
		"$(top_srcdir)/AUTHORS" >> "$@.tmp"
144
	echo ";" >> "$@.tmp"
JP Dinger's avatar
JP Dinger committed
145

146
	mv -f -- "$@.tmp" "$@"
147

148 149 150 151 152
###############################################################################
# pkg-config integration
###############################################################################

pkgconfigdir = $(libdir)/pkgconfig
153
pkgconfig_DATA = libvlc.pc vlc-plugin.pc
154 155
CLEANFILES += $(pkgconfig_DATA)

156
.pc.in.pc: $(top_builddir)/config.status
157
	$(AM_V_GEN)cd "$(top_builddir)" && \
158 159
	$(SHELL) ./config.status --file="src/$@"

160 161 162 163 164 165 166 167 168 169 170 171 172
##############################################################################
# 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/$@"

173 174 175 176
###############################################################################
# Building libvlc
###############################################################################

177 178 179
nice:
	$(top_builddir)/compile

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

182
AM_LDFLAGS = -no-undefined
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
183
if HAVE_WIN32
184
AM_LDFLAGS += -avoid-version
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
185
endif
186 187 188
if HAVE_WINCE
AM_LDFLAGS += -avoid-version
endif
189

190
libvlccore_la_SOURCES = $(SOURCES_libvlc)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
191
nodist_libvlccore_la_SOURCES = revision.c
192
libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
193
	-DMODULE_STRING=\"main\" \
194
	-DLOCALEDIR=\"$(localedir)\" \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
195
	-DSYSCONFDIR=\"$(sysconfdir)\" \
196
	-DDATA_PATH=\"$(vlcdatadir)\" \
197
	-DLIBDIR=\"$(libdir)\" \
198
	-DPLUGIN_PATH=\"$(vlclibdir)\"
199
libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
200
	-no-undefined \
201
	-export-symbols $(srcdir)/libvlccore.sym \
202
	-version-info 4:0:0
203
libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlccore` $(AM_LIBADD) \
204
	$(LTLIBINTL) ../compat/libcompat.la
205
libvlccore_la_DEPENDENCIES = libvlccore.sym
206
if HAVE_WIN32
207 208
libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT)
209
endif
210

211
libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
212 213
	$(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@

214
libvlc_la_SOURCES = $(SOURCES_libvlc_control)
215
nodist_libvlc_la_SOURCES = revision.c
216 217
libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
	libvlccore.la ../compat/libcompat.la
218
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
219
libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
220
	-version-info 5:0:0 \
221
	-export-symbols $(srcdir)/libvlc.sym
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
222
libvlc_la_DEPENDENCIES = libvlc.sym libvlccore.la
223
if HAVE_WIN32
224 225
libvlc_la_DEPENDENCIES += $(DATA_win32_rc_lib)
libvlc_la_LDFLAGS += -Wl,$(DATA_win32_rc_lib)
226 227
endif

228

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

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

SOURCES_libvlc_darwin = \
283
	config/dirs_macos.c \
284
	misc/pthread.c \
285
	misc/darwin_specific.c \
286 287
	$(NULL)

288
SOURCES_libvlc_linux = \
289
	config/dirs_xdg.c \
290
	misc/pthread.c \
291 292 293
	misc/linux_specific.c \
	$(NULL)

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

301
SOURCES_libvlc_other = \
302
	config/dirs_xdg.c \
303 304
	misc/pthread.c \
	misc/not_specific.c
305

306 307 308 309 310 311 312 313 314 315 316 317 318
SOURCES_libvlc_dirent = \
	extras/dirent.c \
	$(NULL)

SOURCES_libvlc_getopt = \
	extras/getopt.c \
	extras/getopt.h \
	extras/getopt1.c \
	$(NULL)

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

464 465 466 467
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

468 469 470 471 472 473 474 475
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)

476 477
SOURCES_libvlc_vlm = \
	input/vlm.c \
Laurent Aimar's avatar
Laurent Aimar committed
478
	input/vlm_event.c \
479 480 481
	input/vlmshell.c \
	$(NULL)

482 483 484 485 486 487 488 489 490
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(OPT_SOURCES_libvlc_beos) \
	$(OPT_SOURCES_libvlc_darwin) \
	$(OPT_SOURCES_libvlc_win32) \
	$(OPT_SOURCES_libvlc_dirent) \
	$(OPT_SOURCES_libvlc_getopt) \
	$(NULL)

491
SOURCES_libvlc_control = \
Clément Stenac's avatar
Clément Stenac committed
492
	control/libvlc_internal.h \
493
	control/event_internal.h \
494 495 496 497
	control/media_internal.h \
	control/media_list_internal.h \
	control/media_list_view_internal.h \
	control/media_player_internal.h \
498
	control/core.c \
499
	control/error.c \
500 501 502 503 504
	control/log.c \
	control/playlist.c \
	control/vlm.c \
	control/video.c \
	control/audio.c \
Filippo Carone's avatar
Filippo Carone committed
505
	control/event.c \
506
	control/event_async.c \
507
	control/flat_media_list_view.c \
508
	control/hierarchical_media_list_view.c \
509
	control/hierarchical_node_media_list_view.c \
510 511
	control/media.c \
	control/media_player.c \
512
	control/media_list.c \
513
	control/media_list_path.h \
514
	control/media_list_player.c \
515
	control/media_list_view.c \
516
	control/media_library.c \
Clément Stenac's avatar
Clément Stenac committed
517
	control/mediacontrol_internal.h \
518 519
	control/mediacontrol_core.c \
	control/mediacontrol_util.c \
520
	control/mediacontrol_audio_video.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