Makefile.fpc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # Makefile.fpc for Free Pascal JVM (Embedded) RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=$(SYSTEMUNIT) $(UUCHARUNIT) $(OBJPASUNIT) 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. OBJPASDIR=.
  25. ifdef RELEASE
  26. override FPCOPT+=-Ur
  27. endif
  28. CPU_UNITS=
  29. SYSINIT_UNITS=
  30. ifeq ($(ARCH),arm)
  31. CPU_UNITS=lpc21x4 at91sam7x256 stellaris stm32f103
  32. endif
  33. # Paths
  34. override FPC_SYSTEM_OPT += @rtl.cfg
  35. [rules]
  36. .NOTPARALLEL:
  37. .PHONY: installclasses
  38. installclasses:
  39. $(MKDIRTREE) $(INSTALL_UNITDIR)/org/freepascal/rtl
  40. ifdef inUnix
  41. $(INSTALL) $(subst $$,\$$, $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class)) $(INSTALL_UNITDIR)/org/freepascal/rtl
  42. else
  43. $(INSTALL) $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class) $(INSTALL_UNITDIR)/org/freepascal/rtl
  44. endif
  45. fpc_install: installclasses
  46. # Get the system independent include file names.
  47. # This will set the following variables :
  48. # SYSINCNAMES
  49. include $(INC)/makefile.inc
  50. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  51. # Get the processor dependent include file names.
  52. # This will set the following variables :
  53. # CPUINCNAMES
  54. include $(PROCINC)/makefile.cpu
  55. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  56. # Put system unit dependencies together.
  57. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  58. #
  59. # Base Units (System, strings, os-dependent-base-unit)
  60. #
  61. jdk15$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) jdk15.inc jdk15.pas