Makefile.fpc 959 B

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