-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompila
executable file
·26 lines (21 loc) · 1.28 KB
/
compila
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cd bin
nasm -f aout ../src/kernel/libasm.asm -o libasm.o
nasm -f aout ../src/startup/kstart.asm -o kstart.o
nasm -f aout ../src/startup/loader.asm -o loader.o
gcc -c ../src/kernel/kernel.c -o kernel.o -fno-builtin
gcc -c ../src/drivers/video.c -o video.o -fno-builtin
gcc -c ../src/drivers/keyboard.c -o keyboard.o -fno-builtin
gcc -c ../src/software/nInLineFront.c -o nInLineFront.o -fno-builtin
gcc -c ../src/software/nInLineBack.c -o nInLineBack.o -fno-builtin
gcc -c ../src/libs/internal_shell.c -o internal_shell.o -fno-builtin
gcc -c ../src/libs/mcgio.c -o mcgio.o -fno-builtin
gcc -c ../src/libs/mcglib.c -o mcglib.o -fno-builtin
gcc -c ../src/libs/stdio.c -o stdio.o -fno-builtin
gcc -c ../src/libs/stdlib.c -o stdlib.o -fno-builtin
gcc -c ../src/libs/string.c -o string.o -fno-builtin
gcc -c ../src/startup/start.c -o start.o -fno-builtin
gcc -c ../src/drivers/sound.c -o sound.o -fno-builtin
gcc -c ../src/shell.c -o shell.o -fno-builtin
gcc -c ../src/libs/libmem.c -o libmem.o -fno-builtin
ld -T ../include/link.ld -o kernel.bin sound.o string.o libasm.o loader.o kernel.o libmem.o keyboard.o mcgio.o stdlib.o video.o start.o shell.o stdio.o internal_shell.o nInLineFront.o nInLineBack.o mcglib.o
echo "Compila end"