ASFLAGS = -Isrc/
CFLAGS = -m32 -march=i386 $(warn) $(opt) $(dbg) -fno-pic -ffreestanding \
-fno-stack-protector -mpreferred-stack-boundary=2 -nostdinc -ffast-math \
- $(inc) $(def)
+ -fno-asynchronous-unwind-tables $(inc) $(def) -MMD
LDFLAGS = -m elf_i386 -nostdlib -T com32.ld -Map test.map
$(bin): $(obj)
$(AS) -o $@ -f elf $(ASFLAGS) $<
%.s: %.c
- $(CC) $(CFLAGS) -masm=intel -g0 -fno-asynchronous-unwind-tables -S $< -o $@
+ $(CC) $(CFLAGS) -masm=intel -S $< -o $@
.PHONY: clean
clean: