OSDN Git Service

Makefileのマイナーチェンジ
[vaneos/vaneosmain.git] / Kernel / Makefile~
index 96e415f..03ac92f 100644 (file)
@@ -13,9 +13,9 @@ LIBVANE               = ../lib/libvanec.a ../lib/libvanego.a
 FLAGS          = -m32 -ffreestanding -fno-common -fno-builtin -fomit-frame-pointer -O2 -c
 FLAGSC         = -m32 -ffreestanding -fno-common -nostdlib -masm=intel -fno-builtin -fomit-frame-pointer -O2 -c
 LD          = ld -Ttext 0x100000 -T linkerscript -melf_i386 --oformat elf32-i386 -o
-FLAGSDEBUG = -g -ffreestanding -fno-common -nostdlib -masm=intel -fno-builtin -fomit-frame-pointer -O1 -c
+FLAGSDEBUG = -ffreestanding -fno-common -nostdlib -masm=intel -fno-builtin -fomit-frame-pointer -O2 -c
 file =boot.c
-DEBUG_OBJ=debug.o
+DEBUG_OBJ=../tmp/debug.o
 
 #サフィックス
 .S.o:
@@ -51,6 +51,7 @@ kernel: ${BOOT_OBJ}
 
 debug: 
        ${CC} ${INCLUDES} ${FLAGSDEBUG} ${file}
+       ${RM} -f ${DEBUG_OBJ}
        
 ${BOOT_OBJ}: ${BOOT_SRC}
 clean::