Makefile.fpc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. ppu$(PPUEXT): ppu.pas
  28. ppufiles$(EXEEXT): ppufiles.pp ppu$(PPUEXT)
  29. ppudump$(EXEEXT): ppudump.pp ppu$(PPUEXT)
  30. $(COMPILER) ppudump.pp -Fu../$(CPU_TARGET) -Fi..
  31. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  32. msg2inc$(EXEEXT): $(COMPILER_UNITTARGETDIR) msg2inc.pp
  33. fpcsubst$(EXEEXT): fpcsubst.pp usubst.pp
  34. fpcmkcfg$(EXEEXT): fpcmkcfg.pp usubst.pp fpccfg.inc fpcfg.inc fpini.inc
  35. ifneq ($(DATA2INC),)
  36. fpccfg.inc: fpc.cft
  37. $(DATA2INC) -b -s fpc.cft fpccfg.inc DefaultConfig
  38. fpcfg.inc : fpinc.cfg
  39. $(DATA2INC) -b -s fpinc.cfg fpcfg.inc fpcfg
  40. fpini.inc : fpinc.ini
  41. $(DATA2INC) -b -s fpinc.ini fpini.inc fpini
  42. endif
  43. #
  44. # Don't export some tools, which are found in the current dir if it's in
  45. # the path, so are not valid for the subdirs
  46. #
  47. unexport PPUFILES PPUMOVE