add debug info to nasm debug builds
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 30 Mar 2007 01:00:30 +0000 (01:00 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 30 Mar 2007 01:00:30 +0000 (01:00 +0000)
build/exe.mk
build/lib.mk

index 9c5f93f..c13b2d5 100644 (file)
@@ -83,7 +83,9 @@ endif
 %.debug.i %.release.i : %.cpp
        $(CCC) $(CFLAGS) -E $< -o $@
 
-%.debug.o %.release.o : %.nasm
+%.debug.o : %.nasm
+       $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
+%.release.o : %.nasm
        $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
 
 .PHONY : clean
index 981fc34..edc01db 100644 (file)
@@ -110,7 +110,9 @@ else
        $(AS) $< -o $@
 endif
 
-%.debug.o %.release.o : %.nasm
+%.debug.o : %.nasm
+       $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
+%.release.o : %.nasm
        $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
 
 .PHONY : clean