structure: uncomment mstruct kernel/KER.i
	uncomment kernel/KER.i | sed "/^[ 	]*\$$/d" > $@.tmp
	mstruct $@.tmp > $@
	chmod 644 $@
	rm $@.tmp

mstruct: mstruct.c /usr/include/stdio.h
	$(CC) -O mstruct.c -lS -o $@
	chmod 755 $@

uncomment: uncomment.c /usr/include/stdio.h
	$(CC) -O uncomment.c -lS -o $@
	chmod 755 $@
