tests: Restore check-qdict unit test
[qemu/armbru.git] / tests / migration / Makefile
blobdc3b551976bb83d301594065a0cee925b8dcf7db
2 # Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
5 # See the COPYING file in the top-level directory.
8 TARGET_LIST = i386
10 SRC_PATH = ../..
12 override define __note
13 /* This file is automatically generated from the assembly file in
14 * tests/migration/$@. Edit that file and then run "make all"
15 * inside tests/migration to update, and then remember to send both
16 * the header and the assembler differences in your patch submission.
18 endef
19 export __note
21 find-arch-cross-cc = $(lastword $(shell grep -h "CROSS_CC_GUEST=" $(wildcard $(SRC_PATH)/$(patsubst i386,*86*,$(1))-softmmu/config-target.mak) /dev/null))
22 parse-cross-prefix = $(subst gcc,,$(patsubst cc,gcc,$(patsubst CROSS_CC_GUEST="%",%,$(call find-arch-cross-cc,$(1)))))
23 gen-cross-prefix = $(patsubst %-,CROSS_PREFIX=%-,$(call parse-cross-prefix,$(1)))
25 .PHONY: all $(TARGET_LIST)
27 all: $(TARGET_LIST)
29 $(TARGET_LIST):
30 $(MAKE) -C $@ $(call gen-cross-prefix,$@)
32 clean:
33 for target in $(TARGET_LIST); do \
34 $(MAKE) -C $$target clean; \
35 done