-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
25 lines (19 loc) · 819 Bytes
/
makefile
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
.PHONY: all clean
all: run
run: kernel.bin
qemu-system-x86_64 -fda kernel.bin
boot.o: boot.asm
nasm -f elf32 boot.asm -o boot.o
kernel.bin: boot.o proc.cpp kernmain.cpp lib/trimminglinkedlist.a
i386-elf-g++ proc.cpp kernmain.cpp boot.o -o kernel.bin -nostdlib -ffreestanding -std=c++11 \
-mno-red-zone -fno-exceptions -nostdlib -fno-rtti -Wall -Wextra -Werror -T link.ld \-Iinclude/
lib/trimminglinkedlist.a: lib/trimminglinkedlist.o
ar rvs lib/trimminglinkedlist.a lib/trimminglinkedlist.o
lib/trimminglinkedlist.o: lib/trimminglinkedlist.cpp
i386-elf-g++ lib/trimminglinkedlist.cpp -c -o lib/trimminglinkedlist.o -nostdlib -ffreestanding -std=c++11 \
-mno-red-zone -fno-exceptions -nostdlib -fno-rtti -Wall -Wextra -Werror -Iinclude/
clean:
rm -rf lib/*.o
rm -rf lib/*.a
rm -rf kernel.bin
rm -rf *.o