all: cc -m32 -c testbootsect.S -o testbootsect.o ld -melf_i386_fbsd -T ldscript.lds testbootsect.o -o testbootsect.elf objcopy -I elf32-i386-freebsd -O binary testbootsect.elf testbootsect.bin dd if=/dev/null of=testbootsect.bin seek=512 bs=1 count=1 clean: rm *.o *.elf *.bin