xref: /qemu/tests/tcg/x86_64/Makefile.target (revision 83ecdb18)
1# -*- Mode: makefile -*-
2#
3# x86_64 tests - included from tests/tcg/Makefile.target
4#
5# Currently we only build test-x86_64 and test-i386-ssse3 from
6# $(SRC_PATH)/tests/tcg/i386/
7#
8
9include $(SRC_PATH)/tests/tcg/i386/Makefile.target
10
11ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET))
12X86_64_TESTS += vsyscall
13X86_64_TESTS += noexec
14X86_64_TESTS += cmpxchg
15X86_64_TESTS += adox
16TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
17else
18TESTS=$(MULTIARCH_TESTS)
19endif
20
21adox: CFLAGS=-O2
22
23run-test-i386-ssse3: QEMU_OPTS += -cpu max
24run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
25
26test-x86_64: LDFLAGS+=-lm -lc
27test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
28	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
29
30%: $(SRC_PATH)/tests/tcg/x86_64/%.c
31	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
32