AS=as
LD=ld

.s.o:
	${AS} -a $< -o $*.o >$*.map

all: final.img

final.img: bootsect print_beer	
	cat bootsect print_beer /dev/zero | dd of=final.img bs=512 count=2880

bootsect: bootsect.o
	objcopy -O binary $^ $@

print_beer: print_beer.o
	objcopy -O binary $^ $@
clean:
	rm -f *.o *.map
debug:
	qemu final.img -s -S --no-shutdown --no-reboot &