Makefile.fpc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # Makefile.fpc for Free Pascal SymbianOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. units=system uuchar objpas macpas iso7185 buildrtl
  8. implicitunits=ctypes strings \
  9. symbian
  10. [require]
  11. nortl=y
  12. [install]
  13. fpcpackage=y
  14. [default]
  15. fpcdir=../..
  16. target=symbian
  17. [compiler]
  18. includedir=$(INC) $(PROCINC)
  19. sourcedir=$(INC) $(PROCINC) $(COMMON)
  20. [prerules]
  21. RTL=..
  22. INC=$(RTL)/inc
  23. COMMON=$(RTL)/common
  24. PROCINC=$(RTL)/$(CPU_TARGET)
  25. SYMBIANINC=./symbianinc
  26. UIQINC=./uiqinc
  27. UNITPREFIX=rtl
  28. SYSTEMUNIT=system
  29. OBJPASDIR=$(RTL)/objpas
  30. [rules]
  31. .NOTPARALLEL:
  32. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  33. # Get the system independent include file names.
  34. # This will set the following variables :
  35. # SYSINCNAMES
  36. include $(INC)/makefile.inc
  37. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  38. # Get the processor dependent include file names.
  39. # This will set the following variables :
  40. # CPUINCNAMES
  41. include $(PROCINC)/makefile.cpu
  42. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  43. # Put system unit dependencies together.
  44. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  45. #
  46. # System Units (System, Objpas, Strings)
  47. #
  48. system$(PPUEXT) : system.pp $(SYSDEPS)
  49. $(COMPILER) -Us -Sg system.pp
  50. #
  51. # Unit specific rules
  52. #
  53. system$(PPUEXT) : system.pp $(SYSDEPS)
  54. $(COMPILER) -Us -Sg system.pp -Fi../win
  55. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  56. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  57. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  58. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  59. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  60. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) macpas$(PPUEXT)
  61. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(INC) -I$(SYMBIANINC) -I$(UIQINC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl