瀏覽代碼

+ added makefile.fpc for the ZX Spectrum RTL

git-svn-id: branches/z80@44814 -
nickysn 5 年之前
父節點
當前提交
8c87ef2a32
共有 2 個文件被更改,包括 65 次插入0 次删除
  1. 1 0
      .gitattributes
  2. 64 0
      rtl/zxspectrum/Makefile.fpc

+ 1 - 0
.gitattributes

@@ -12172,6 +12172,7 @@ rtl/z80/makefile.cpu svneol=native#text/plain
 rtl/z80/setjump.inc svneol=native#text/plain
 rtl/z80/setjumph.inc svneol=native#text/plain
 rtl/z80/z80.inc svneol=native#text/plain
+rtl/zxspectrum/Makefile.fpc svneol=native#text/plain
 rtl/zxspectrum/prt0.asm svneol=native#text/plain
 rtl/zxspectrum/system.pp svneol=native#text/plain
 tests/MPWMake -text

+ 64 - 0
rtl/zxspectrum/Makefile.fpc

@@ -0,0 +1,64 @@
+#
+#   Makefile.fpc for ZX Spectrum RTL
+#
+[package]
+main=rtl
+[target]
+loaders=prt0
+units=system
+
+[require]
+nortl=y
+[install]
+fpcpackage=y
+[default]
+fpcdir=../..
+target=zxspectrum
+cpu=z80
+[compiler]
+includedir=$(INC) $(PROCINC)
+sourcedir=$(INC) $(PROCINC) $(COMMON)
+[prerules]
+RTL=..
+INC=../inc
+COMMON=$(RTL)/common
+PROCINC=../$(CPU_TARGET)
+UNITPREFIX=rtl
+SYSTEMUNIT=system
+
+# Paths
+OBJPASDIR=$(RTL)/objpas
+# Insert exception handler in system unit
+ifdef EXCEPTIONS_IN_SYSTEM
+override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
+endif
+# Insert exception handler in system unit
+ifdef NO_EXCEPTIONS_IN_SYSTEM
+override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
+endif
+[rules]
+# Get the system independent include file names.
+# This will set the following variables :
+# SYSINCNAMES
+include $(INC)/makefile.inc
+SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
+# Get the processor dependent include file names.
+# This will set the following variables :
+# CPUINCNAMES
+include $(PROCINC)/makefile.cpu
+SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
+# Put system unit dependencies together.
+SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
+#
+# Loaders
+#
+
+prt0$(OEXT) : prt0.asm
+	$(MAKE) $(COMPILER_UNITTARGETDIR)
+        sdcc-sdasz80 -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) prt0.asm
+#
+# System Units (System, Objpas, Strings)
+#
+system$(PPUEXT) : system.pp $(SYSDEPS)
+        $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp
+	$(EXECPPAS)