Makefile.fpc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. #
  2. # Makefile.fpc for Go32v1 RTL
  3. #
  4. [targets]
  5. loaders=prt0
  6. units=$(SYSTEMUNIT) objpas strings \
  7. go32 \
  8. dos crt objects printer \
  9. sysutils math typinfo \
  10. cpu mmx getopts heaptrc \
  11. msmouse
  12. [require]
  13. rtl=0
  14. [defaults]
  15. defaulttarget=go32v1
  16. defaultcpu=i386
  17. [install]
  18. unitsubdir=rtl
  19. [dirs]
  20. fpcdir=.
  21. incdir=$(INC) $(PROCINC)
  22. targetdir=.
  23. [presettings]
  24. RTL=..
  25. INC=../inc
  26. PROCINC=../$(CPU_TARGET)
  27. UNITPREFIX=rtl
  28. # Paths
  29. OBJPASDIR=$(RTL)/objpas
  30. GRAPHDIR=$(INC)/graph
  31. # Define Go32v2 Units
  32. SYSTEMUNIT=system
  33. [postsettings]
  34. SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
  35. # Get the system independent include file names.
  36. # This will set the following variables :
  37. # SYSINCNAMES
  38. include $(INC)/makefile.inc
  39. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  40. # Get the processor dependent include file names.
  41. # This will set the following variables :
  42. # CPUINCNAMES
  43. include $(PROCINC)/makefile.cpu
  44. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  45. # Put system unit dependencies together.
  46. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  47. [rules]
  48. vpath %$(PASEXT) $(INC) $(PROCINC)
  49. #
  50. # Loaders
  51. #
  52. prt0$(OEXT) : prt0.as
  53. $(AS) -o prt0$(OEXT) prt0.as
  54. #
  55. # Base Units (System, strings, os-dependent-base-unit)
  56. #
  57. system$(PPUEXT) : system.pp $(SYSDEPS)
  58. $(COMPILER) -Us -Sg system.pp $(REDIR)
  59. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  60. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  61. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  62. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  63. system$(PPUEXT)
  64. #
  65. # System Dependent Units
  66. #
  67. go32$(PPUEXT) : go32.pp objpas$(PPUEXT) system$(PPUEXT)
  68. #
  69. # TP7 Compatible RTL Units
  70. #
  71. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
  72. go32$(PPUEXT) strings$(PPUEXT) system$(PPUEXT)
  73. crt$(PPUEXT) : crt.pp $(INC)/textrec.inc go32$(PPUEXT) system$(PPUEXT)
  74. objects$(PPUEXT) : $(INC)/objects.pp objinc.inc system$(PPUEXT)
  75. printer$(PPUEXT) : printer.pp system$(PPUEXT)
  76. #
  77. # Delphi Compatible Units
  78. #
  79. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
  80. filutil.inc disk.inc objpas$(PPUEXT) dos$(PPUEXT) go32$(PPUEXT)
  81. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/sysutils.pp $(REDIR)
  82. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  83. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  84. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  85. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  86. #
  87. # Other system-independent RTL Units
  88. #
  89. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  90. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  91. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  92. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  93. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  94. #
  95. # Other system-dependent RTL Units
  96. #
  97. msmouse$(PPUEXT) : msmouse.pp system$(PPUEXT)