mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-09 08:51:18 +08:00
25 lines
510 B
Makefile
25 lines
510 B
Makefile
.SUFFIXES: .bin .o .o64 .obj .obj64 .exe .asm .lst
|
|
|
|
NASM = ../nasm
|
|
NASMOPT = -O999 -I../misc
|
|
|
|
%.bin: %.asm $(NASM)
|
|
$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
|
|
|
|
%.o: %.asm $(NASM)
|
|
$(NASM) $(NASMOPT) -f elf32 -o $@ -l $*.lst $<
|
|
|
|
%.o64: %.asm $(NASM)
|
|
$(NASM) $(NASMOPT) -f elf64 -o $@ -l $*.lst $<
|
|
|
|
%.obj: %.asm $(NASM)
|
|
$(NASM) $(NASMOPT) -f win32 -o $@ -l $*.lst $<
|
|
|
|
%.obj64: %.asm $(NASM)
|
|
$(NASM) $(NASMOPT) -f win64 -o $@ -l $*.lst $<
|
|
|
|
all:
|
|
|
|
clean:
|
|
rm -f *.com *.o *.o64 *.obj *.obj64 *.exe *.lst *.bin
|