Makefile.fpc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. #
  2. # Makefile.fpc for Go32v2 RTL
  3. #
  4. [targets]
  5. loaders=prt0 exceptn fpu
  6. units=system objpas strings \
  7. go32 dpmiexcp initc ports profile dxeload emu387 \
  8. dos crt objects printer graph \
  9. sysutils math typinfo \
  10. cpu mmx getopts heaptrc lineinfo \
  11. msmouse charset varutils
  12. rst=math varutils
  13. [require]
  14. rtl=0
  15. [defaults]
  16. defaulttarget=go32v2
  17. defaultcpu=i386
  18. [install]
  19. unitsubdir=rtl
  20. [dirs]
  21. fpcdir=.
  22. incdir=$(INC) $(PROCINC)
  23. targetdir=.
  24. [presettings]
  25. RTL=..
  26. INC=../inc
  27. PROCINC=../$(CPU_TARGET)
  28. UNITPREFIX=rtl
  29. # Paths
  30. OBJPASDIR=$(RTL)/objpas
  31. GRAPHDIR=$(INC)/graph
  32. # Insert exception handler in system unit
  33. ifdef EXCEPTIONS_IN_SYSTEM
  34. override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
  35. endif
  36. # Insert exception handler in system unit
  37. ifdef NO_EXCEPTIONS_IN_SYSTEM
  38. override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
  39. endif
  40. [postsettings]
  41. # Get the system independent include file names.
  42. # This will set the following variables :
  43. # SYSINCNAMES
  44. include $(INC)/makefile.inc
  45. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  46. # Get the processor dependent include file names.
  47. # This will set the following variables :
  48. # CPUINCNAMES
  49. include $(PROCINC)/makefile.cpu
  50. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  51. # Put system unit dependencies together.
  52. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  53. [rules]
  54. vpath %$(PASEXT) $(INC) $(PROCINC)
  55. #
  56. # Loaders
  57. #
  58. prt0$(OEXT) : v2prt0.as
  59. $(AS) -o prt0$(OEXT) v2prt0.as
  60. #
  61. # System Units (System, Objpas, Strings)
  62. #
  63. system$(PPUEXT) : system.pp $(SYSDEPS)
  64. $(COMPILER) -Us -Sg system.pp $(REDIR)
  65. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  66. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  67. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  68. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  69. system$(PPUEXT)
  70. #
  71. # System Dependent Units
  72. #
  73. go32$(PPUEXT) : go32.pp system$(PPUEXT)
  74. dpmiexcp$(PPUEXT) : dpmiexcp.pp exceptn$(OEXT) system$(PPUEXT)
  75. $(COMPILER) -Sg dpmiexcp.pp $(REDIR)
  76. initc$(PPUEXT) : initc.pp system$(PPUEXT)
  77. profile$(PPUEXT) : profile.pp dpmiexcp$(PPUEXT) go32$(PPUEXT)
  78. dxeload$(PPUEXT) : dxeload.pp system$(PPUEXT)
  79. emu387$(PPUEXT) : emu387.pp fpu$(OEXT) strings$(PPUEXT) dxeload$(PPUEXT) \
  80. dpmiexcp$(PPUEXT)
  81. ports$(PPUEXT) : ports.pp objpas$(PPUEXT) system$(PPUEXT)
  82. #
  83. # TP7 Compatible RTL Units
  84. #
  85. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
  86. go32$(PPUEXT) strings$(PPUEXT) system$(PPUEXT)
  87. crt$(PPUEXT) : crt.pp $(INC)/textrec.inc go32$(PPUEXT) system$(PPUEXT)
  88. objects$(PPUEXT) : $(INC)/objects.pp objinc.inc system$(PPUEXT)
  89. printer$(PPUEXT) : printer.pp system$(PPUEXT)
  90. #
  91. # Graph
  92. #
  93. include $(GRAPHDIR)/makefile.inc
  94. GRAPHINCDEPS=$(addprefix $(GRAPHDIR)/,$(GRAPHINCNAMES))
  95. graph$(PPUEXT) : graph.pp go32$(PPUEXT) ports$(PPUEXT) system$(PPUEXT) \
  96. $(GRAPHINCDEPS) vesa.inc vesah.inc dpmi.inc
  97. $(COMPILER) -I$(GRAPHDIR) graph.pp $(REDIR)
  98. #
  99. # Delphi Compatible Units
  100. #
  101. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
  102. objpas$(PPUEXT) dos$(PPUEXT) go32$(PPUEXT)
  103. $(COMPILER) -I$(OBJPASDIR) sysutils.pp $(REDIR)
  104. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  105. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  106. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  107. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  108. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  109. $(OBJPASDIR)/varutilh.inc varutils.pp
  110. $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
  111. #
  112. # Other system-independent RTL Units
  113. #
  114. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  115. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  116. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  117. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  118. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  119. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  120. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  121. #
  122. # Other system-dependent RTL Units
  123. #
  124. msmouse$(PPUEXT) : msmouse.pp system$(PPUEXT)