porting over pcboot codebase
[com32] / Makefile
index a3411a3..1872bbf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ bin = test.com
 warn = -pedantic -Wall
 inc = -Isrc -Isrc/libc
 
+AS = nasm
+
+ASFLAGS = -Isrc/
 CFLAGS = -m32 -march=i386 $(warn) $(opt) $(dbg) -fno-pic -ffreestanding -nostdinc $(inc) $(def)
 LDFLAGS = -m elf_i386 -nostdlib -T com32.ld -Map test.map
 
@@ -16,7 +19,7 @@ $(bin): $(obj)
 -include $(dep)
 
 %.o: %.asm
-       nasm -o $@ -f elf $<
+       $(AS) -o $@ -f elf $(ASFLAGS) $<
 
 %.s: %.c
        $(CC) $(CFLAGS) -S $< -o $@