From 53a82c8ea0cad6ca2b54c771b7afe5ecf7a96b59 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Sep 2024 15:16:32 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D1=81=D0=BA=D0=BE=D0=BF=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B9?= =?UTF-8?q?=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 03-asm-bios/Makefile | 13 +++++++++++++ 04-addr-methods/Makefile | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 03-asm-bios/Makefile create mode 100644 04-addr-methods/Makefile 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)) diff --git a/04-addr-methods/Makefile b/04-addr-methods/Makefile new file mode 100644 index 0000000..393f43d --- /dev/null +++ b/04-addr-methods/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))