Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 644
Line 1... Line 1...
1
.PHONY: build clean
1
.PHONY: build clean
2
 
2
 
3
CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include
-
 
4
 
-
 
5
build: boot.bin
3
build:
6
	cp boot.bin ../../../load.bin
-
 
7
 
-
 
8
boot.bin: boot.a.out
-
 
9
	dd if=/dev/zero of=$@ bs=512 count=16
-
 
10
	dd if=boot.a.out of=$@ bs=512 seek=1 conv=notrunc
-
 
11
 
-
 
12
boot.a.out: boot.o
-
 
13
	$(LD) -no-check-sections -N -T _link.ld -s boot.o -o $@
-
 
14
 
-
 
15
boot.o: boot.S
-
 
16
	$(CC) $(CFLAGS) -c boot.S -o $@
-
 
17
 
4
 
18
clean:
5
clean:
19
	-rm -f boot.o boot.a.out boot.bin ../../../load.bin
-
 
-
 
6