1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #
- # Makefile.fpc for ZX Spectrum RTL
- #
- [package]
- main=rtl
- [target]
- loaders=
- units=$(SYSTEMUNIT) si_prc
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- target=zxspectrum
- cpu=z80
- [compiler]
- includedir=$(INC) $(PROCINC)
- sourcedir=$(INC) $(PROCINC) $(COMMON)
- [prerules]
- RTL=..
- INC=../inc
- COMMON=$(RTL)/common
- PROCINC=../$(CPU_TARGET)
- UNITPREFIX=rtl
- # 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
- #
- si_prc$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) si_prc.pp
|