Makefile.am revision 343dbe4d1596a5385739acf26e64d71cca3ee0fe
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 insn_sse insn_sse2
5
6EXTRA_DIST = $(noinst_SCRIPTS) \
7	badseg.stderr.exp badseg.stdout.exp badseg.vgtest \
8	bt_everything.stderr.exp bt_everything.stdout.exp bt_everything.vgtest \
9	bt_literal.stderr.exp bt_literal.stdout.exp bt_literal.vgtest \
10	cpuid.stderr.exp cpuid.stdout.exp cpuid.vgtest \
11	cmpxchg8b.stderr.exp cmpxchg8b.stdout.exp cmpxchg8b.vgtest \
12	fpu_lazy_eflags.stderr.exp fpu_lazy_eflags.stdout.exp \
13	fpu_lazy_eflags.vgtest \
14	fxtract.stdout.exp fxtract.stderr.exp fxtract.vgtest \
15	getseg.stdout.exp getseg.stderr.exp getseg.vgtest \
16	int.stderr.exp int.stdout.exp int.vgtest \
17	$(addsuffix .stderr.exp,$(INSN_TESTS)) \
18	$(addsuffix .stdout.exp,$(INSN_TESTS)) \
19	$(addsuffix .vgtest,$(INSN_TESTS)) \
20	looper.stderr.exp looper.stdout.exp looper.vgtest \
21	pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \
22	sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \
23	seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \
24	sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \
25	smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
26	yield.stderr.exp yield.stdout.exp yield.vgtest
27
28check_PROGRAMS = \
29	badseg bt_everything bt_literal cmpxchg8b cpuid fpu_lazy_eflags \
30	fxtract \
31	getseg $(INSN_TESTS) \
32	looper int pushpopseg sbbmisc \
33	seg_override sigcontext smc1 yield
34
35AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow \
36		-g -I$(top_srcdir)/include \
37		$(FLAG_MMMX) $(FLAG_MSSE)
38
39AM_CXXFLAGS = $(AM_CFLAGS)
40
41# generic C ones
42cpuid_SOURCES 		= cpuid_c.c cpuid_s.s
43# fpu_lazy_eflags must use these flags -- the bug only occurred with them
44fpu_lazy_eflags_CFLAGS	= -O2 -march=pentiumpro
45fxtract_LDADD		= -lm
46insn_basic_SOURCES	= insn_basic.def
47insn_basic_LDADD	= -lm
48insn_fpu_SOURCES	= insn_fpu.def
49insn_fpu_LDADD		= -lm
50insn_cmov_SOURCES	= insn_cmov.def
51insn_cmov_LDADD		= -lm
52insn_mmx_SOURCES	= insn_mmx.def
53insn_mmx_LDADD		= -lm
54insn_mmxext_SOURCES	= insn_mmxext.def
55insn_mmxext_LDADD	= -lm
56insn_sse_SOURCES	= insn_sse.def
57insn_sse_LDADD		= -lm
58insn_sse2_SOURCES	= insn_sse2.def
59insn_sse2_LDADD		= -lm
60yield_CFLAGS		= $(AM_CFLAGS) -D__$(VG_ARCH)__
61yield_LDADD		= -lpthread
62
63.def.c: $(srcdir)/gen_insn_test.pl
64	$(PERL) $(srcdir)/gen_insn_test.pl < $< > $@
65