summaryrefslogtreecommitdiff
path: root/riscv/trunk/compiler/Makefile.fpc
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/trunk/compiler/Makefile.fpc')
-rw-r--r--riscv/trunk/compiler/Makefile.fpc16
1 files changed, 14 insertions, 2 deletions
diff --git a/riscv/trunk/compiler/Makefile.fpc b/riscv/trunk/compiler/Makefile.fpc
index e0d20cd528..2db8201d29 100644
--- a/riscv/trunk/compiler/Makefile.fpc
+++ b/riscv/trunk/compiler/Makefile.fpc
@@ -32,7 +32,7 @@ fpcdir=..
unexport FPC_VERSION FPC_COMPILERINFO
# Which platforms are ready for inclusion in the cycle
-CYCLETARGETS=i386 powerpc sparc arm x86_64 powerpc64 m68k armeb mipsel mips avr jvm i8086 aarch64
+CYCLETARGETS=i386 powerpc sparc arm x86_64 powerpc64 m68k armeb mipsel mips avr jvm i8086 aarch64 riscv32 riscv64
# All supported targets used for clean
ALLTARGETS=$(CYCLETARGETS)
@@ -80,6 +80,12 @@ endif
ifdef AARCH64
PPC_TARGET=aarch64
endif
+ifdef RISCV32
+PPC_TARGET=riscv32
+endif
+ifdef RISCV64
+PPC_TARGET=riscv64
+endif
# Default is to generate a compiler for the same
# platform as CPU_TARGET (a native compiler)
@@ -207,6 +213,12 @@ endif
ifeq ($(CPC_TARGET),aarch64)
CPUSUF=a64
endif
+ifeq ($(CPC_TARGET),riscv32)
+CPUSUF=rv32
+endif
+ifeq ($(CPC_TARGET),riscv64)
+CPUSUF=rv64
+endif
# Do not define the default -d$(CPU_TARGET) because that
# will conflict with our -d$(CPC_TARGET)
@@ -398,7 +410,7 @@ endif
# CPU targets
#####################################################################
-PPC_TARGETS=i386 m68k powerpc sparc arm armeb x86_64 powerpc64 mips mipsel avr jvm i8086 aarch64
+PPC_TARGETS=i386 m68k powerpc sparc arm armeb x86_64 powerpc64 mips mipsel avr jvm i8086 aarch64 riscv32 riscv64
INSTALL_TARGETS=$(addsuffix _exe_install,$(sort $(CYCLETARGETS) $(PPC_TARGETS)))
.PHONY: $(PPC_TARGETS) $(INSTALL_TARGETS)