Makefile.fpc 3.0 KB

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