aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-11-02 16:32:39 -0700
committerChristian Cunningham <cc@localhost>2024-11-02 16:32:39 -0700
commitdabcffc1aeffd354ef3324a74d9592998f02ed51 (patch)
tree1dac6edf1cc7cac0ae8977694af1013f945063cf /Makefile
parent13799fb3f48d8446046b901233c449fadc1af3b2 (diff)
Reduce magic dependencies
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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)