Add makefile rule for flag image header generation