Makefile.fpc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Makefile.fpc for ZX Spectrum RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=$(SYSTEMUNIT) si_prc
  9. [require]
  10. nortl=y
  11. [install]
  12. fpcpackage=y
  13. [default]
  14. target=zxspectrum
  15. cpu=z80
  16. [compiler]
  17. includedir=$(INC) $(PROCINC)
  18. sourcedir=$(INC) $(PROCINC) $(COMMON)
  19. [prerules]
  20. RTL=..
  21. INC=../inc
  22. COMMON=$(RTL)/common
  23. PROCINC=../$(CPU_TARGET)
  24. UNITPREFIX=rtl
  25. # Paths
  26. OBJPASDIR=$(RTL)/objpas
  27. # Insert exception handler in system unit
  28. ifdef EXCEPTIONS_IN_SYSTEM
  29. override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
  30. endif
  31. # Insert exception handler in system unit
  32. ifdef NO_EXCEPTIONS_IN_SYSTEM
  33. override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
  34. endif
  35. [rules]
  36. # Get the system independent include file names.
  37. # This will set the following variables :
  38. # SYSINCNAMES
  39. include $(INC)/makefile.inc
  40. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  41. # Get the processor dependent include file names.
  42. # This will set the following variables :
  43. # CPUINCNAMES
  44. include $(PROCINC)/makefile.cpu
  45. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  46. # Put system unit dependencies together.
  47. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  48. #
  49. # Loaders
  50. #
  51. si_prc$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
  52. $(COMPILER) si_prc.pp