NASM=nasm
ASFLAGS=-felf64
LDFLAGS=-s -melf_x86_64

# To build with debugging symbols
#ASFLAGS=-felf64 -F dwarf -g
#LDFLAGS=-melf_x86_64

all: wtfstopw

wtfstopw: wtfstopw.o
	ld $(LDFLAGS) wtfstopw.o -o wtfstopw
wtfstopw.o: wtfstopw.asm
	$(NASM) $(ASFLAGS) wtfstopw.asm
	
.PHONY: clean

clean:
	-rm -fv wtfstopw wtfstopw.o
