Talk about a sweet deal:

LOS ANGELES (AP) – KB Home Chief Executive Jeffrey T. Mezger has been awarded a $6 million bonus for his job performance in fiscal 2007, according to a regulatory filing Friday.

The company’s compensation committee also designated bonuses ranging from $350,000 to $450,000 for three other senior executive officers, according to documents filed with the Securities and Exchange Commission.

KB’s committee also determined that any fiscal year 2008 incentive compensation for Mezger and three other executives will be tied to performance goals based on pretax income or loss by the company.

The filing did not specify the performance goals.

KB Home, one of the nation’s largest homebuilders, has been battered by the U.S. housing slump.

In its fiscal year 2007, ended Nov. 30, the company lost $929.4 million, or $12.04 a share, versus a profit of $482.4 million, or $5.82 per share, a year earlier.

I wonder what the bonus would have been if they had managed to turn a profit last year?