Makefile.fpc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Makefile.fpc for Free Pascal Compiler Utils
  3. #
  4. [target]
  5. programs=fpc ppufiles ppudump ppumove fpcsubst mkarmins mkx86ins
  6. rst=fpcsubst
  7. [clean]
  8. units=ppu crc usubst
  9. [compiler]
  10. unitdir=..
  11. sourcedir=..
  12. [install]
  13. fpcpackage=y
  14. [require]
  15. tools=data2inc
  16. [default]
  17. fpcdir=../..
  18. [shared]
  19. build=n
  20. [rules]
  21. #
  22. # PPU Tools
  23. #
  24. # not parallel because systems using an external linker will get conflicts
  25. # due to overwriting each other's link.res file
  26. .NOTPARALLEL:
  27. ifndef NOCPUDEF
  28. ppu$(PPUEXT): ../ppu.pas
  29. $(MAKE) ppu$(PPUEXT) NOCPUDEF=1
  30. ppudump$(EXEEXT): ppudump.pp ppu$(PPUEXT)
  31. $(MAKE) ppudump$(EXEEXT) NOCPUDEF=1
  32. ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
  33. $(MAKE) ppufiles$(EXEEXT) NOCPUDEF=1
  34. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  35. $(MAKE) ppumove$(EXEEXT) NOCPUDEF=1
  36. else
  37. ppu$(PPUEXT): ../ppu.pas
  38. $(COMPILER) ../ppu.pas -Fu../generic -dGENERIC_CPU -Fi..
  39. ppudump$(EXEEXT): ppudump.pp ppu$(PPUEXT)
  40. $(COMPILER) ppudump.pp -Fu../generic -dGENERIC_CPU -Fi..
  41. ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
  42. $(COMPILER) ppufiles.pp -Fu../generic -dGENERIC_CPU -Fi..
  43. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  44. $(COMPILER) ppumove.pp -Fu../generic -dGENERIC_CPU -Fi..
  45. endif
  46. msg2inc$(EXEEXT): $(COMPILER_UNITTARGETDIR) msg2inc.pp
  47. fpcsubst$(EXEEXT): fpcsubst.pp usubst.pp
  48. fpcmkcfg$(EXEEXT): fpcmkcfg.pp usubst.pp fpccfg.inc fpcfg.inc fpini.inc
  49. ifneq ($(DATA2INC),)
  50. fpccfg.inc: fpc.cft
  51. $(DATA2INC) -b -s fpc.cft fpccfg.inc DefaultConfig
  52. fpcfg.inc : fpinc.cfg
  53. $(DATA2INC) -b -s fpinc.cfg fpcfg.inc fpcfg
  54. fpini.inc : fpinc.ini
  55. $(DATA2INC) -b -s fpinc.ini fpini.inc fpini
  56. endif
  57. #
  58. # Don't export some tools, which are found in the current dir if it's in
  59. # the path, so are not valid for the subdirs
  60. #
  61. unexport PPUFILES PPUMOVE