diff --git a/Makescript b/Makescript index 1b43ed9..a2c1356 100755 --- a/Makescript +++ b/Makescript @@ -1,17 +1,17 @@ #!/usr/bin/env sh OBJ="obj" -INCLUDE="-Isys/drv/vga/include -Isys/include" +INCLUDE="-Isys/include" CFLAGS="-g -m32 -ffreestanding -Wall -Wextra -pedantic -nostdlib $INCLUDE" ASFLAGS="-felf32" LDFLAGS="-m elf_i386" mkdir -p $OBJ +rm -rf $OBJ/* . boot/Makescript . sys/Makescript -. sys/drv/Makescript -ld $LDFLAGS -T boot/link.ld -o omos obj/boot.o obj/vga.o obj/sysinit.o +ld $LDFLAGS -T boot/link.ld -o omos $(for a in $OBJ/*; do printf "$a "; done) echo "Build Success"