1include $(top_srcdir)/Makefile.tool-tests.am
2
3dist_noinst_SCRIPTS = filter_stderr
4
5check_PROGRAMS = \
6	million rep_prefix fldcw_check complex_rep clone_test
7
8EXTRA_DIST = \
9	   clone_test.stderr.exp \
10	   clone_test.post.exp \
11	   clone_test.vgtest \
12	   complex_rep.stderr.exp \
13	   complex_rep.vgtest \
14	   fldcw_check.stderr.exp \
15	   fldcw_check.vgtest \
16	   ll.stderr.exp \
17	   ll.stdout.exp \
18	   ll.post.exp \
19	   ll.vgtest \
20	   million.stderr.exp \
21	   million.post.exp \
22	   million.vgtest \
23	   rep_prefix.stderr.exp \
24	   rep_prefix.vgtest
25
26AM_CCASFLAGS += -ffreestanding
27
28AM_LDFLAGS = -nostartfiles -nodefaultlibs
29
30clone_test_SOURCES = clone_test.S
31complex_rep_SOURCES = complex_rep.S
32fldcw_check_SOURCES = fldcw_check.S
33million_SOURCES = million.S
34rep_prefix_SOURCES = rep_prefix.S
35
36# To compile the ll testcase, the compiler needs to support -Xassembler
37# ICC does not do that
38if !COMPILER_IS_ICC
39AM_CCASFLAGS   += -Xassembler -I$(top_srcdir)/exp-bbv/tests
40check_PROGRAMS += ll
41ll_SOURCES      = ll.S
42endif
43
44clone_test_CFLAGS	= $(AM_CFLAGS) @FLAG_NO_PIE@
45complex_rep_CFLAGS	= $(AM_CFLAGS) @FLAG_NO_PIE@
46fldcw_check_CFLAGS	= $(AM_CFLAGS) @FLAG_NO_PIE@
47ll_CFLAGS		= $(AM_CFLAGS) @FLAG_NO_PIE@
48million_CFLAGS		= $(AM_CFLAGS) @FLAG_NO_PIE@
49rep_prefix_CFLAGS	= $(AM_CFLAGS) @FLAG_NO_PIE@
50