Makefile.fpc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #
  2. # Makefile.fpc for Free Pascal SymbianOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. units=system objpas macpas 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. OBJPASDIR=$(RTL)/objpas
  29. [rules]
  30. .NOTPARALLEL:
  31. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  32. # Get the system independent include file names.
  33. # This will set the following variables :
  34. # SYSINCNAMES
  35. include $(INC)/makefile.inc
  36. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  37. # Get the processor dependent include file names.
  38. # This will set the following variables :
  39. # CPUINCNAMES
  40. include $(PROCINC)/makefile.cpu
  41. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  42. # Put system unit dependencies together.
  43. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  44. #
  45. # System Units (System, Objpas, Strings)
  46. #
  47. system$(PPUEXT) : system.pp $(SYSDEPS)
  48. $(COMPILER) -Us -Sg system.pp
  49. #
  50. # Unit specific rules
  51. #
  52. system$(PPUEXT) : system.pp $(SYSDEPS)
  53. $(COMPILER) -Us -Sg system.pp -Fi../win
  54. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  55. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  56. macpas$(PPUEXT) : $(INC)/macpas.pp system$(PPUEXT)
  57. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  58. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) macpas$(PPUEXT)
  59. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(INC) -I$(SYMBIANINC) -I$(UIQINC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl