瀏覽代碼

+ Z80 support to the compiler makefile

git-svn-id: branches/z80@44823 -
nickysn 5 年之前
父節點
當前提交
f08ec5ba43
共有 2 個文件被更改,包括 18 次插入0 次删除
  1. 9 0
      compiler/Makefile
  2. 9 0
      compiler/Makefile.fpc

+ 9 - 0
compiler/Makefile

@@ -388,6 +388,9 @@ endif
 ifdef XTENSA
 PPC_TARGET=xtensa
 endif
+ifdef Z80
+PPC_TARGET=z80
+endif
 ifndef PPC_TARGET
 PPC_TARGET=$(CPU_TARGET)
 endif
@@ -498,6 +501,9 @@ endif
 ifeq ($(CPC_TARGET),xtensa)
 CPUSUF=xtensa
 endif
+ifeq ($(CPC_TARGET),z80)
+CPUSUF=z80
+endif
 NOCPUDEF=1
 MSGFILE=msg/error$(FPCLANG).msg
 SVNVERSION:=$(firstword $(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH))))
@@ -613,6 +619,9 @@ endif
 ifeq ($(OS_TARGET),freertos)
 NoNativeBinaries=1
 endif
+ifeq ($(OS_TARGET),zxspectrum)
+NoNativeBinaries=1
+endif
 ifeq ($(NoNativeBinaries),1)
 override EXEEXT=$(SRCEXEEXT)
 CROSSINSTALL=1

+ 9 - 0
compiler/Makefile.fpc

@@ -92,6 +92,9 @@ endif
 ifdef XTENSA
 PPC_TARGET=xtensa
 endif
+ifdef Z80
+PPC_TARGET=z80
+endif
 
 # Default is to generate a compiler for the same
 # platform as CPU_TARGET (a native compiler)
@@ -230,6 +233,9 @@ endif
 ifeq ($(CPC_TARGET),xtensa)
 CPUSUF=xtensa
 endif
+ifeq ($(CPC_TARGET),z80)
+CPUSUF=z80
+endif
 
 # Do not define the default -d$(CPU_TARGET) because that
 # will conflict with our -d$(CPC_TARGET)
@@ -400,6 +406,9 @@ endif
 ifeq ($(OS_TARGET),freertos)
 NoNativeBinaries=1
 endif
+ifeq ($(OS_TARGET),zxspectrum)
+NoNativeBinaries=1
+endif
 
 # Allow install for jvm
 ifeq ($(NoNativeBinaries),1)