# set to where you have unpacked the ELKS sources
MT_DIR=		/home/ken/work/ELKS/elks/include

all:	bootsect.ph config.ph

bootsect.ph:	bootsect.S dumpboot.pl
	gcc -E -traditional -I$(MT_DIR) -o bootsect.s bootsect.S
	as86 -0 -b bootsect bootsect.s
	dumpboot.pl bootsect > bootsect.ph

config.ph:
	h2ph < $(MT_DIR)/linuxmt/config.h | sed '/autoconf/d' > config.ph

clean:
	rm -f bootsect.s bootsect.o bootsect bootsect.ph config.ph
