Makefile.fpc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. target=java
  15. [compiler]
  16. includedir=$(INC) $(PROCINC)
  17. sourcedir=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  18. [prerules]
  19. RTL=..
  20. INC=$(RTL)/inc
  21. COMMON=$(RTL)/common
  22. PROCINC=$(RTL)/$(CPU_TARGET)
  23. UNITPREFIX=rtl
  24. SYSTEMUNIT=system
  25. OBJPASDIR=../objpas
  26. ifdef RELEASE
  27. override FPCOPT+=-Ur
  28. endif
  29. CPU_UNITS=
  30. SYSINIT_UNITS=
  31. ifeq ($(ARCH),arm)
  32. CPU_UNITS=lpc21x4 at91sam7x256 stellaris stm32f103
  33. endif
  34. # Paths
  35. [email protected]
  36. [rules]
  37. .NOTPARALLEL:
  38. .PHONY: installclasses
  39. installclasses:
  40. $(MKDIRTREE) $(INSTALL_UNITDIR)/org/freepascal/rtl
  41. ifdef inUnix
  42. $(INSTALL) $(subst $$,\$$, $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class)) $(INSTALL_UNITDIR)/org/freepascal/rtl
  43. else
  44. $(INSTALL) $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class) $(INSTALL_UNITDIR)/org/freepascal/rtl
  45. endif
  46. fpc_install: installclasses
  47. # Get the system independent include file names.
  48. # This will set the following variables :
  49. # SYSINCNAMES
  50. include $(INC)/makefile.inc
  51. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  52. # Get the processor dependent include file names.
  53. # This will set the following variables :
  54. # CPUINCNAMES
  55. include $(PROCINC)/makefile.cpu
  56. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  57. # Put system unit dependencies together.
  58. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  59. #
  60. # Base Units (System, strings, os-dependent-base-unit)
  61. #
  62. jdk15$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT) jdk15.inc jdk15.pas