build.bat

来自「一个操作系统的源码部分」· Batch 代码 · 共 22 行

BAT
22
字号
set path=d:\Dev-Cpp\bin

nasm -f elf shell\head.s             -o  shell\head.o
nasm -f elf shell\font.s             -o  shell\font.o

gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/main.c     -o shell/main.o
gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/unistd.c   -o shell/unistd.o
gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/stdio.c    -o shell/stdio.o
gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/gui.c      -o shell/gui.o
gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/queue.c    -o shell/queue.o
gcc -Wall -O2 -g -nostdinc -fno-builtin -c shell/vsprintf.c -o shell/vsprintf.o



cd shell
make
objcopy -R .note -R .comment -S -O binary test.o SHELLER.sys
del *.o
cd..
copy shell\SHELLER.sys

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?