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
-include $(dep)
%.o: %.asm
- nasm -o $@ -f elf $<
+ $(AS) -o $@ -f elf $(ASFLAGS) $<
%.s: %.c
$(CC) $(CFLAGS) -S $< -o $@