1 .SUFFIXES
: .bin .o .o64 .obj .obj64 .exe .asm .lst .pl
4 NASMOPT
= -Ox
-I..
/misc
6 TESTS
= $(wildcard *.asm
)
9 $(NASM
) $(NASMOPT
) -f bin
-o
$@
-l
$*.lst
$<
12 $(NASM
) $(NASMOPT
) -f elf32
-o
$@
-l
$*.lst
$<
15 $(NASM
) $(NASMOPT
) -f elf64
-o
$@
-l
$*.lst
$<
18 $(NASM
) $(NASMOPT
) -f win32
-o
$@
-l
$*.lst
$<
20 %.obj64
: %.asm
$(NASM
)
21 $(NASM
) $(NASMOPT
) -f win64
-o
$@
-l
$*.lst
$<
28 golden
: performtest.pl
$(TESTS
)
29 $(PERL
) performtest.pl
--golden
--nasm
='$(NASM)' $(TESTS
)
31 test: performtest.pl
$(NASM
) $(TESTS
)
32 $(PERL
) performtest.pl
--nasm
='$(NASM)' $(TESTS
)
34 diff
: performtest.pl
$(NASM
) $(TESTS
)
35 $(PERL
) performtest.pl
--diff
--nasm
='$(NASM)' $(TESTS
)
38 rm -f
*.com
*.o
*.o64
*.obj
*.obj64
*.exe
*.lst
*.bin