aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)