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:
debug:
${CC} ${INCLUDES} ${FLAGSDEBUG} ${file}
+ ${RM} -f ${DEBUG_OBJ}
${BOOT_OBJ}: ${BOOT_SRC}
clean::