Makefile.fpc 3.6 KB

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