aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tcg/mips/Makefile.target
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/mips/Makefile.target')
-rw-r--r--tests/tcg/mips/Makefile.target19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target
new file mode 100644
index 000000000..1a994d552
--- /dev/null
+++ b/tests/tcg/mips/Makefile.target
@@ -0,0 +1,19 @@
+# -*- Mode: makefile -*-
+#
+# MIPS - included from tests/tcg/Makefile.target
+#
+
+MIPS_SRC=$(SRC_PATH)/tests/tcg/mips
+
+# Set search path for all sources
+VPATH += $(MIPS_SRC)
+
+# hello-mips is 32 bit only
+ifeq ($(findstring 64,$(TARGET_NAME)),)
+MIPS_TESTS=hello-mips
+
+TESTS += $(MIPS_TESTS)
+
+hello-mips: CFLAGS+=-mno-abicalls -fno-PIC -mabi=32
+hello-mips: LDFLAGS+=-nostdlib
+endif