Makefile.fpc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. #
  2. # Makefile.fpc for Free Pascal WinCE RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders= prt0
  8. units=$(SYSTEMUNIT) ctypes objpas macpas strings \
  9. lineinfo heaptrc \
  10. windows messages dynlibs \
  11. dos objects \
  12. rtlconsts sysconst sysutils \
  13. typinfo types classes \
  14. strutils convutils math dateutils \
  15. varutils variants \
  16. matrix ucomplex \
  17. charset getopts winsock sockets
  18. # initc cmem signals \
  19. # crt graph \
  20. # wincrt winmouse winevent printer \
  21. # video mouse keyboard \
  22. # winsysut fpmkunit
  23. # rsts=math varutils typinfo variants classes dateutils sysconst fpmkunit
  24. [require]
  25. nortl=y
  26. [install]
  27. fpcpackage=y
  28. [default]
  29. fpcdir=../..
  30. target=palmos
  31. [compiler]
  32. includedir=$(INC) $(PROCINC) $(RTL)/palmos
  33. sourcedir=$(INC) $(PROCINC) $(COMMON)
  34. [prerules]
  35. # Where are the include files
  36. RTL=..
  37. INC=$(RTL)/inc
  38. COMMON=$(RTL)/common
  39. PROCINC=$(RTL)/$(CPU_TARGET)
  40. UNITPREFIX=rtl
  41. SYSTEMUNIT=system
  42. PRT0=prt0
  43. # Use new feature from 1.0.5 version
  44. # that generates release PPU files
  45. # which will not be recompiled
  46. ifdef RELEASE
  47. override FPCOPT+=-Ur
  48. endif
  49. # Paths
  50. OBJPASDIR=$(RTL)/objpas
  51. GRAPHDIR=$(INC)/graph
  52. [rules]
  53. SYSTEMPPU=syspalm.ppu
  54. # Get the system independent include file names.
  55. # This will set the following variables :
  56. # SYSINCNAMES
  57. include $(INC)/makefile.inc
  58. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  59. # Get the processor dependent include file names.
  60. # This will set the following variables :
  61. # CPUINCNAMES
  62. include $(PROCINC)/makefile.cpu
  63. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  64. # Put system unit dependencies together.
  65. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  66. #
  67. # Loaders
  68. #
  69. $(PRT0)$(OEXT) : $(CPU_TARGET)/$(PRT0).as
  70. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)$(PRT0)$(OEXT) $(CPU_TARGET)/$(PRT0).as
  71. #
  72. # System Units (System, Objpas, Strings)
  73. #
  74. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  75. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp
  76. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  77. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  78. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
  79. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
  80. $(SYSTEMUNIT)$(PPUEXT)
  81. #
  82. # System Dependent Units
  83. #
  84. #
  85. # TP7 Compatible RTL Units
  86. #
  87. #dos$(PPUEXT) : $(DOSDEPS) $(SYSTEMPPU)
  88. # $(PP) $(OPT) dos $(REDIR)
  89. #crt$(PPUEXT) : crt.pp $(INC)/textrec.inc $(INC)/filerec.inc $(SYSTEMPPU)
  90. # $(PP) $(OPT) crt $(REDIR)
  91. #objects$(PPUEXT) : $(INC)/objects.pp objinc.inc $(SYSTEMPPU)
  92. # $(COPY) $(INC)/objects.pp .
  93. # $(PP) $(OPT) objects $(REDIR)
  94. # $(DEL) objects.pp
  95. #
  96. # Other system-independent RTL Units
  97. #
  98. #####################################################################
  99. # Libs
  100. #####################################################################
  101. staticlib:
  102. make clean
  103. make all SMARTLINK=YES LIBNAME=fpc LIBTYPE=static
  104. sharedlib:
  105. make clean
  106. make all
  107. $(PPUMOVE) -o fpc $(SHAREDLIBFILES)
  108. staticlibinstall: staticlib
  109. $(MKDIR) $(STATIC_LIBINSTALLDIR)
  110. $(MKDIR) $(STATIC_UNITINSTALLDIR)
  111. $(INSTALLEXE) libfpc$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
  112. $(INSTALL) *$(PPUEXT) *$(OEXT) $(STATIC_UNITINSTALLDIR)
  113. sharedlibinstall: sharedlib
  114. $(MKDIR) $(SHARED_LIBINSTALLDIR)
  115. $(MKDIR) $(SHARED_UNITINSTALLDIR)
  116. $(INSTALLEXE) libfpc$(SHAREDLIBEXT) $(SHARED_LIBINSTALLDIR)
  117. $(INSTALL) *$(PPUEXT) *$(OEXT) $(SHARED_UNITINSTALLDIR)
  118. ldconfig
  119. libinstall: staticlibinstall sharedlibinstall
  120. libsclean : clean
  121. -$(DEL) *$(SMARTLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)