AS = as LD = ld OBJCOPY = objcopy .s.o: $(AS) -a $< -o $*.o > $*.map all: disk.img disk.img: holanBoot.out $(OBJCOPY) -O binary -j .text $< $@ holanBoot.out: holanBoot.o ${LD} -r -Ttext 0x7c00 -e start -s -o holanBoot.out holanBoot.o clean: rm -f disk.img holanBoot.out holanBoot.o holanBoot.map