more changes to makefile and LUT generation