Subversion Repositories HelenOS

Rev

Rev 1962 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jermar 1
.PHONY: nothing build clean
2
 
3
nothing:
4
 
5
build: boot.bin
376 jermar 6
	dd if=boot.bin of=../../../image.bin bs=512 conv=sync
7
	-cat ../../../kernel.bin >>../../../image.bin
8
	dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1
1 jermar 9
 
10
boot.bin: boot.o
11
	ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
12
 
13
boot.o: boot.S
14
	gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
15
	as boot.s -o $@
16
	rm boot.s
17
 
18
clean:
19
	-rm *.o *.bin