progress on all fronts
[com32] / Makefile
index 68742d5..1226610 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ AS = nasm
 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)
@@ -24,7 +24,7 @@ $(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: