From dabcffc1aeffd354ef3324a74d9592998f02ed51 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 2 Nov 2024 16:32:39 -0700 Subject: Reduce magic dependencies --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index df15ae7..4f9c04b 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,12 @@ ifeq ($(shell uname -s),Darwin) AFLAGS += -fmacho64 LDFLAGS += -lSystem LD = clang + AS = nasm endif ifeq ($(shell uname -s),Linux) AFLAGS += -felf64 LD = ld + AS = nasm endif OUT_BIN=build @@ -18,7 +20,7 @@ $(OUT_BIN): main.o $(LD) $(LDFLAGS) -o $@ $^ %.o: %.asm - nasm $(AFLAGS) $< -o $@ + $(AS) $(AFLAGS) $< -o $@ clean: -rm *.o $(OUT_BIN) -- cgit v1.2.1