فهرست منبع

+ set PPC_TARGET and CPUSUF for 6502 in the compiler makefile

Nikolay Nikolov 1 ماه پیش
والد
کامیت
3bdbb3c6a5
2فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 6 0
      compiler/Makefile
  2. 6 0
      compiler/Makefile.fpc

+ 6 - 0
compiler/Makefile

@@ -456,6 +456,9 @@ endif
 ifdef LOONGARCH64
 PPC_TARGET=loongarch64
 endif
+ifdef MOS6502
+PPC_TARGET=mos6502
+endif
 ifndef PPC_TARGET
 PPC_TARGET=$(CPU_TARGET)
 endif
@@ -605,6 +608,9 @@ endif
 ifeq ($(CPC_TARGET),loongarch64)
 CPUSUF=loongarch64
 endif
+ifeq ($(CPC_TARGET),mos6502)
+CPUSUF=6502
+endif
 NOCPUDEF=1
 MSGFILE=msg/error$(FPCLANG).msg
 PPUDUMPPROG:=$(firstword $(strip $(wildcard $(addsuffix /ppudump$(SRCEXEEXT),$(SEARCHPATH)))))

+ 6 - 0
compiler/Makefile.fpc

@@ -134,6 +134,9 @@ endif
 ifdef LOONGARCH64
 PPC_TARGET=loongarch64
 endif
+ifdef MOS6502
+PPC_TARGET=mos6502
+endif
 
 # Default is to generate a compiler for the same
 # platform as CPU_TARGET (a native compiler)
@@ -317,6 +320,9 @@ endif
 ifeq ($(CPC_TARGET),loongarch64)
 CPUSUF=loongarch64
 endif
+ifeq ($(CPC_TARGET),mos6502)
+CPUSUF=6502
+endif
 
 # Do not define the default -d$(CPU_TARGET) because that
 # will conflict with our -d$(CPC_TARGET)