Makefile.fpc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. [rules]
  50. .NOTPARALLEL:
  51. .PHONY: compiler_ppuclean all clean install
  52. compiler_ppuclean:
  53. $(MAKE) -C $(COMPILERDIR) ppuclean
  54. all: compiler_ppuclean fpc_all
  55. clean: cleanall
  56. # Nothing to install
  57. install: