-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (29 loc) · 1.01 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
##########################################################################################
# Project: Duck OS
# Makefile evilbinary
# Mail:[email protected]
##########################################################################################
.PHONY: build
build: start main
@echo "build success"
test:
./compiler/compile.sh compile.ss tests/test-libs
main: kernel/main.ss kernel/asm.ss kernel/kalloc.ss kernel/task.ss
./compiler/compile.sh compile.ss kernel/main
start: boot init
@echo build start success
boot: start/boot.ss
./compiler/compile.sh compile.ss start/boot
init: start/init.ss
./compiler/compile.sh compile.ss start/init
run: image
bochs -q -f ./bochsrc
runq: image
qemu-system-i386 -fda build/duck.img
image: build
dd if=build/start/boot bs=512 count=1 conv=notrunc of=build/duck.img
dd if=build/start/init bs=512 count=10 seek=1 conv=notrunc of=build/duck.img
dd if=build/kernel/main bs=512 count=10 seek=9 conv=notrunc of=build/duck.img
clean:
rm -rf build/start/*
rm -rf build/kernel/*