mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
test/Makefile: make a bit more useful
This commit is contained in:
parent
37a321fbbe
commit
9713703db7
@ -1,21 +1,22 @@
|
||||
.SUFFIXES: .bin .o .o64 .obj .obj64 .exe .asm .lst
|
||||
|
||||
NASM = ../nasm
|
||||
NASMOPT = -O999 -I../misc
|
||||
|
||||
%.bin: %.asm $(NASM)
|
||||
$(NASM) -f bin -o $@ -l $*.lst $<
|
||||
$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
|
||||
|
||||
%.o: %.asm $(NASM)
|
||||
$(NASM) -f elf32 -o $@ -l $*.lst $<
|
||||
$(NASM) $(NASMOPT) -f elf32 -o $@ -l $*.lst $<
|
||||
|
||||
%.o64: %.asm $(NASM)
|
||||
$(NASM) -f elf64 -o $@ -l $*.lst $<
|
||||
$(NASM) $(NASMOPT) -f elf64 -o $@ -l $*.lst $<
|
||||
|
||||
%.obj: %.asm $(NASM)
|
||||
$(NASM) -f win32 -o $@ -l $*.lst $<
|
||||
$(NASM) $(NASMOPT) -f win32 -o $@ -l $*.lst $<
|
||||
|
||||
%.obj64: %.asm $(NASM)
|
||||
$(NASM) -f win64 -o $@ -l $*.lst $<
|
||||
$(NASM) $(NASMOPT) -f win64 -o $@ -l $*.lst $<
|
||||
|
||||
all:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user