Makefile.fpc 4.4 KB

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