Makefile.fpc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. #
  2. # Makefile.fpc for Amiga RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=prt0
  8. units=system exec strings \
  9. dos crt objects printer \
  10. objpas macpas matrix \
  11. heaptrc lineinfo getopts graph \
  12. sysutils math typinfo ctypes
  13. rsts=math
  14. [require]
  15. nortl=y
  16. [install]
  17. fpcpackage=y
  18. [default]
  19. fpcdir=../..
  20. target=amiga
  21. cpu=m68k
  22. [compiler]
  23. includedir=$(INC) $(PROCINC)
  24. sourcedir=$(INC) $(PROCINC)
  25. [prerules]
  26. RTL=..
  27. INC=../inc
  28. PROCINC=../$(CPU_TARGET)
  29. PPUEXT=ppa
  30. ASMEXT=.asm
  31. UNITPREFIX=rtl
  32. # Use new feature from 1.0.5 version
  33. # that generates release PPU files
  34. # which will not be recompiled
  35. ifdef RELEASE
  36. ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
  37. ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
  38. override FPCOPT+=-Ur
  39. endif
  40. endif
  41. endif
  42. ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
  43. SYSTEMUNIT=system
  44. else
  45. SYSTEMUNIT=syslinux
  46. endif
  47. # Paths
  48. OBJPASDIR=$(RTL)/objpas
  49. GRAPHDIR=$(INC)/graph
  50. [rules]
  51. # Get the system independent include file names.
  52. # This will set the following variables :
  53. # SYSINCNAMES
  54. include $(INC)/makefile.inc
  55. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  56. # Get the processor dependent include file names.
  57. # This will set the following variables :
  58. # CPUINCNAMES
  59. include $(PROCINC)/makefile.cpu
  60. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  61. # Put system unit dependencies together.
  62. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  63. #
  64. # Loaders
  65. #
  66. prt0$(OEXT) : prt0$(LOADEREXT)
  67. -$(AS) prt0$(LOADEREXT) -o prt0$(OEXT)
  68. #gprt0$(OEXT) : $(GLOADERAS)
  69. # -$(AS) $(GLOADERAS) -o gprt0$(OEXT)
  70. #
  71. # Base Units (System, strings, os-dependent-base-unit)
  72. #
  73. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSLINUXDEPS) $(SYSDEPS)
  74. $(COMPILER) -ui386 -dm68k -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  75. strings$(PPUEXT) : ../template/strings.pp system$(PPUEXT)
  76. $(COMPILER) ../template/strings.pp $(REDIR)
  77. exec$(PPUEXT) : exec.pp exec.inc system$(PPUEXT)
  78. $(COMPILER) exec $(REDIR)
  79. #
  80. # Delphi Object Model
  81. #
  82. objpas$(PPUEXT) : $(OBJPASDIR)/objpas.pp system$(PPUEXT)
  83. $(COPY) $(OBJPASDIR)/objpas.pp .
  84. $(COMPILER) objpas $(REDIR)
  85. $(DEL) objpas.pp
  86. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp objpas$(PPUEXT) system$(PPUEXT)
  87. $(COPY) $(OBJPASDIR)/sysutils.pp .
  88. $(COMPILER) sysutils $(REDIR)
  89. #$(DEL) sysutils.pp
  90. #
  91. # Mac Pascal Model
  92. #
  93. macpas$(PPUEXT) : $(INC)/macpas.pp system$(PPUEXT)
  94. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  95. #
  96. # System Dependent Units
  97. #
  98. #
  99. # TP7 Compatible RTL Units
  100. #
  101. dos$(PPUEXT) : $(DOSDEPS) system$(PPUEXT)
  102. $(COMPILER) dos $(REDIR)
  103. crt$(PPUEXT) : crt.pp $(INC)/textrec.inc system$(PPUEXT)
  104. $(COMPILER) crt $(REDIR)
  105. printer$(PPUEXT) : printer.pp system$(PPUEXT)
  106. $(COMPILER) printer $(REDIR)
  107. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  108. $(COMPILER) $(INC)/objects.pp $(REDIR)
  109. #
  110. # Other RTL Units
  111. #
  112. getopts$(PPUEXT) : $(INC)/getopts.pp strings$(PPUEXT) system$(PPUEXT)
  113. $(COMPILER) $(INC)/getopts.pp $(REDIR)
  114. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  115. $(COMPILER) $(INC)/heaptrc.pp $(REDIR)
  116. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)
  117. $(COMPILER) $(INC)/ctypes.pp $(REDIR)
  118. #
  119. # $Log$
  120. # Revision 1.11 2005-01-10 20:32:34 hajny
  121. # + ctypes added
  122. #
  123. # Revision 1.10 2004/10/30 12:36:48 peter
  124. # * units are now created in separate directory units/cpu-os/
  125. # * distclean uses cleanall rule and removes units dir
  126. # * cross compile support fixed, it is now possible to cycle a ppcsparc
  127. # without deleting ppc386
  128. # * bintutilsperfix defaults to cpu-os-
  129. #
  130. # Revision 1.9 2004/08/25 16:57:22 olle
  131. # * fix so that macpas.pp really is compiled
  132. #
  133. # Revision 1.8 2004/08/16 16:22:17 olle
  134. # + Added unit macpas
  135. #
  136. # Revision 1.7 2004/07/07 21:37:29 daniel
  137. # * Matrix unit included in build process
  138. #
  139. # Revision 1.6 2004/05/06 22:01:17 florian
  140. # * changed extensions
  141. #
  142. # Revision 1.5 2004/05/06 21:12:41 florian
  143. # * changed extensions
  144. #
  145. #