1d54927efSWei Huang# 2d54927efSWei Huang# Copyright (c) 2018 Red Hat, Inc. and/or its affiliates 3d54927efSWei Huang# 4d54927efSWei Huang# This work is licensed under the terms of the GNU GPL, version 2 or later. 5d54927efSWei Huang# See the COPYING file in the top-level directory. 6d54927efSWei Huang# 7d54927efSWei Huang 8*5571dc82SThomas HuthTARGET_LIST = i386 aarch64 s390x 9d54927efSWei Huang 10d54927efSWei HuangSRC_PATH = ../.. 11fe730774SWei Huang 12fe730774SWei Huangoverride define __note 13d54927efSWei Huang/* This file is automatically generated from the assembly file in 14d54927efSWei Huang * tests/migration/$@. Edit that file and then run "make all" 15d54927efSWei Huang * inside tests/migration to update, and then remember to send both 16d54927efSWei Huang * the header and the assembler differences in your patch submission. 17fe730774SWei Huang */ 18fe730774SWei Huangendef 19fe730774SWei Huangexport __note 20fe730774SWei Huang 21d54927efSWei Huangfind-arch-cross-cc = $(lastword $(shell grep -h "CROSS_CC_GUEST=" $(wildcard $(SRC_PATH)/$(patsubst i386,*86*,$(1))-softmmu/config-target.mak) /dev/null)) 22d54927efSWei Huangparse-cross-prefix = $(subst gcc,,$(patsubst cc,gcc,$(patsubst CROSS_CC_GUEST="%",%,$(call find-arch-cross-cc,$(1))))) 23d54927efSWei Huanggen-cross-prefix = $(patsubst %-,CROSS_PREFIX=%-,$(call parse-cross-prefix,$(1))) 24fe730774SWei Huang 25d54927efSWei Huang.PHONY: all $(TARGET_LIST) 26fe730774SWei Huang 27d54927efSWei Huangall: $(TARGET_LIST) 28fe730774SWei Huang 29d54927efSWei Huang$(TARGET_LIST): 30d54927efSWei Huang $(MAKE) -C $@ $(call gen-cross-prefix,$@) 31fe730774SWei Huang 32fe730774SWei Huangclean: 33d54927efSWei Huang for target in $(TARGET_LIST); do \ 34d54927efSWei Huang $(MAKE) -C $$target clean; \ 35d54927efSWei Huang done 36