xref: /openbmc/qemu/tests/tcg/x86_64/Makefile.target (revision b14df228)
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
13TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
14else
15TESTS=$(MULTIARCH_TESTS)
16endif
17
18run-test-i386-ssse3: QEMU_OPTS += -cpu max
19run-test-avx: QEMU_OPTS += -cpu max
20run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
21
22test-x86_64: LDFLAGS+=-lm -lc
23test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
24	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
25
26vsyscall: $(SRC_PATH)/tests/tcg/x86_64/vsyscall.c
27	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
28