Makefile.am 14.6 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 \
Srikanth Raju's avatar
Srikanth Raju 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 \
Srikanth Raju's avatar
Srikanth Raju 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
libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
259
endif
260 261 262
endif
endif
endif
263 264 265
if BUILD_HTTPD
libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
endif
266
if ENABLE_SOUT
267
libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
268 269 270
if ENABLE_VLM
libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
endif
271
endif
272

273
SOURCES_libvlc_darwin = \
274
	config/dirs_macos.c \
275
	misc/atomic.c \
276
	misc/filesystem.c \
277
	misc/pthread.c \
278
	misc/darwin_specific.c \
279 280
	$(NULL)

281
SOURCES_libvlc_linux = \
282
	config/dirs_xdg.c \
283
	misc/atomic.c \
284
	misc/filesystem.c \
285
	misc/pthread.c \
286 287 288
	misc/linux_specific.c \
	$(NULL)

289
SOURCES_libvlc_win32 = \
290 291
	win32/dirs.c \
	win32/specific.c \
292
	win32/atomic.c \
293
	win32/filesystem.c \
294 295
	win32/thread.c \
	win32/winsock.c \
296 297
	$(NULL)

298
SOURCES_libvlc_other = \
299
	config/dirs_xdg.c \
300
	misc/atomic.c \
301
	misc/filesystem.c \
302 303
	misc/pthread.c \
	misc/not_specific.c
304

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

468 469 470 471
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

472 473 474 475 476 477 478 479
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)

480 481
SOURCES_libvlc_vlm = \
	input/vlm.c \
Laurent Aimar's avatar
Laurent Aimar committed
482
	input/vlm_event.c \
483 484 485
	input/vlmshell.c \
	$(NULL)

486 487 488 489 490 491
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(OPT_SOURCES_libvlc_darwin) \
	$(OPT_SOURCES_libvlc_win32) \
	$(NULL)

492
SOURCES_libvlc_control = \
Clément Stenac's avatar
Clément Stenac committed
493
	control/libvlc_internal.h \
494
	control/event_internal.h \
495 496 497
	control/media_internal.h \
	control/media_list_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 508
	control/media.c \
	control/media_player.c \
509
	control/media_list.c \
510
	control/media_list_path.h \
511
	control/media_list_player.c \
512
	control/media_library.c \
513
	control/media_discoverer.c
514

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
515 516 517 518 519 520 521 522
###############################################################################
# GIT revision
###############################################################################

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

revision.c: revision.txt
523 524
	$(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
525 526
		> revision.c

527
revision.txt: Makefile.am
528 529
	$(AM_V_at)$(MAKE) stamp-revision
	$(AM_V_GEN)touch revision.txt
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
530 531

stamp-revision:
532 533
	$(AM_V_at)rm -f -- revision.tmp
	$(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
534
		--match '?.*.*' --always || echo exported) > revision.tmp
535
	$(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \
536 537 538 539
		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
540

541 542 543
###############################################################################
# Unit/regression test
###############################################################################
544

545
dist_check_SCRIPTS = check_symbols check_headers
546
TESTS = check_symbols
547

548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
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

564
check-local:
565
	for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
566 567 568 569 570 571 572 573
	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
574
	$(srcdir)/check_headers $(pkginclude_HEADERS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
575
	$(srcdir)/check_headers $(pluginsinclude_HEADERS)
576

577
FORCE:
578 579 580 581
	@echo "Generated source cannot be phony. Go away." >&2
	@exit 1

.PHONY: FORCE