Subversion Repositories HelenOS-historic

Rev

Rev 376 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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