-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (34 loc) · 1.07 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load: loadFile bootload kernel shell static
dd if=/dev/zero of=floppya.img bs=512 count=2880
dd if=bootload of=floppya.img bs=512 conv=notrunc count=1
dd if=message.txt of=floppya.img bs=512 count=1 seek=30 conv=notrunc
dd if=kernel of=floppya.img bs=512 conv=notrunc seek=3
dd if=map.img of=floppya.img bs=512 count=1 seek=1 conv=notrunc
dd if=dir.img of=floppya.img bs=512 count=1 seek=2 conv=notrunc
./loadFile message.txt
./loadFile help.txt
./loadFile tstprg
./loadFile tstpr2
./loadFile shell
./loadFile phello
static: map.img dir.img message.txt
kernel.o: kernel.c
bcc -ansi -c kernel.c -o kernel.o
kernel_asm.o: kernel.asm
as86 kernel.asm -o kernel_asm.o
kernel:kernel.o kernel_asm.o
ld86 -o kernel -d kernel.o kernel_asm.o
shell.o: shell.c
bcc -ansi -c shell.c -o shell.o
lib.o: lib.asm
as86 lib.asm -o lib.o
shell: shell.o lib.o
ld86 -o shell -d shell.o lib.o
loadFile: loadFile.c
gcc -o loadFile loadFile.c
bootload: bootload.asm
nasm bootload.asm
clean:
rm -rf *.o kernel bootload shell loadFile floppya.img bochsout.txt
run:
bochs -f opsys.bxrc