nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 1 | noinst_SCRIPTS = filter_cpuid filter_int filter_stderr gen_insn_test.pl |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 2 | |
| 3 | CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) |
| 4 | INSN_TESTS=insn_basic insn_fpu insn_cmov insn_mmx insn_mmxext insn_sse insn_sse2 |
| 5 | |
| 6 | EXTRA_DIST = $(noinst_SCRIPTS) \ |
nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 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 | dastest.stderr.exp dastest.stdout.exp dastest.vgtest \ |
| 12 | fpu_lazy_eflags.stderr.exp fpu_lazy_eflags.stdout.exp \ |
| 13 | fpu_lazy_eflags.vgtest \ |
| 14 | int.stderr.exp int.stdout.exp int.vgtest \ |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 15 | $(addsuffix .stderr.exp,$(INSN_TESTS)) \ |
| 16 | $(addsuffix .stdout.exp,$(INSN_TESTS)) \ |
nethercote | 78dac9d | 2004-10-20 13:02:21 +0000 | [diff] [blame] | 17 | $(addsuffix .vgtest,$(INSN_TESTS)) \ |
nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 18 | pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \ |
| 19 | rcl_assert.stderr.exp rcl_assert.vgtest \ |
| 20 | seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 21 | |
| 22 | check_PROGRAMS = \ |
nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 23 | badseg bt_everything bt_literal cpuid dastest fpu_lazy_eflags \ |
| 24 | $(INSN_TESTS) \ |
| 25 | int pushpopseg rcl_assert seg_override |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 26 | |
| 27 | AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include |
| 28 | AM_CXXFLAGS = $(AM_CFLAGS) |
| 29 | |
| 30 | # generic C ones |
nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 31 | badseg_SOURCES = badseg.c |
| 32 | bt_everything_SOURCES = bt_everything.c |
| 33 | bt_literal_SOURCES = bt_literal.c |
| 34 | cpuid_SOURCES = cpuid_c.c cpuid_s.s |
| 35 | dastest_SOURCES = dastest_c.c dastest_s.s |
| 36 | fpu_lazy_eflags_SOURCES = fpu_lazy_eflags.c |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 37 | insn_basic_SOURCES = insn_basic.def |
| 38 | insn_basic_LDADD = -lm |
| 39 | insn_fpu_SOURCES = insn_fpu.def |
| 40 | insn_fpu_LDADD = -lm |
| 41 | insn_cmov_SOURCES = insn_cmov.def |
| 42 | insn_cmov_LDADD = -lm |
| 43 | insn_mmx_SOURCES = insn_mmx.def |
| 44 | insn_mmx_LDADD = -lm |
| 45 | insn_mmxext_SOURCES = insn_mmxext.def |
| 46 | insn_mmxext_LDADD = -lm |
| 47 | insn_sse_SOURCES = insn_sse.def |
| 48 | insn_sse_LDADD = -lm |
| 49 | insn_sse2_SOURCES = insn_sse2.def |
| 50 | insn_sse2_LDADD = -lm |
nethercote | 9b6b74a | 2004-10-20 12:36:47 +0000 | [diff] [blame] | 51 | int_SOURCES = int.c |
| 52 | pushpopseg_SOURCES = pushpopseg.c |
| 53 | rcl_assert_SOURCES = rcl_assert.S |
| 54 | seg_override_SOURCES = seg_override.c |
nethercote | bfd2019 | 2004-10-19 18:54:11 +0000 | [diff] [blame] | 55 | |
| 56 | .def.c: $(srcdir)/gen_insn_test.pl |
| 57 | $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ |