Subversion Repositories HelenOS-historic

Rev

Rev 1 | Go to most recent revision | 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
6
	dd if=boot.bin of=../../../src/image.bin bs=512 conv=sync
7
	-cat ../../../src/kernel.bin >>../../../src/image.bin
84 vana 8
	dd if=/dev/zero of=../../../src/image.bin bs=1 seek=$(KERNEL_SIZE) count=`expr 1474560 - $(KERNEL_SIZE)`
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