Makefile.fpc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # Makefile.fpc for Compiler units for IDE inclusion
  3. #
  4. [package]
  5. main=ide
  6. [target]
  7. units=compunit
  8. [compiler]
  9. options=-Ur -dNOCATCH
  10. unitdir=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  11. includedir=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  12. [install]
  13. fpcpackage=y
  14. [default]
  15. fpcdir=../..
  16. [prerules]
  17. COMPILERDIR=$(FPCDIR)/compiler
  18. # Use 1.0.2 and 1.0.4 require -Ca to generate simple ppu
  19. ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
  20. override FPCOPT+=-Ca
  21. endif
  22. ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
  23. override FPCOPT+=-Ca
  24. endif
  25. # set default value for PPC_TARGET
  26. ifndef PPC_TARGET
  27. PPC_TARGET=$(CPU_TARGET)
  28. endif
  29. # do not add -d$(CPU_TARGET)
  30. override NOCPUDEF=1
  31. # Use PPC_TARGET instead
  32. override FPCOPT+= -d$(PPC_TARGET)
  33. # Add required defines
  34. override FPCOPT+=-dBrowserCol -dGDB
  35. ifeq ($(PPC_TARGET),i386)
  36. # the x86 dir doesn't hurt for 1.0.x though we could leave it away
  37. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  38. #-dSUPPORT_MMX
  39. endif
  40. ifeq ($(PPC_TARGET),x86_64)
  41. override FPCOPT+= -Fu$(COMPILERDIR)/x86 -dNOOPT
  42. endif
  43. ifeq ($(PPC_TARGET),powerpc)
  44. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  45. endif
  46. ifeq ($(PPC_TARGET),powerpc64)
  47. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  48. endif
  49. # mipsel specific
  50. ifeq ($(PPC_TARGET),mipsel)
  51. override FPCOPT+= -Fu$(COMPILERDIR)/mips
  52. endif
  53. [rules]
  54. .NOTPARALLEL:
  55. .PHONY: compiler_ppuclean all clean install
  56. compiler_ppuclean:
  57. $(MAKE) -C $(COMPILERDIR) ppuclean
  58. all: compiler_ppuclean fpc_all
  59. clean: cleanall
  60. # Nothing to install
  61. install: