diff options
author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-04-24 21:16:15 +0000 |
---|---|---|
committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2017-04-24 21:16:15 +0000 |
commit | 21d2fef56d6c604892238a829bff1521d13bfd97 (patch) | |
tree | 1d90eaca18c7b03dfbb1450a34861ac74fd4387f /tests/tstunits | |
parent | 9bd5c35d9ede5eaf772c05702980e8692f4babfa (diff) | |
download | fpc-21d2fef56d6c604892238a829bff1521d13bfd97.tar.gz |
Add testppudump rule in tests/tstunits directory
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@35943 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/tstunits')
-rw-r--r-- | tests/tstunits/Makefile.fpc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/tstunits/Makefile.fpc b/tests/tstunits/Makefile.fpc index 8abdb21a0f..88fc9bc84c 100644 --- a/tests/tstunits/Makefile.fpc +++ b/tests/tstunits/Makefile.fpc @@ -157,6 +157,40 @@ endif extra : erroru$(PPUEXT) ptest$(PPUEXT) popuperr$(PPUEXT) +##################################################################### +# PPU testing targets +##################################################################### + +PPULIST:=$(wildcard */*.ppu) $(wildcard units/*/*.ppu) +PPULOGLIST:=$(subst .ppu,.log-ppu,$(PPULIST)) +RMPPULOGLIST:=$(subst .ppu,.rm-log-ppu,$(PPULIST)) + +.PHONY : ppulogs cleanppulogs testppudump $(RMPPULOGLIST) + +ppulogs : $(PPULOGLIST) + +vpath %.ppu $(ALLPPUDIRS) +vpath %.log-ppu $(ALLPPUDIRS) +vpath %.rm-log-ppu $(ALLPPUDIRS) + +%.log-ppu : %.ppu ../../compiler/utils/ppudump$(EXEEXT) + ..$(PATHSEP)..$(PATHSEP)compiler$(PATHSEP)utils$(PATHSEP)ppudump -VA -M $< > $@ + +%.rm-log-ppu : %.ppu ../../compiler/utils/ppudump$(EXEEXT) + -$(RMPROG) $< + + +../../compiler/utils/ppudump$(EXEEXT): + $(MAKE) -C $(COMPILERDIR)/utils ppudump$(EXEEXT) + +ppuinfo : + echo PPU list is "$(PPULIST)" + echo PPULOG list is "$(PPULOGLIST)" + +cleanppulogs : $(RMPPULOGLIST) + +testppudump : + $(MAKE) cleanppulogs ppulogs ############################# # Main rules |