Wei Huang | d54927e | 2018-09-05 15:15:32 -0400 | [diff] [blame] | 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 | |
Thomas Huth | 5571dc8 | 2018-10-09 11:51:17 +0200 | [diff] [blame] | 8 | TARGET_LIST = i386 aarch64 s390x |
Wei Huang | d54927e | 2018-09-05 15:15:32 -0400 | [diff] [blame] | 9 | |
| 10 | SRC_PATH = ../.. |
Wei Huang | fe73077 | 2018-09-05 15:15:31 -0400 | [diff] [blame] | 11 | |
Juan Quintela | 36bd9e3 | 2018-09-13 15:23:13 +0200 | [diff] [blame] | 12 | .PHONY: help $(TARGET_LIST) |
| 13 | help: |
| 14 | @echo "Create migration guest includes. We generate a binary." |
| 15 | @echo "And then convert that binary to an include file that can be" |
| 16 | @echo "run in a guest." |
| 17 | @echo "Possible operations are:" |
| 18 | @echo |
| 19 | @echo " $(MAKE) clean Remove all intermediate files" |
| 20 | @echo " $(MAKE) target Generate for that target" |
| 21 | @echo " $(MAKE) CROSS_PREFIX=... target" |
| 22 | @echo " Cross-compile than target" |
| 23 | @echo " Possible targets are: $(TARGET_LIST)" |
| 24 | |
Wei Huang | fe73077 | 2018-09-05 15:15:31 -0400 | [diff] [blame] | 25 | override define __note |
Wei Huang | d54927e | 2018-09-05 15:15:32 -0400 | [diff] [blame] | 26 | /* This file is automatically generated from the assembly file in |
| 27 | * tests/migration/$@. Edit that file and then run "make all" |
| 28 | * inside tests/migration to update, and then remember to send both |
| 29 | * the header and the assembler differences in your patch submission. |
Wei Huang | fe73077 | 2018-09-05 15:15:31 -0400 | [diff] [blame] | 30 | */ |
| 31 | endef |
| 32 | export __note |
| 33 | |
Wei Huang | d54927e | 2018-09-05 15:15:32 -0400 | [diff] [blame] | 34 | $(TARGET_LIST): |
Juan Quintela | 36bd9e3 | 2018-09-13 15:23:13 +0200 | [diff] [blame] | 35 | $(MAKE) CROSS_PREFIX=$(CROSS_PREFIX) -C $@ |
Wei Huang | fe73077 | 2018-09-05 15:15:31 -0400 | [diff] [blame] | 36 | |
| 37 | clean: |
Wei Huang | d54927e | 2018-09-05 15:15:32 -0400 | [diff] [blame] | 38 | for target in $(TARGET_LIST); do \ |
| 39 | $(MAKE) -C $$target clean; \ |
| 40 | done |