Makefile.fpc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. GRAPHDIR=$(INC)/graph
  36. [email protected]
  37. [rules]
  38. .NOTPARALLEL:
  39. .PHONY: installclasses
  40. installclasses:
  41. $(MKDIRTREE) $(INSTALL_UNITDIR)/org/freepascal/rtl
  42. ifdef inUnix
  43. $(INSTALL) $(subst $$,\$$, $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class)) $(INSTALL_UNITDIR)/org/freepascal/rtl
  44. else
  45. $(INSTALL) $(wildcard $(UNITTARGETDIRPREFIX)/org/freepascal/rtl/*.class) $(INSTALL_UNITDIR)/org/freepascal/rtl
  46. endif
  47. fpc_install: installclasses
  48. # Get the system independent include file names.
  49. # This will set the following variables :
  50. # SYSINCNAMES
  51. include $(INC)/makefile.inc
  52. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  53. # Get the processor dependent include file names.
  54. # This will set the following variables :
  55. # CPUINCNAMES
  56. include $(PROCINC)/makefile.cpu
  57. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  58. # Put system unit dependencies together.
  59. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  60. #
  61. # Base Units (System, strings, os-dependent-base-unit)
  62. #
  63. jdk15$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT) jdk15.inc jdk15.pas