A new approach for the optimization of diffractive microlenses fabrication is presented. The problem is that fabrication process brings errors in profile formation. These errors decrease diffractive efficiency and wavefront quality. However, microlens quality can be increased by optimization of the fabrication process that takes into account transfer functions of technological equipment. We have applied this method for half-tone technology. Calibration samples were fabricated and transfer function was experimentally measured. Then initial half-tone mask was corrected and microlenses with higher quality were produced.