Makefile.fpc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Makefile.fpc for ZX Spectrum RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=system 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. SYSTEMUNIT=system
  26. # Paths
  27. OBJPASDIR=$(RTL)/objpas
  28. # Insert exception handler in system unit
  29. ifdef EXCEPTIONS_IN_SYSTEM
  30. override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
  31. endif
  32. # Insert exception handler in system unit
  33. ifdef NO_EXCEPTIONS_IN_SYSTEM
  34. override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
  35. endif
  36. [rules]
  37. # Get the system independent include file names.
  38. # This will set the following variables :
  39. # SYSINCNAMES
  40. include $(INC)/makefile.inc
  41. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  42. # Get the processor dependent include file names.
  43. # This will set the following variables :
  44. # CPUINCNAMES
  45. include $(PROCINC)/makefile.cpu
  46. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  47. # Put system unit dependencies together.
  48. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  49. #
  50. # System Units (System, Objpas, Strings)
  51. #
  52. system$(PPUEXT) : system.pp $(SYSDEPS)
  53. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp
  54. $(EXECPPAS)
  55. si_prc$(PPUEXT) : system$(PPUEXT)
  56. $(COMPILER) si_prc.pp