Makefile.fpc 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. [rules]
  36. .PHONY: compiler_ppuclean all clean install
  37. compiler_ppuclean:
  38. $(MAKE) -C $(COMPILERDIR) ppuclean
  39. all: compiler_ppuclean fpc_all
  40. clean: cleanall
  41. # Nothing to install
  42. install: