diff options
-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) |