Makefile.fpc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #
  2. # Makefile.fpc for Free Pascal OS/2 RTL
  3. #
  4. [targets]
  5. loaders=prt0 prt1 code2 code3
  6. units=$(SYSTEMUNIT) objpas strings \
  7. ports os2def doscalls moncalls kbdcalls moucalls viocalls \
  8. pmbitmap pmwin pmgpi dive \
  9. dos crt objects printer \
  10. sysutils math typinfo varutils \
  11. ucomplex cpu mmx getopts heaptrc lineinfo dynlibs
  12. rst=math
  13. [require]
  14. rtl=0
  15. [defaults]
  16. defaulttarget=os2
  17. defaultcpu=i386
  18. [install]
  19. unitsubdir=rtl
  20. [dirs]
  21. fpcdir=.
  22. incdir=$(INC) $(PROCINC)
  23. targetdir=.
  24. [presettings]
  25. RTL=..
  26. INC=$(RTL)/inc
  27. PROCINC=$(RTL)/$(CPU_TARGET)
  28. UNITPREFIX=rtl
  29. # Paths
  30. OBJPASDIR=$(RTL)/objpas
  31. GRAPHDIR=$(INC)/graph
  32. # Define Go32v2 Units
  33. SYSTEMUNIT=sysos2
  34. [postsettings]
  35. SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
  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. [rules]
  49. vpath %.pas $(INC) $(PROCINC)
  50. vpath %.pp $(INC) $(PROCINC)
  51. #
  52. # Loaders
  53. #
  54. %$(OEXT) : %.as
  55. $(AS) -o $*$(OEXT) $*.as
  56. #
  57. # Base Units (System, strings, os-dependent-base-unit)
  58. #
  59. $(SYSTEMPPU) : sysos2.pas $(SYSDEPS)
  60. $(COMPILER) -Us -Sg sysos2.pas $(REDIR)
  61. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMPPU)
  62. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  63. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  64. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  65. $(SYSTEMPPU)
  66. #
  67. # System Dependent Units
  68. #
  69. ports$(PPUEXT) : ports.pas objpas$(PPUEXT) $(SYSTEMPPU)
  70. doscalls$(PPUEXT) : doscalls.pas strings$(PPUEXT) objects$(PPUEXT) $(SYSTEMPPU)
  71. kbdcalls$(PPUEXT) : kbdcalls.pas $(SYSTEMPPU)
  72. moucalls$(PPUEXT) : moucalls.pas $(SYSTEMPPU)
  73. moncalls$(PPUEXT) : moncalls.pas strings$(PPUEXT) $(SYSTEMPPU)
  74. os2def$(PPUEXT) : os2def.pas $(SYSTEMPPU)
  75. pmwin$(PPUEXT) : pmwin.pas os2def$(PPUEXT) $(SYSTEMPPU)
  76. pmbitmap$(PPUEXT) : pmbitmap.pas $(SYSTEMPPU)
  77. pmgpi$(PPUEXT) : pmgpi.pas pmbitmap$(PPUEXT) $(SYSTEMPPU)
  78. dive$(PPUEXT) : dive.pas os2def$(PPUEXT) pmwin$(PPUEXT) $(SYSTEMPPU)
  79. dynlibs$(PPUEXT) : $(INC)/dynlibs.pp doscalls$(PPUEXT) $(SYSTEMPPU)
  80. #
  81. # TP7 Compatible RTL Units
  82. #
  83. dos$(PPUEXT) : dos.pas $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  84. doscalls$(PPUEXT) $(SYSTEMPPU)
  85. crt$(PPUEXT) : crt.pas $(INC)/textrec.inc $(SYSTEMPPU)
  86. objects$(PPUEXT) : $(INC)/objects.pp objinc.inc $(SYSTEMPPU)
  87. printer$(PPUEXT) : printer.pas $(INC)/textrec.inc $(SYSTEMPPU)
  88. #graph$(PPUEXT) : graph.pp
  89. #
  90. # Delphi Compatible Units
  91. #
  92. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
  93. objpas$(PPUEXT) dos$(PPUEXT) doscalls$(PPUEXT)
  94. $(COMPILER) -I$(OBJPASDIR) sysutils.pp $(REDIR)
  95. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  96. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  97. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  98. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  99. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  100. $(OBJPASDIR)/varutilh.inc varutils.pp
  101. $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
  102. #
  103. # Other system-independent RTL Units
  104. #
  105. ucomplex$(PPUEXT): $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMPPU)
  106. cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMPPU)
  107. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) $(SYSTEMPPU)
  108. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMPPU)
  109. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMPPU)
  110. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  111. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMPPU)
  112. #
  113. # Other system-dependent RTL Units
  114. #