2
0

Makefile.fpc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #
  2. # Makefile.fpc for Go32v1 RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=prt0
  8. units=$(SYSTEMUNIT) objpas strings \
  9. go32 \
  10. dos crt objects printer \
  11. sysutils math typinfo \
  12. cpu mmx getopts heaptrc \
  13. msmouse
  14. [require]
  15. nortl=y
  16. [install]
  17. fpcpackage=y
  18. [default]
  19. fpcdir=../..
  20. target=go32v1
  21. cpu=i386
  22. [compiler]
  23. includedir=$(INC) $(PROCINC)
  24. sourcedir=$(INC) $(PROCINC)
  25. targetdir=.
  26. [prerules]
  27. RTL=..
  28. INC=../inc
  29. PROCINC=../$(CPU_TARGET)
  30. # Use new feature from 1.0.5 version
  31. # that generates release PPU files
  32. # which will not be recompiled
  33. ifdef RELEASE
  34. override FPCOPT+=-Ur
  35. endif
  36. # Paths
  37. OBJPASDIR=$(RTL)/objpas
  38. GRAPHDIR=$(INC)/graph
  39. # Define Go32v2 Units
  40. SYSTEMUNIT=system
  41. [rules]
  42. SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
  43. # Get the system independent include file names.
  44. # This will set the following variables :
  45. # SYSINCNAMES
  46. include $(INC)/makefile.inc
  47. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  48. # Get the processor dependent include file names.
  49. # This will set the following variables :
  50. # CPUINCNAMES
  51. include $(PROCINC)/makefile.cpu
  52. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  53. # Put system unit dependencies together.
  54. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  55. #
  56. # Loaders
  57. #
  58. prt0$(OEXT) : prt0.as
  59. $(AS) -o prt0$(OEXT) prt0.as
  60. #
  61. # Base Units (System, strings, os-dependent-base-unit)
  62. #
  63. system$(PPUEXT) : system.pp $(SYSDEPS)
  64. $(COMPILER) -Us -Sg system.pp
  65. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  66. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  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 objpas$(PPUEXT) system$(PPUEXT)
  74. #
  75. # TP7 Compatible RTL Units
  76. #
  77. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
  78. go32$(PPUEXT) strings$(PPUEXT) system$(PPUEXT)
  79. crt$(PPUEXT) : crt.pp $(INC)/textrec.inc go32$(PPUEXT) system$(PPUEXT)
  80. objects$(PPUEXT) : $(INC)/objects.pp objinc.inc system$(PPUEXT)
  81. printer$(PPUEXT) : printer.pp system$(PPUEXT)
  82. #
  83. # Delphi Compatible Units
  84. #
  85. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
  86. filutil.inc disk.inc objpas$(PPUEXT) dos$(PPUEXT) go32$(PPUEXT)
  87. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/sysutils.pp
  88. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  89. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  90. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  91. $(COMPILER) $(OBJPASDIR)/math.pp
  92. #
  93. # Other system-independent RTL Units
  94. #
  95. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  96. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  97. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  98. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  99. $(COMPILER) -Sg $(INC)/heaptrc.pp
  100. #
  101. # Other system-dependent RTL Units
  102. #
  103. msmouse$(PPUEXT) : msmouse.pp system$(PPUEXT)