Makefile.fpc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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)/$(CPU_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  11. includedir=$(COMPILERDIR) $(COMPILERDIR)/$(CPU_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. # Add required defines
  26. override FPCOPT+=-dBrowserCol -dGDB
  27. ifeq ($(CPU_TARGET),i386)
  28. # the x86 dir doesn't hurt for 1.0.x though we could leave it away
  29. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  30. #-dSUPPORT_MMX
  31. endif
  32. ifeq ($(CPU_TARGET),x86_64)
  33. override FPCOPT+= -Fu$(COMPILERDIR)/x86 -dNOOPT
  34. endif
  35. ifeq ($(CPU_TARGET),powerpc)
  36. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  37. endif
  38. ifeq ($(CPU_TARGET),powerpc64)
  39. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  40. endif
  41. [rules]
  42. .NOTPARALLEL:
  43. .PHONY: compiler_ppuclean all clean install
  44. compiler_ppuclean:
  45. $(MAKE) -C $(COMPILERDIR) ppuclean
  46. all: compiler_ppuclean fpc_all
  47. clean: cleanall
  48. # Nothing to install
  49. install: