From daec968bcbf708b5b4173c3b293ecb4f6f5f61dc Mon Sep 17 00:00:00 2001 From: Miheev Egor Date: Sun, 22 Sep 2024 13:18:59 +0300 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=D0=B4=D0=BB=D1=8F=20=D1=87?= =?UTF-8?q?=D1=83=D1=82=D1=8C=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=83=D0=B4=D0=BE=D1=81=D1=82=D0=B2=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit По факту он просто линкует одиночный файл ассемблерного кода и не подшивает никаких зависимостей. Весьма ситуативная фигня, но немного экономит время --- 03-asm-bios/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 03-asm-bios/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))