Makefile.fpc 1.2 KB

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