summaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-04-04 11:46:32 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-04-04 20:18:06 +0200
commit758af37ed59039bfd55c01a10c7eb8b69bb80972 (patch)
tree9f67a2b5d566ca5106debfc2c7e41a4f8af7ba62 /Makefile.target
parent31525a295c286b5486b94c6d0ed5d7db6f591526 (diff)
downloadqemu-758af37ed59039bfd55c01a10c7eb8b69bb80972.tar.gz
qemu-758af37ed59039bfd55c01a10c7eb8b69bb80972.tar.bz2
qemu-758af37ed59039bfd55c01a10c7eb8b69bb80972.zip
Makefile.target: Allow target helpers to be in any *_helper.c file
Build all files matching *_helper.c with HELPER_CFLAGS, not just op_helper.c. This allows you to put target helper functions which use the global 'env' variable in multiple source files. This only affects the ARM target as all the other targets currently only have op_helper.c. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.target b/Makefile.target
index 2f7671454c..d5761b72f5 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -94,7 +94,7 @@ tcg/tcg.o: cpu.h
# HELPER_CFLAGS is used for all the code compiled with static register
# variables
-op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
+%_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
# Note: this is a workaround. The real fix is to avoid compiling
# cpu_signal_handler() in cpu-exec.c.