2018-04-17 13:31:02 +03:00
|
|
|
# -*- 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)
|
|
|
|
|
2018-12-21 14:52:05 +03:00
|
|
|
# hello-mips is 32 bit only
|
|
|
|
ifeq ($(findstring 64,$(TARGET_NAME)),)
|
2018-04-17 13:31:02 +03:00
|
|
|
MIPS_TESTS=hello-mips
|
|
|
|
|
|
|
|
TESTS += $(MIPS_TESTS)
|
|
|
|
|
2018-12-21 14:52:05 +03:00
|
|
|
hello-mips: CFLAGS+=-mno-abicalls -fno-PIC -mabi=32
|
2018-04-17 13:31:02 +03:00
|
|
|
hello-mips: LDFLAGS+=-nostdlib
|
2018-12-21 14:52:05 +03:00
|
|
|
endif
|