Skip to content

Commit f047cee

Browse files
author
H. Peter Anvin
committed
test/Makefile: add .bin{16,32,64} targets
Quick and easy way to run the same test for 16-, 32- and 64-bit output without mixing them together in one binary output file. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent fa43d8e commit f047cee

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/Makefile.in

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@SET_MAKE@
22

3-
.SUFFIXES: .bin .bin32 .bin64 .o .o64 .aout .aoutb .obj .obj64 \
4-
.exe .asm .lst .pl
3+
.SUFFIXES: .bin .bin16 .bin32 .bin64 .o .o64 .aout .aoutb .obj .obj64 \
4+
.mo32 .mo64 .dbg .i .od .ox .ith .srec .exe .lst \
5+
.asm .pl
56

67
# Binary suffixes
78
O = @OBJEXT@
@@ -37,8 +38,14 @@ x264test:
3738
%.bin: %.asm $(NASM)
3839
$(NASM) $(NASMOPT) -f bin -o $@ -MD $@.dep -l $@.lst $<
3940

41+
%.bin16: %.asm $(NASM)
42+
$(NASM) --bits 16 $(NASMOPT) -f bin -o $@ -MD $@.dep -l $@.lst $<
43+
4044
%.bin32: %.asm $(NASM)
45+
$(NASM) --bits 32 $(NASMOPT) -f bin -o $@ -MD $@.dep -l $@.lst $<
4146

47+
%.bin64: %.asm $(NASM)
48+
$(NASM) --bits 64 $(NASMOPT) -f bin -o $@ -MD $@.dep -l $@.lst $<
4249

4350
%.ith: %.asm $(NASM)
4451
$(NASM) $(NASMOPT) -f ith -o $@ -MD $@.dep -l $@.lst $<
@@ -107,6 +114,7 @@ diff: performtest.pl $(NASM) $(TESTS)
107114

108115
clean:
109116
$(RM_F) *.com *.o *.o64 *.aout *.obj *.win32 *.win64 *.exe *.lst *.bin
117+
$(RM_F) *.bin *.bin16 *.bin32 *.bin64
110118
$(RM_F) *.dbg *.coff *.ith *.srec *.mo32 *.mo64 *.i *.dep *.rdf
111119
$(RM_F) *.aoutb
112120
$(RM_RF) testresults

0 commit comments

Comments
 (0)