Makefile.fpc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Makefile.fpc for Free Pascal JVM (Embedded) RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=$(SYSTEMUNIT) uuchar objpas jdk15
  9. [require]
  10. nortl=y
  11. [install]
  12. fpcpackage=y
  13. [default]
  14. fpcdir=../..
  15. target=java
  16. [compiler]
  17. includedir=$(INC) $(PROCINC)
  18. sourcedir=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  19. [prerules]
  20. RTL=..
  21. INC=$(RTL)/inc
  22. COMMON=$(RTL)/common
  23. PROCINC=$(RTL)/$(CPU_TARGET)
  24. UNITPREFIX=rtl
  25. SYSTEMUNIT=system
  26. OBJPASDIR=../objpas
  27. ifdef RELEASE
  28. override FPCOPT+=-Ur
  29. endif
  30. CPU_UNITS=
  31. SYSINIT_UNITS=
  32. ifeq ($(ARCH),arm)
  33. CPU_UNITS=lpc21x4 at91sam7x256 stellaris stm32f103
  34. endif
  35. # Paths
  36. GRAPHDIR=$(INC)/graph
  37. [email protected]
  38. [rules]
  39. .NOTPARALLEL:
  40. .PHONY: installclasses
  41. installclasses:
  42. $(MKDIRTREE) $(INSTALL_UNITDIR)/org/freepascal/rtl
  43. ifdef inUnix
  44. $(INSTALL) $(subst $$,\$$, $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class)) $(INSTALL_UNITDIR)/org/freepascal/rtl
  45. else
  46. $(INSTALL) $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class) $(INSTALL_UNITDIR)/org/freepascal/rtl
  47. endif
  48. fpc_install: installclasses
  49. # Get the system independent include file names.
  50. # This will set the following variables :
  51. # SYSINCNAMES
  52. include $(INC)/makefile.inc
  53. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  54. # Get the processor dependent include file names.
  55. # This will set the following variables :
  56. # CPUINCNAMES
  57. include $(PROCINC)/makefile.cpu
  58. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  59. # Put system unit dependencies together.
  60. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  61. #
  62. # Base Units (System, strings, os-dependent-base-unit)
  63. #
  64. jdk15$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT) jdk15.inc jdk15.pas