diff --git a/compiler/Makefile b/compiler/Makefile index ee3e89a60c..34f57b8c6d 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -496,6 +496,14 @@ endif NOCPUDEF=1 MSGFILE=msg/error$(FPCLANG).msg SVNVERSION:=$(firstword $(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))) +PPUDUMPPROG:=$(firstword $(strip $(wildcard $(addsuffix /ppudump$(SRCEXEEXT),$(SEARCHPATH))))) +ifndef PPUDUMP +ifdef PPUDUMPPROG +PPUDUMP=$(PPUDUMPPROG) +else +PPUDUMP=ppudump +endif +endif REVINC:=$(wildcard revision.inc) ifneq ($(REVINC),) override LOCALOPT+=-dREVINC @@ -4568,7 +4576,6 @@ endif endif endif else -cycle: override FPC= cycle: ifdef NEED_G_COMPILERS $(MAKE) fpcmade.generate_g_compilers @@ -4693,7 +4700,7 @@ rtlppulogs : $(RTLPPULOGLIST) vpath %.ppu $(PPUDIR) $(RTLPPUDIR) $(ALLPPUDIR) vpath %.log-ppu $(PPUDIR) $(RTLPPUDIR) $(ALLPPUDIR) %.log-ppu : %.ppu - ppudump -VA -M $< > $@ + $(PPUDUMP) -VA -M $< > $@ ./utils/ppudump$(EXEEXT): $(MAKE) -C $(COMPILERUTILSDIR) ppudump$(EXEEXT) ppuinfo : diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 886d0e62ce..d33ce704ca 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -235,6 +235,15 @@ MSGFILE=msg/error$(FPCLANG).msg SVNVERSION:=$(firstword $(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))) +PPUDUMPPROG:=$(firstword $(strip $(wildcard $(addsuffix /ppudump$(SRCEXEEXT),$(SEARCHPATH))))) +ifndef PPUDUMP +ifdef PPUDUMPPROG +PPUDUMP=$(PPUDUMPPROG) +else +PPUDUMP=ppudump +endif +endif + # Check if revision.inc is present REVINC:=$(wildcard revision.inc) ifneq ($(REVINC),) @@ -919,7 +928,7 @@ else # ppc3/ppcXXX = native (skipped for cross installation) # -cycle: override FPC= +#cycle: override FPC= cycle: ifdef NEED_G_COMPILERS $(MAKE) fpcmade.generate_g_compilers @@ -1121,7 +1130,7 @@ vpath %.log-ppu $(PPUDIR) $(RTLPPUDIR) $(ALLPPUDIR) # Use installed ppudump %.log-ppu : %.ppu - ppudump -VA -M $< > $@ + $(PPUDUMP) -VA -M $< > $@ ./utils/ppudump$(EXEEXT):