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