nasm/test/Makefile

29 lines
556 B
Makefile
Raw Normal View History

.SUFFIXES: .bin .o .o64 .obj .obj64 .exe .asm .lst .pl
2007-09-20 07:15:22 +08:00
NASM = ../nasm
2007-09-25 04:42:09 +08:00
NASMOPT = -O999 -I../misc
PERL = perl
2007-09-20 07:15:22 +08:00
%.bin: %.asm $(NASM)
2007-09-25 04:42:09 +08:00
$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
2007-09-20 07:15:22 +08:00
%.o: %.asm $(NASM)
2007-09-25 04:42:09 +08:00
$(NASM) $(NASMOPT) -f elf32 -o $@ -l $*.lst $<
2007-09-20 07:15:22 +08:00
%.o64: %.asm $(NASM)
2007-09-25 04:42:09 +08:00
$(NASM) $(NASMOPT) -f elf64 -o $@ -l $*.lst $<
2007-09-20 07:15:22 +08:00
%.obj: %.asm $(NASM)
2007-09-25 04:42:09 +08:00
$(NASM) $(NASMOPT) -f win32 -o $@ -l $*.lst $<
2007-09-20 07:15:22 +08:00
%.obj64: %.asm $(NASM)
2007-09-25 04:42:09 +08:00
$(NASM) $(NASMOPT) -f win64 -o $@ -l $*.lst $<
2007-09-20 07:15:22 +08:00
%.asm: %.pl
$(PERL) $< > $@
2007-09-20 07:15:22 +08:00
all:
2002-05-01 04:51:32 +08:00
clean:
rm -f *.com *.o *.o64 *.obj *.obj64 *.exe *.lst *.bin