Makefile.fpc 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Makefile.fpc for Compiler units for IDE inclusion
  3. #
  4. [target]
  5. units=compunit
  6. [compiler]
  7. options=-Ur
  8. targetdir=.
  9. unitdir=$(COMPILERDIR) $(COMPILERDIR)/$(CPU_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  10. includedir=$(COMPILERDIR) $(COMPILERDIR)/$(CPU_TARGET)
  11. [install]
  12. fpcpackage=y
  13. [default]
  14. fpcdir=../..
  15. [prerules]
  16. COMPILERDIR=$(FPCDIR)/compiler
  17. # Use 1.0.2 and 1.0.4 require -Ca to generate simple ppu
  18. ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
  19. override FPCOPT+=-Ca
  20. endif
  21. ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
  22. override FPCOPT+=-Ca
  23. endif
  24. # Add required defines
  25. override FPCOPT+=-dBrowserCol -dGDB
  26. ifeq ($(CPU_TARGET),i386)
  27. # the x86 dir doesn't hurt for 1.0.x though we could leave it away
  28. override FPCOPT+=-dSUPPORT_MMX -Fu$(COMPILERDIR)/x86
  29. endif
  30. [rules]
  31. .PHONY: compiler_ppuclean all clean install
  32. compiler_ppuclean:
  33. $(MAKE) -C $(COMPILERDIR) ppuclean
  34. all: compiler_ppuclean fpc_all
  35. clean: cleanall
  36. # Nothing to install
  37. install: