test/Makefile: add rule to generate preprocessor output

Add a rule in the test directory to run the preprocessor.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2016-10-04 14:56:37 -07:00
parent e93572e6be
commit 76c49379b7

View file

@ -47,6 +47,9 @@ $(NASM):
%.asm: %.pl
$(PERL) $< > $@
%.i: %.asm $(NASM)
$(NASM) $(NASMOPT) -E -o $@ $<
all:
golden: performtest.pl $(TESTS)
@ -60,7 +63,7 @@ diff: performtest.pl $(NASM) $(TESTS)
clean:
rm -f *.com *.o *.o64 *.obj *.win32 *.win64 *.exe *.lst *.bin
rm -f *.dbg *.coff *.ith *.srec *.mo32 *.mo64
rm -f *.dbg *.coff *.ith *.srec *.mo32 *.mo64 *.i
rm -rf testresults
rm -f elftest elftest64