]> git.proxmox.com Git - mirror_qemu.git/blob - tests/tcg/multiarch/Makefile.target
usb-mtp: fix return status of delete
[mirror_qemu.git] / tests / tcg / multiarch / Makefile.target
1 # -*- Mode: makefile -*-
2 #
3 # Multiarch Tests - included from tests/tcg/Makefile.target
4 #
5 # These tests are plain C and built without any architecture specific code.
6 #
7
8 MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
9
10 # Set search path for all sources
11 VPATH += $(MULTIARCH_SRC)
12 MULTIARCH_SRCS =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c))
13 MULTIARCH_TESTS =$(MULTIARCH_SRCS:.c=)
14
15 # Update TESTS
16 TESTS +=$(MULTIARCH_TESTS)
17
18 #
19 # The following are any additional rules needed to build things
20 #
21
22 testthread: LDFLAGS+=-lpthread
23
24 # We define the runner for test-mmap after the individual
25 # architectures have defined their supported pages sizes. If no
26 # additional page sizes are defined we only run the default test.
27
28 # default case (host page size)
29 run-test-mmap: test-mmap
30 $(call run-test, test-mmap, $(QEMU) $<, \
31 "$< (default) on $(TARGET_NAME)")
32
33 # additional page sizes (defined by each architecture adding to EXTRA_RUNS)
34 run-test-mmap-%: test-mmap
35 $(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\
36 "$< ($* byte pages) on $(TARGET_NAME)")