-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (28 loc) · 1.69 KB
/
makefile
File metadata and controls
28 lines (28 loc) · 1.69 KB
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
27
28
ckernel.asm : ckernel.o
./objconv -fnasm ckernel.o -o ckernel.asm
ckernel.o : write_vga_desktop_win.o win_sheet.o mem_util.o timer.o global_define.o multi_task.o
ld -m elf_i386 -r write_vga_desktop_win.o mem_util.o win_sheet.o timer.o global_define.o multi_task.o -o ckernel.o
write_vga_desktop_win.o : write_vga_desktop_win.c win_sheet.c win_sheet.h mem_util.c mem_util.h timer.c timer.h global_define.c global_define.o multi_task.c multi_task.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c write_vga_desktop_win.c -o write_vga_desktop_win.o
win_sheet.o : win_sheet.c win_sheet.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c win_sheet.c -o win_sheet.o
mem_util.o : mem_util.c mem_util.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c mem_util.c -o mem_util.o
timer.o : timer.c timer.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c timer.c -o timer.o
global_define.o : global_define.c global_define.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c global_define.c -o global_define.o
multi_task.o : multi_task.c multi_task.h
gcc -m32 -fno-pic -fno-asynchronous-unwind-tables -s -c multi_task.c -o multi_task.o
all : ckernel.asm
@cd src/ && javac -encoding gbk OS.java
@cd src/ && mv OS.class ../ && mv Floppy.class ../ && mv Floppy\$$MAGNETIC_HEAD.class ../ && mv ProcessASMFile.class ../
java OS ckernel.asm
@rm *.class
@cp system.img /home/cherry/Virtual
@echo "镜像已移动到虚拟机根目下"
@mv system.img /home/cherry/Bochs
@echo "镜像已移动到Bochs根目下"
@rm ckernel.o write_vga_desktop_win.o win_sheet.o mem_util.o timer.o global_define.o multi_task.o
clean:
rm ckernel.o write_vga_desktop_win.o win_sheet.o mem_util.o timer.o global_define.o