Makefile.am revision 5a544ca588dcb99307639dcd3a0600c62bcdf9bc
1noinst_SCRIPTS = filter_cpuid filter_stderr gen_insn_test.pl 2 3CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) 4 5INSN_TESTS = insn_basic insn_fpu insn_cmov insn_mmx insn_mmxext \ 6 insn_sse insn_sse2 7if BUILD_SSE3_TESTS 8 INSN_TESTS += insn_sse3 9endif 10if BUILD_SSSE3_TESTS 11 INSN_TESTS += insn_ssse3 12endif 13 14# Explicitly include insn_sse3 even if ! BUILD_SSE3_TESTS, 15# to avoid packaging screwups if 'make dist' is run on a machine 16# which failed the BUILD_SSE3_TESTS test in configure.in. 17EXTRA_DIST = $(noinst_SCRIPTS) \ 18 badseg.stderr.exp badseg.stdout.exp badseg.vgtest \ 19 bt_everything.stderr.exp bt_everything.stdout.exp bt_everything.vgtest \ 20 bt_literal.stderr.exp bt_literal.stdout.exp bt_literal.vgtest \ 21 bug125959-x86.stderr.exp bug125959-x86.stdout.exp bug125959-x86.vgtest \ 22 bug126147-x86.stderr.exp bug126147-x86.stdout.exp bug126147-x86.vgtest \ 23 bug132813-x86.stderr.exp bug132813-x86.stdout.exp bug132813-x86.vgtest \ 24 bug135421-x86.stderr.exp bug135421-x86.stdout.exp bug135421-x86.vgtest \ 25 bug137714-x86.stderr.exp bug137714-x86.stdout.exp bug137714-x86.vgtest \ 26 bug152818-x86.vgtest bug152818-x86.stdout.exp \ 27 bug152818-x86.stderr.exp \ 28 cpuid.stderr.exp cpuid.stdout.exp cpuid.vgtest \ 29 cmpxchg8b.stderr.exp cmpxchg8b.stdout.exp cmpxchg8b.vgtest \ 30 cse_fail.stderr.exp cse_fail.stdout.exp cse_fail.vgtest \ 31 faultstatus.disabled faultstatus.stderr.exp \ 32 fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \ 33 fpu_lazy_eflags.stderr.exp fpu_lazy_eflags.stdout.exp \ 34 fpu_lazy_eflags.vgtest \ 35 fxtract.stdout.exp fxtract.stderr.exp fxtract.vgtest \ 36 getseg.stdout.exp getseg.stderr.exp getseg.vgtest \ 37 incdec_alt.stdout.exp incdec_alt.stderr.exp incdec_alt.vgtest \ 38 int.stderr.exp int.stdout.exp int.disabled \ 39 $(addsuffix .stderr.exp,$(INSN_TESTS)) \ 40 $(addsuffix .stdout.exp,$(INSN_TESTS)) \ 41 $(addsuffix .vgtest,$(INSN_TESTS)) \ 42 insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \ 43 insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \ 44 jcxz.stdout.exp jcxz.stderr.exp jcxz.vgtest \ 45 lahf.stdout.exp lahf.stderr.exp lahf.vgtest \ 46 looper.stderr.exp looper.stdout.exp looper.vgtest \ 47 movx.stderr.exp movx.stdout.exp movx.vgtest \ 48 pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \ 49 sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \ 50 seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \ 51 sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \ 52 smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ 53 ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \ 54 ssse3_misaligned.vgtest \ 55 ssse3_misaligned.c \ 56 yield.stderr.exp yield.stdout.exp yield.disabled 57 58check_PROGRAMS = \ 59 badseg bt_everything bt_literal \ 60 bug125959-x86 \ 61 bug126147-x86 \ 62 bug132813-x86 \ 63 bug135421-x86 \ 64 bug137714-x86 \ 65 bug152818-x86 \ 66 cmpxchg8b cpuid cse_fail \ 67 faultstatus fcmovnu fpu_lazy_eflags fxtract \ 68 getseg incdec_alt $(INSN_TESTS) \ 69 jcxz \ 70 lahf looper movx int pushpopseg sbbmisc \ 71 seg_override sigcontext smc1 yield 72if BUILD_SSSE3_TESTS 73 check_PROGRAMS += ssse3_misaligned 74endif 75 76AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow \ 77 @FLAG_M32@ -g -I$(top_srcdir)/include \ 78 $(FLAG_MMMX) $(FLAG_MSSE) 79AM_CXXFLAGS = $(AM_CFLAGS) 80AM_CCASFLAGS = @FLAG_M32@ 81 82# generic C ones 83cpuid_SOURCES = cpuid_c.c cpuid_s.s 84# fpu_lazy_eflags must use these flags -- the bug only occurred with them 85fpu_lazy_eflags_CFLAGS = @FLAG_M32@ -O2 -march=pentiumpro 86fxtract_LDADD = -lm 87insn_basic_SOURCES = insn_basic.def 88insn_basic_LDADD = -lm 89insn_fpu_SOURCES = insn_fpu.def 90insn_fpu_LDADD = -lm 91insn_cmov_SOURCES = insn_cmov.def 92insn_cmov_LDADD = -lm 93insn_mmx_SOURCES = insn_mmx.def 94insn_mmx_LDADD = -lm 95insn_mmxext_SOURCES = insn_mmxext.def 96insn_mmxext_LDADD = -lm 97insn_sse_SOURCES = insn_sse.def 98insn_sse_LDADD = -lm 99insn_sse2_SOURCES = insn_sse2.def 100insn_sse2_LDADD = -lm 101insn_sse3_SOURCES = insn_sse3.def 102insn_sse3_LDADD = -lm 103yield_CFLAGS = $(AM_CFLAGS) -D__$(VG_ARCH)__ 104yield_LDADD = -lpthread 105 106.def.c: $(srcdir)/gen_insn_test.pl 107 $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ 108