Makefile.fpc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #
  2. # Makefile.fpc for Free Pascal Compiler Utils
  3. #
  4. [target]
  5. programs=fpc ppufiles ppudump ppumove mka64ins mkarmins mkx86ins
  6. rst=fpcsubst
  7. [clean]
  8. units=ppu crc
  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. REG_SOURCES=$(wildcard *reg.pp)
  28. REG_EXES=$(subst .pp,$(EXEEXT),$(REG_SOURCES))
  29. ifndef NOCPUDEF
  30. ppu$(PPUEXT): ../ppu.pas
  31. $(MAKE) ppu$(PPUEXT) NOCPUDEF=1
  32. ppudump$(EXEEXT): ppuutils/ppudump.pp ppu$(PPUEXT)
  33. $(MAKE) ppudump$(EXEEXT) NOCPUDEF=1
  34. ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
  35. $(MAKE) ppufiles$(EXEEXT) NOCPUDEF=1
  36. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  37. $(MAKE) ppumove$(EXEEXT) NOCPUDEF=1
  38. else
  39. ppu$(PPUEXT): ../ppu.pas
  40. $(COMPILER) ../ppu.pas -Fu../generic -dGENERIC_CPU -Fi..
  41. ppudump$(EXEEXT): ppuutils/ppudump.pp ppu$(PPUEXT)
  42. $(COMPILER) ppuutils/ppudump.pp -Fu../generic -dGENERIC_CPU -Fi..
  43. ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
  44. $(COMPILER) ppufiles.pp -Fu../generic -dGENERIC_CPU -Fi..
  45. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  46. $(COMPILER) ppumove.pp -Fu../generic -dGENERIC_CPU -Fi..
  47. endif
  48. msg2inc$(EXEEXT): $(COMPILER_UNITTARGETDIR) msg2inc.pp
  49. gppc386$(EXEEXT): $(COMPILER_UNITTARGETDIR) gppc386.pp
  50. fpcsubst$(EXEEXT): fpcsubst.pp usubst.pp
  51. fpcmkcfg$(EXEEXT): fpcmkcfg.pp usubst.pp fpccfg.inc fpcfg.inc fpini.inc
  52. ifneq ($(DATA2INC),)
  53. fpccfg.inc: fpc.cft
  54. $(DATA2INC) -b -s fpc.cft fpccfg.inc DefaultConfig
  55. fpcfg.inc : fpinc.cfg
  56. $(DATA2INC) -b -s fpinc.cfg fpcfg.inc fpcfg
  57. fpini.inc : fpinc.ini
  58. $(DATA2INC) -b -s fpinc.ini fpini.inc fpini
  59. endif
  60. reg_exes: $(COMPILER_UNITTARGETDIR)
  61. $(MAKE) $(REG_EXES)
  62. #
  63. # Don't export some tools, which are found in the current dir if it's in
  64. # the path, so are not valid for the subdirs
  65. #
  66. unexport PPUFILES PPUMOVE