# Boot Makefile
#
# Author: Guto

include $(EPOS)/makedefs

all: boot

boot: boot.o
	$(LD86) $(LD86_FLAGS) -T 0x7C00 -o boot.tmp boot.o
	$(DD) if=boot.tmp of=boot ibs=32 skip=1 obs=512
	$(CLEAN) boot.tmp

boot.o: boot.s
	$(AS86) $(AS86_FLAGS) -o boot.o boot.s

boot.s: boot.S
	$(CPP) $(CPP_FLAGS) -traditional -o boot.s boot.S

install: all boot
	$(INSTALL) boot $(IMG)

print:
	$(PRINT1) $(INCLUDE)/system/boot.h boot.S $(PRINT2)

clean:
	$(CLEAN) *.s *.o boot 
