]> Git Repo - qemu.git/blob - tests/migration/Makefile
91237a84d9ff2b34a62995a0c1778ad221c67d08
[qemu.git] / tests / migration / Makefile
1 #
2 # Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
3 #
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.
6 #
7
8 TARGET_LIST = i386 aarch64
9
10 SRC_PATH = ../..
11
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.
17  */
18 endef
19 export __note
20
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)))
24
25 .PHONY: all $(TARGET_LIST)
26
27 all: $(TARGET_LIST)
28
29 $(TARGET_LIST):
30         $(MAKE) -C $@ $(call gen-cross-prefix,$@)
31
32 clean:
33         for target in $(TARGET_LIST); do \
34                 $(MAKE) -C $$target clean; \
35         done
This page took 0.016005 seconds and 2 git commands to generate.