diff options
author | Christian Cunningham <cc@localhost> | 2024-11-02 16:32:39 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2024-11-02 16:32:39 -0700 |
commit | dabcffc1aeffd354ef3324a74d9592998f02ed51 (patch) | |
tree | 1dac6edf1cc7cac0ae8977694af1013f945063cf | |
parent | 13799fb3f48d8446046b901233c449fadc1af3b2 (diff) |
Reduce magic dependencies
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |