From b4b43178783e963e95fb290e82f1a0c6d6725520 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 19 Sep 2007 16:15:22 -0700 Subject: [PATCH] test/Makefile: make a bit more useful --- test/Makefile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index bdb55a6..f48e3d9 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,2 +1,23 @@ +.SUFFIXES: .bin .o .o64 .obj .obj64 .exe .asm .lst + +NASM = ../nasm + +.asm.bin: + $(NASM) -f bin -o $@ -l $*.lst $< + +.asm.o: + $(NASM) -f elf32 -o $@ -l $*.lst $< + +.asm.o64: + $(NASM) -f elf64 -o $@ -l $*.lst $< + +.asm.obj: + $(NASM) -f win32 -o $@ -l $*.lst $< + +.asm.obj64: + $(NASM) -f win64 -o $@ -l $*.lst $< + +all: + clean: - rm -f *test *.com *.o *.obj *so *.exe + rm -f *.com *.o *.o64 *.obj *.obj64 *.exe *.lst -- 2.7.4