Makefile.fpc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # Makefile.fpc for Free Pascal GBA RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=$(LOADERS)
  8. units=$(SYSTEMUNIT) $(UUCHARUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \
  9. $(SORTBASEUNIT) $(SYSUTILSUNIT) \
  10. $(CLASSESUNIT) $(MATHUNIT) $(TYPINFOUNIT) $(CTYPESUNIT) \
  11. $(CHARSETUNIT) $(CPALLUNIT) $(GETOPTSUNIT) \
  12. $(FPWIDESTRINGUNIT) $(CHARACTERUNIT) \
  13. $(TYPESUNIT) $(SYSCONSTUNIT) $(RTLCONSTSUNIT) $(LINEINFOUNIT) $(FGLUNIT)
  14. #rsts=$(MATHUNIT) $(RTLCONSTSUNIT) $(TYPINFOUNIT) $(CLASSESUNIT) $(SYSCONSTUNIT) $(UNICODEDATAUNIT)
  15. implicitunits=$(CP_UNITS) $(UNICODEDATAUNIT)
  16. [require]
  17. nortl=y
  18. [install]
  19. fpcpackage=y
  20. [default]
  21. target=gba
  22. cpu=arm
  23. [compiler]
  24. includedir=$(INC) $(PROCINC)
  25. sourcedir=$(INC) $(PROCINC) $(COMMON)
  26. [prerules]
  27. RTL=..
  28. INC=$(RTL)/inc
  29. COMMON=$(RTL)/common
  30. PROCINC=$(RTL)/$(CPU_TARGET)
  31. UNITPREFIX=rtl
  32. LOADERS=prt0 cprt0
  33. # Paths
  34. OBJPASDIR=$(RTL)/objpas
  35. SYSUTILS_DEPS_OS=$(DOSUNIT)$(PPUEXT)
  36. ifeq ($(ARCH),arm)
  37. CPU_UNITS=$(INTRINSICSUNIT)
  38. endif
  39. [rules]
  40. .NOTPARALLEL:
  41. # Get the system independent include file names.
  42. # This will set the following variables :
  43. # SYSINCNAMES
  44. include $(INC)/makefile.inc
  45. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  46. # Get the processor dependent include file names.
  47. # This will set the following variables :
  48. # CPUINCNAMES
  49. include $(PROCINC)/makefile.cpu
  50. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  51. # Put system unit dependencies together.
  52. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  53. #
  54. # Loaders
  55. #
  56. prt0$(OEXT) : prt0.as
  57. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) prt0.as
  58. cprt0$(OEXT) : cprt0.as
  59. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) cprt0.as