diff --git a/03-asm-bios/Makefile b/03-asm-bios/Makefile new file mode 100644 index 0000000..393f43d --- /dev/null +++ b/03-asm-bios/Makefile @@ -0,0 +1,13 @@ +ASM = nasm +ASM_FLAGS = -felf64 -g +LINK = ld + +%: %.o + $(LINK) -o $@ $^ + +%.o: %.asm + $(ASM) $(ASM_FLAGS) $^ -o $@ + +clean: + rm -f *.o + rm -f $(subst .asm, $(empty), $(wildcard *.asm))