Subversion Repositories HelenOS-historic

Rev

Rev 420 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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