qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

Makefile.target (758B)


      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 
      9 include $(SRC_PATH)/tests/tcg/i386/Makefile.target
     10 
     11 ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET))
     12 X86_64_TESTS += vsyscall
     13 X86_64_TESTS += noexec
     14 X86_64_TESTS += cmpxchg
     15 TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
     16 else
     17 TESTS=$(MULTIARCH_TESTS)
     18 endif
     19 
     20 run-test-i386-ssse3: QEMU_OPTS += -cpu max
     21 run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
     22 
     23 test-x86_64: LDFLAGS+=-lm -lc
     24 test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
     25 	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
     26 
     27 %: $(SRC_PATH)/tests/tcg/x86_64/%.c
     28 	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)