Makefile.am revision 8116d7b6bbd16bee5f24ec66ddbfadd5074b022b
1noinst_SCRIPTS = filter_cpuid filter_stderr gen_insn_test.pl
2
3CLEANFILES = $(addsuffix .c,$(INSN_TESTS))
4INSN_TESTS = insn_basic insn_fpu insn_cmov insn_mmx insn_mmxext \
5		insn_sse insn_sse2 insn_sse3
6
7EXTRA_DIST = $(noinst_SCRIPTS) \
8	badseg.stderr.exp badseg.stdout.exp badseg.vgtest \
9	bt_everything.stderr.exp bt_everything.stdout.exp bt_everything.vgtest \
10	bt_literal.stderr.exp bt_literal.stdout.exp bt_literal.vgtest \
11	bug125959-x86.stderr.exp bug125959-x86.stdout.exp bug125959-x86.vgtest \
12	bug126147-x86.stderr.exp bug126147-x86.stdout.exp bug126147-x86.vgtest \
13	bug132813-x86.stderr.exp bug132813-x86.stdout.exp bug132813-x86.vgtest \
14	cpuid.stderr.exp cpuid.stdout.exp cpuid.vgtest \
15	cmpxchg8b.stderr.exp cmpxchg8b.stdout.exp cmpxchg8b.vgtest \
16	faultstatus.disabled faultstatus.stderr.exp \
17	fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \
18	fpu_lazy_eflags.stderr.exp fpu_lazy_eflags.stdout.exp \
19	fpu_lazy_eflags.vgtest \
20	fxtract.stdout.exp fxtract.stderr.exp fxtract.vgtest \
21	getseg.stdout.exp getseg.stderr.exp getseg.vgtest \
22	incdec_alt.stdout.exp incdec_alt.stderr.exp incdec_alt.vgtest \
23	int.stderr.exp int.stdout.exp int.disabled \
24	$(addsuffix .stderr.exp,$(INSN_TESTS)) \
25	$(addsuffix .stdout.exp,$(INSN_TESTS)) \
26	$(addsuffix .vgtest,$(INSN_TESTS)) \
27	jcxz.stdout.exp jcxz.stderr.exp jcxz.vgtest \
28	lahf.stdout.exp lahf.stderr.exp lahf.vgtest \
29	looper.stderr.exp looper.stdout.exp looper.vgtest \
30	movx.stderr.exp movx.stdout.exp movx.vgtest \
31	pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \
32	sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \
33	seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \
34	sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \
35	smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
36	yield.stderr.exp yield.stdout.exp yield.disabled
37
38check_PROGRAMS = \
39	badseg bt_everything bt_literal \
40	bug125959-x86 \
41	bug126147-x86 \
42	bug132813-x86 \
43	cmpxchg8b cpuid \
44	faultstatus fcmovnu fpu_lazy_eflags fxtract \
45	getseg incdec_alt $(INSN_TESTS) \
46	jcxz \
47	lahf looper movx int pushpopseg sbbmisc \
48	seg_override sigcontext smc1 yield
49
50AM_CFLAGS    = $(WERROR) -Winline -Wall -Wshadow \
51		@FLAG_M32@ -g -I$(top_srcdir)/include \
52		$(FLAG_MMMX) $(FLAG_MSSE)
53AM_CXXFLAGS  = $(AM_CFLAGS)
54AM_CCASFLAGS = @FLAG_M32@
55
56# generic C ones
57cpuid_SOURCES 		= cpuid_c.c cpuid_s.s
58# fpu_lazy_eflags must use these flags -- the bug only occurred with them
59fpu_lazy_eflags_CFLAGS	= @FLAG_M32@ -O2 -march=pentiumpro
60fxtract_LDADD		= -lm
61insn_basic_SOURCES	= insn_basic.def
62insn_basic_LDADD	= -lm
63insn_fpu_SOURCES	= insn_fpu.def
64insn_fpu_LDADD		= -lm
65insn_cmov_SOURCES	= insn_cmov.def
66insn_cmov_LDADD		= -lm
67insn_mmx_SOURCES	= insn_mmx.def
68insn_mmx_LDADD		= -lm
69insn_mmxext_SOURCES	= insn_mmxext.def
70insn_mmxext_LDADD	= -lm
71insn_sse_SOURCES	= insn_sse.def
72insn_sse_LDADD		= -lm
73insn_sse2_SOURCES	= insn_sse2.def
74insn_sse2_LDADD		= -lm
75insn_sse3_SOURCES	= insn_sse3.def
76insn_sse3_LDADD		= -lm
77yield_CFLAGS		= $(AM_CFLAGS) -D__$(VG_ARCH)__
78yield_LDADD		= -lpthread
79
80.def.c: $(srcdir)/gen_insn_test.pl
81	$(PERL) $(srcdir)/gen_insn_test.pl < $< > $@
82