Makefile.fpc 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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+= -Fu$(COMPILERDIR)/x86
  29. #-dSUPPORT_MMX
  30. endif
  31. [rules]
  32. .PHONY: compiler_ppuclean all clean install
  33. compiler_ppuclean:
  34. $(MAKE) -C $(COMPILERDIR) ppuclean
  35. all: compiler_ppuclean fpc_all
  36. clean: cleanall
  37. # Nothing to install
  38. install: